Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / services / email / realtime / index.js
index ef1b8ee..60169fc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-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
+var _0xb729=['mergeFromDatabase','isUndefined','mailAccounts','exports','lodash','hasOwnProperty','prototype'];(function(_0x239b31,_0x44a64d){var _0x41c8be=function(_0x27f031){while(--_0x27f031){_0x239b31['push'](_0x239b31['shift']());}};_0x41c8be(++_0x44a64d);}(_0xb729,0x74));var _0x9b72=function(_0x15d053,_0x5479a2){_0x15d053=_0x15d053-0x0;var _0x3b490a=_0xb729[_0x15d053];return _0x3b490a;};'use strict';var _=require(_0x9b72('0x0'));var MailAccount=require('../model/mailAccount');var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x350643,_0x538946,_0x5d1652){var _0xa57e5e=_['mapKeys'](_0x350643,function(_0x51f7dd,_0x689279){return _0x51f7dd[_0x5d1652];});for(var _0x39acd1 in _0x538946){if(_0x538946[_0x9b72('0x1')](_0x39acd1)){if(!_0xa57e5e[_0x39acd1]){delete _0x538946[_0x39acd1];}}}}Realtime[_0x9b72('0x2')][_0x9b72('0x3')]=function(_0x2e9108,_0x5a35f7){for(var _0x2970d4 in _0x5a35f7){if(_0x2e9108[_0x9b72('0x1')](_0x2970d4)){_0x2e9108[_0x2970d4]=_0x5a35f7[_0x2970d4];}}};Realtime[_0x9b72('0x2')]['initMailAccounts']=function(){var _0x1e1fed=this;return function(_0x2a5560){if(_0x2a5560){freeIsNotKey(_0x2a5560,_0x1e1fed['mailAccounts'],'id');for(var _0x4e1c1f=0x0,_0x287e67={},_0x40dc66={};_0x4e1c1f<_0x2a5560['length'];_0x4e1c1f+=0x1){_0x287e67=_0x2a5560[_0x4e1c1f];if(_[_0x9b72('0x4')](_0x1e1fed[_0x9b72('0x5')][_0x287e67['id']])){_0x1e1fed[_0x9b72('0x5')][_0x287e67['id']]=new MailAccount(_0x287e67);}else{_['merge'](_0x1e1fed['mailAccounts'][_0x287e67['id']],_0x287e67);}}}return _0x1e1fed['mailAccounts'];};};module[_0x9b72('0x6')]=Realtime;
\ No newline at end of file