Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

define(['jQuery', 'angular', 'app'], function ($, angular, app) {
"use strict";
app.service('localStorageService', function ($state, mhpuser) {
return {
encrypt: function (name) {
return name.replace(/[a-z0-9]/gi, function (a) { return a.charCodeAt(0) - 11 + '|'; }).slice(0, -1);
},
showModal: function (user, keyName, toState) {
var key = 'myvaimages/' + this.encrypt(user.id) + '/' + keyName;
var noShow = localStorage.getItem(key) || false;
this.keys[keyName] = key;

if(toState) this.toState = toState;

return !(noShow);
},

keys : []
};
});
});