Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / services / email / realtime / index.js
index 789992a..ef1b8ee 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1a9c=['length','isUndefined','merge','lodash','../model/mailAccount','mailAccounts','mapKeys','prototype','initMailAccounts'];(function(_0x546f3b,_0x3928ea){var _0x18d9f1=function(_0x2f8cb6){while(--_0x2f8cb6){_0x546f3b['push'](_0x546f3b['shift']());}};_0x18d9f1(++_0x3928ea);}(_0x1a9c,0xb7));var _0xc1a9=function(_0x278069,_0x3166e8){_0x278069=_0x278069-0x0;var _0x290b16=_0x1a9c[_0x278069];return _0x290b16;};'use strict';var _=require(_0xc1a9('0x0'));var MailAccount=require(_0xc1a9('0x1'));var Realtime=function(){this[_0xc1a9('0x2')]={};};function freeIsNotKey(_0x34108e,_0x5b3828,_0x4dfa6b){var _0x49fc63=_[_0xc1a9('0x3')](_0x34108e,function(_0x4d79bf,_0x205bbe){return _0x4d79bf[_0x4dfa6b];});for(var _0x2968dd in _0x5b3828){if(_0x5b3828['hasOwnProperty'](_0x2968dd)){if(!_0x49fc63[_0x2968dd]){delete _0x5b3828[_0x2968dd];}}}}Realtime[_0xc1a9('0x4')]['mergeFromDatabase']=function(_0x170782,_0x264565){for(var _0x503eba in _0x264565){if(_0x170782['hasOwnProperty'](_0x503eba)){_0x170782[_0x503eba]=_0x264565[_0x503eba];}}};Realtime[_0xc1a9('0x4')][_0xc1a9('0x5')]=function(){var _0x550c6a=this;return function(_0x3c2662){if(_0x3c2662){freeIsNotKey(_0x3c2662,_0x550c6a['mailAccounts'],'id');for(var _0x309dee=0x0,_0x142d4c={},_0x5462ba={};_0x309dee<_0x3c2662[_0xc1a9('0x6')];_0x309dee+=0x1){_0x142d4c=_0x3c2662[_0x309dee];if(_[_0xc1a9('0x7')](_0x550c6a['mailAccounts'][_0x142d4c['id']])){_0x550c6a[_0xc1a9('0x2')][_0x142d4c['id']]=new MailAccount(_0x142d4c);}else{_[_0xc1a9('0x8')](_0x550c6a[_0xc1a9('0x2')][_0x142d4c['id']],_0x142d4c);}}}return _0x550c6a[_0xc1a9('0x2')];};};module['exports']=Realtime;
\ No newline at end of file
+var _0xf49a=['../model/mailAccount','hasOwnProperty','mailAccounts','length','merge','exports','lodash'];(function(_0x4b4704,_0x53cbf5){var _0x59b812=function(_0x2857e5){while(--_0x2857e5){_0x4b4704['push'](_0x4b4704['shift']());}};_0x59b812(++_0x53cbf5);}(_0xf49a,0x1bf));var _0xaf49=function(_0x908eb6,_0x59199b){_0x908eb6=_0x908eb6-0x0;var _0x511a09=_0xf49a[_0x908eb6];return _0x511a09;};'use strict';var _=require(_0xaf49('0x0'));var MailAccount=require(_0xaf49('0x1'));var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x5ccde6,_0x3000fa,_0x435661){var _0x363449=_['mapKeys'](_0x5ccde6,function(_0x55ef8d,_0x4be90d){return _0x55ef8d[_0x435661];});for(var _0x14e531 in _0x3000fa){if(_0x3000fa[_0xaf49('0x2')](_0x14e531)){if(!_0x363449[_0x14e531]){delete _0x3000fa[_0x14e531];}}}}Realtime['prototype']['mergeFromDatabase']=function(_0x1e7261,_0x552435){for(var _0x5d0798 in _0x552435){if(_0x1e7261[_0xaf49('0x2')](_0x5d0798)){_0x1e7261[_0x5d0798]=_0x552435[_0x5d0798];}}};Realtime['prototype']['initMailAccounts']=function(){var _0x138bda=this;return function(_0x4c14b1){if(_0x4c14b1){freeIsNotKey(_0x4c14b1,_0x138bda[_0xaf49('0x3')],'id');for(var _0x57e0d0=0x0,_0x579d30={},_0x505494={};_0x57e0d0<_0x4c14b1[_0xaf49('0x4')];_0x57e0d0+=0x1){_0x579d30=_0x4c14b1[_0x57e0d0];if(_['isUndefined'](_0x138bda[_0xaf49('0x3')][_0x579d30['id']])){_0x138bda[_0xaf49('0x3')][_0x579d30['id']]=new MailAccount(_0x579d30);}else{_[_0xaf49('0x5')](_0x138bda[_0xaf49('0x3')][_0x579d30['id']],_0x579d30);}}}return _0x138bda[_0xaf49('0x3')];};};module[_0xaf49('0x6')]=Realtime;
\ No newline at end of file