Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / services / email / realtime / index.js
index 70a952a..3ede7d9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa5ea=['prototype','mergeFromDatabase','hasOwnProperty','initMailAccounts','length','isUndefined','lodash','mailAccounts','mapKeys'];(function(_0x478a19,_0x2ff359){var _0x7fd2fa=function(_0x2aeb50){while(--_0x2aeb50){_0x478a19['push'](_0x478a19['shift']());}};_0x7fd2fa(++_0x2ff359);}(_0xa5ea,0xa8));var _0xaa5e=function(_0x367fcb,_0x26a793){_0x367fcb=_0x367fcb-0x0;var _0xbd6cfe=_0xa5ea[_0x367fcb];return _0xbd6cfe;};'use strict';var _=require(_0xaa5e('0x0'));var MailAccount=require('../model/mailAccount');var Realtime=function(){this[_0xaa5e('0x1')]={};};function freeIsNotKey(_0x24b60c,_0x480bcc,_0x81612f){var _0x2b8df8=_[_0xaa5e('0x2')](_0x24b60c,function(_0x3f172e,_0x536049){return _0x3f172e[_0x81612f];});for(var _0x5427a8 in _0x480bcc){if(_0x480bcc['hasOwnProperty'](_0x5427a8)){if(!_0x2b8df8[_0x5427a8]){delete _0x480bcc[_0x5427a8];}}}}Realtime[_0xaa5e('0x3')][_0xaa5e('0x4')]=function(_0x47510c,_0x5cdec7){for(var _0x27348e in _0x5cdec7){if(_0x47510c[_0xaa5e('0x5')](_0x27348e)){_0x47510c[_0x27348e]=_0x5cdec7[_0x27348e];}}};Realtime[_0xaa5e('0x3')][_0xaa5e('0x6')]=function(){var _0x1775f9=this;return function(_0x15c801){if(_0x15c801){freeIsNotKey(_0x15c801,_0x1775f9[_0xaa5e('0x1')],'id');for(var _0x3349b0=0x0,_0x36e16a={},_0x4b4066={};_0x3349b0<_0x15c801[_0xaa5e('0x7')];_0x3349b0+=0x1){_0x36e16a=_0x15c801[_0x3349b0];if(_[_0xaa5e('0x8')](_0x1775f9[_0xaa5e('0x1')][_0x36e16a['id']])){_0x1775f9[_0xaa5e('0x1')][_0x36e16a['id']]=new MailAccount(_0x36e16a);}else{_['merge'](_0x1775f9[_0xaa5e('0x1')][_0x36e16a['id']],_0x36e16a);}}}return _0x1775f9[_0xaa5e('0x1')];};};module['exports']=Realtime;
\ No newline at end of file
+var _0x591f=['isUndefined','merge','lodash','../model/mailAccount','mailAccounts','mapKeys','hasOwnProperty','prototype','initMailAccounts','length'];(function(_0x1fc80b,_0x98bfe9){var _0x28da77=function(_0x226f1e){while(--_0x226f1e){_0x1fc80b['push'](_0x1fc80b['shift']());}};_0x28da77(++_0x98bfe9);}(_0x591f,0x17e));var _0xf591=function(_0x5d8631,_0x44944b){_0x5d8631=_0x5d8631-0x0;var _0x34c15e=_0x591f[_0x5d8631];return _0x34c15e;};'use strict';var _=require(_0xf591('0x0'));var MailAccount=require(_0xf591('0x1'));var Realtime=function(){this[_0xf591('0x2')]={};};function freeIsNotKey(_0x5ecd78,_0x4372d1,_0x1e0607){var _0x39be56=_[_0xf591('0x3')](_0x5ecd78,function(_0xe84ec3,_0x1eab52){return _0xe84ec3[_0x1e0607];});for(var _0x35475b in _0x4372d1){if(_0x4372d1[_0xf591('0x4')](_0x35475b)){if(!_0x39be56[_0x35475b]){delete _0x4372d1[_0x35475b];}}}}Realtime[_0xf591('0x5')]['mergeFromDatabase']=function(_0x5abce2,_0x714793){for(var _0x271604 in _0x714793){if(_0x5abce2[_0xf591('0x4')](_0x271604)){_0x5abce2[_0x271604]=_0x714793[_0x271604];}}};Realtime['prototype'][_0xf591('0x6')]=function(){var _0x3ac8ee=this;return function(_0x19d425){if(_0x19d425){freeIsNotKey(_0x19d425,_0x3ac8ee['mailAccounts'],'id');for(var _0x459622=0x0,_0x44541a={},_0x4f4d1e={};_0x459622<_0x19d425[_0xf591('0x7')];_0x459622+=0x1){_0x44541a=_0x19d425[_0x459622];if(_[_0xf591('0x8')](_0x3ac8ee[_0xf591('0x2')][_0x44541a['id']])){_0x3ac8ee[_0xf591('0x2')][_0x44541a['id']]=new MailAccount(_0x44541a);}else{_[_0xf591('0x9')](_0x3ac8ee['mailAccounts'][_0x44541a['id']],_0x44541a);}}}return _0x3ac8ee[_0xf591('0x2')];};};module['exports']=Realtime;
\ No newline at end of file