Mini Kabibi Habibi

Current Path : C:/Program Files/McAfee/WebAdvisor/Analytics/Scripts/
Upload File :
Current File : C:/Program Files/McAfee/WebAdvisor/Analytics/Scripts/mappings.js

/*! $FileVersion=1.2.229 */ var mappings_fileVersion = "1.2.229"; 
function CreateMapping(){var a={eventMap:function(c,b){if(!(b in this._eventTable)){return c}return this._map(this._eventTable[b],c,true)},globalMap:function(b){return this._map(this._globalTable,b,true)},daMap:function(b){return this._map(this._daTable,b,true)},profileMap:function(c,b){if(!(b in this._profileTable)){return c}return this._map(this._profileTable[b],c,true)},getProfileTableStr:function(b){if(!(b in this._profileTableStr)){return"{}"}else{return this._profileTableStr[b]}},getFlippedProfileTable:function(c){if(!(c in this._profileTable)){logWarning("Requesting flipped table for invalid profile "+c);return{}}if(c in this._flippedProfileTable){return this._flippedProfileTable[c]}this._flippedProfileTable[c]={};for(var b in this._profileTable[c]){var d=this._profileTable[c][b];this._flippedProfileTable[c][d]=b}return this._flippedProfileTable[c]},_map:function(b,f,h){if(!b||!f||(typeof f!=="object")){logWarning("Invalid mappingTable or toMap");return f}logDebug("Executing mappings::_map "+(h?"in place":"in new buffer"));var d={};for(var g in f){var e=g.toLowerCase();if(e in b){var c=b[e];if(h){f[c]=f[g];if(c!=g){delete f[g]}}else{d[c]=f[g]}}}return h?f:d},toLowerCase:function(f,c,b){for(var e in f){var d=c?e.toLowerCase():e;f[d]=b?f[e].toLowerCase():f[e];if(d!=e){delete f[e]}}return f},_initialize:function(){try{var d=JSONManager.getSingleton("dictionary");var b=d.data;this._eventTable=b.event;this._daTable=b.damap;this._profileTable=b.profile;this._globalTable=b.global;this._eventTable=this.toLowerCase(this._eventTable,true,true);this._globalTable=this.toLowerCase(this._globalTable,true,true);this._daTable=this.toLowerCase(this._daTable,true,true);for(var c in this._profileTable){this._profileTable[c]=this.toLowerCase(this._profileTable[c],true,false)}for(var c in this._profileTable){this._profileTableStr[c]=JSON.stringify(this._profileTable[c])}}catch(f){logError("ERROR: Could not load dictionary.json into tables "+f.message)}},_eventTable:{},_profileTable:{},_globalTable:{},_daTable:{},_flippedProfileTable:{},_profileTableStr:{}};a._initialize();return a}ModuleManager.registerFactory("mappings",CreateMapping);
//5182EE7A12A077CFC2F0A18EA383A6DD7693902CB342CC2942D98F1CEA52EB397FEE51931BC5B35D93667B182FD10ED99D9B101A71AB8E778DD6DE98CC94647F++