Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / services / email / realtime / index.js
index 03b5d7c..0d8e116 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5f63=['lodash','mailAccounts','hasOwnProperty','prototype','mergeFromDatabase','initMailAccounts','length','merge','exports'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5f63,0x1c2));var _0x35f6=function(_0x16eff4,_0x1ca3c7){_0x16eff4=_0x16eff4-0x0;var _0x5fe701=_0x5f63[_0x16eff4];return _0x5fe701;};'use strict';var _=require(_0x35f6('0x0'));var MailAccount=require('../model/mailAccount');var Realtime=function(){this[_0x35f6('0x1')]={};};function freeIsNotKey(_0x5a8a3f,_0x29c9a7,_0x1c0fd7){var _0x319d98=_['mapKeys'](_0x5a8a3f,function(_0x400b0a,_0x48ec1d){return _0x400b0a[_0x1c0fd7];});for(var _0x37556b in _0x29c9a7){if(_0x29c9a7[_0x35f6('0x2')](_0x37556b)){if(!_0x319d98[_0x37556b]){delete _0x29c9a7[_0x37556b];}}}}Realtime[_0x35f6('0x3')][_0x35f6('0x4')]=function(_0x581bd9,_0x56953d){for(var _0x398da0 in _0x56953d){if(_0x581bd9['hasOwnProperty'](_0x398da0)){_0x581bd9[_0x398da0]=_0x56953d[_0x398da0];}}};Realtime['prototype'][_0x35f6('0x5')]=function(){var _0x10c46e=this;return function(_0xac8609){if(_0xac8609){freeIsNotKey(_0xac8609,_0x10c46e['mailAccounts'],'id');for(var _0x88455d=0x0,_0x545789={},_0x2fc969={};_0x88455d<_0xac8609[_0x35f6('0x6')];_0x88455d+=0x1){_0x545789=_0xac8609[_0x88455d];if(_['isUndefined'](_0x10c46e[_0x35f6('0x1')][_0x545789['id']])){_0x10c46e[_0x35f6('0x1')][_0x545789['id']]=new MailAccount(_0x545789);}else{_[_0x35f6('0x7')](_0x10c46e[_0x35f6('0x1')][_0x545789['id']],_0x545789);}}}return _0x10c46e[_0x35f6('0x1')];};};module[_0x35f6('0x8')]=Realtime;
\ No newline at end of file
+var _0x9f8f=['isUndefined','merge','exports','../model/mailAccount','mailAccounts','hasOwnProperty','prototype','mergeFromDatabase','initMailAccounts','length'];(function(_0x3b4b1d,_0x15029e){var _0x488c36=function(_0x56c8b3){while(--_0x56c8b3){_0x3b4b1d['push'](_0x3b4b1d['shift']());}};_0x488c36(++_0x15029e);}(_0x9f8f,0x85));var _0xf9f8=function(_0x16c19f,_0x2b2242){_0x16c19f=_0x16c19f-0x0;var _0x37eed1=_0x9f8f[_0x16c19f];return _0x37eed1;};'use strict';var _=require('lodash');var MailAccount=require(_0xf9f8('0x0'));var Realtime=function(){this[_0xf9f8('0x1')]={};};function freeIsNotKey(_0x36909e,_0x2c6be8,_0xbf356){var _0x478d54=_['mapKeys'](_0x36909e,function(_0x426900,_0x32785b){return _0x426900[_0xbf356];});for(var _0xd37036 in _0x2c6be8){if(_0x2c6be8[_0xf9f8('0x2')](_0xd37036)){if(!_0x478d54[_0xd37036]){delete _0x2c6be8[_0xd37036];}}}}Realtime[_0xf9f8('0x3')][_0xf9f8('0x4')]=function(_0x171d8a,_0x2e1795){for(var _0x199b28 in _0x2e1795){if(_0x171d8a[_0xf9f8('0x2')](_0x199b28)){_0x171d8a[_0x199b28]=_0x2e1795[_0x199b28];}}};Realtime[_0xf9f8('0x3')][_0xf9f8('0x5')]=function(){var _0x30a98d=this;return function(_0x5a901d){if(_0x5a901d){freeIsNotKey(_0x5a901d,_0x30a98d[_0xf9f8('0x1')],'id');for(var _0x4e9113=0x0,_0x5c9a31={},_0xae51a6={};_0x4e9113<_0x5a901d[_0xf9f8('0x6')];_0x4e9113+=0x1){_0x5c9a31=_0x5a901d[_0x4e9113];if(_[_0xf9f8('0x7')](_0x30a98d[_0xf9f8('0x1')][_0x5c9a31['id']])){_0x30a98d[_0xf9f8('0x1')][_0x5c9a31['id']]=new MailAccount(_0x5c9a31);}else{_[_0xf9f8('0x8')](_0x30a98d[_0xf9f8('0x1')][_0x5c9a31['id']],_0x5c9a31);}}}return _0x30a98d[_0xf9f8('0x1')];};};module[_0xf9f8('0x9')]=Realtime;
\ No newline at end of file