Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / services / email / realtime / index.js
index 2a111ca..60169fc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xebff=['../model/mailAccount','mapKeys','prototype','mergeFromDatabase','initMailAccounts','mailAccounts','length','isUndefined','exports','lodash'];(function(_0x1bc604,_0xe84f9d){var _0x39104b=function(_0x32a839){while(--_0x32a839){_0x1bc604['push'](_0x1bc604['shift']());}};_0x39104b(++_0xe84f9d);}(_0xebff,0x135));var _0xfebf=function(_0x500419,_0x549162){_0x500419=_0x500419-0x0;var _0x241c1a=_0xebff[_0x500419];return _0x241c1a;};'use strict';var _=require(_0xfebf('0x0'));var MailAccount=require(_0xfebf('0x1'));var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x12a0f3,_0x59b32d,_0x34f830){var _0x5b0a1c=_[_0xfebf('0x2')](_0x12a0f3,function(_0x1e3e6d,_0x1598ce){return _0x1e3e6d[_0x34f830];});for(var _0x551bec in _0x59b32d){if(_0x59b32d['hasOwnProperty'](_0x551bec)){if(!_0x5b0a1c[_0x551bec]){delete _0x59b32d[_0x551bec];}}}}Realtime[_0xfebf('0x3')][_0xfebf('0x4')]=function(_0x4172c0,_0x92ecbc){for(var _0x554459 in _0x92ecbc){if(_0x4172c0['hasOwnProperty'](_0x554459)){_0x4172c0[_0x554459]=_0x92ecbc[_0x554459];}}};Realtime[_0xfebf('0x3')][_0xfebf('0x5')]=function(){var _0x1529d8=this;return function(_0x22919c){if(_0x22919c){freeIsNotKey(_0x22919c,_0x1529d8[_0xfebf('0x6')],'id');for(var _0x1d3f33=0x0,_0x206fed={},_0x3ab4f8={};_0x1d3f33<_0x22919c[_0xfebf('0x7')];_0x1d3f33+=0x1){_0x206fed=_0x22919c[_0x1d3f33];if(_[_0xfebf('0x8')](_0x1529d8[_0xfebf('0x6')][_0x206fed['id']])){_0x1529d8['mailAccounts'][_0x206fed['id']]=new MailAccount(_0x206fed);}else{_['merge'](_0x1529d8[_0xfebf('0x6')][_0x206fed['id']],_0x206fed);}}}return _0x1529d8['mailAccounts'];};};module[_0xfebf('0x9')]=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