Built motion from commit 4c281f94.|2.6.31
[motion2.git] / server / services / email / realtime / index.js
index c3d8ec6..2fd746e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8528=['mergeFromDatabase','length','isUndefined','merge','exports','mailAccounts','mapKeys','hasOwnProperty'];(function(_0x473582,_0x139c3c){var _0x48feb7=function(_0x5cfa3c){while(--_0x5cfa3c){_0x473582['push'](_0x473582['shift']());}};_0x48feb7(++_0x139c3c);}(_0x8528,0xcd));var _0x8852=function(_0x27657c,_0x4e6753){_0x27657c=_0x27657c-0x0;var _0x1e6242=_0x8528[_0x27657c];return _0x1e6242;};'use strict';var _=require('lodash');var MailAccount=require('../model/mailAccount');var Realtime=function(){this[_0x8852('0x0')]={};};function freeIsNotKey(_0x30fabd,_0x21f0c1,_0x4cfb3b){var _0x3c7c0c=_[_0x8852('0x1')](_0x30fabd,function(_0x4bbe95,_0x3dffeb){return _0x4bbe95[_0x4cfb3b];});for(var _0x11334b in _0x21f0c1){if(_0x21f0c1[_0x8852('0x2')](_0x11334b)){if(!_0x3c7c0c[_0x11334b]){delete _0x21f0c1[_0x11334b];}}}}Realtime['prototype'][_0x8852('0x3')]=function(_0x2e46bd,_0x2847f2){for(var _0xe7f87b in _0x2847f2){if(_0x2e46bd[_0x8852('0x2')](_0xe7f87b)){_0x2e46bd[_0xe7f87b]=_0x2847f2[_0xe7f87b];}}};Realtime['prototype']['initMailAccounts']=function(){var _0xb3706c=this;return function(_0x43bb3f){if(_0x43bb3f){freeIsNotKey(_0x43bb3f,_0xb3706c[_0x8852('0x0')],'id');for(var _0x482e54=0x0,_0x3a8621={},_0x50bed2={};_0x482e54<_0x43bb3f[_0x8852('0x4')];_0x482e54+=0x1){_0x3a8621=_0x43bb3f[_0x482e54];if(_[_0x8852('0x5')](_0xb3706c[_0x8852('0x0')][_0x3a8621['id']])){_0xb3706c[_0x8852('0x0')][_0x3a8621['id']]=new MailAccount(_0x3a8621);}else{_[_0x8852('0x6')](_0xb3706c[_0x8852('0x0')][_0x3a8621['id']],_0x3a8621);}}}return _0xb3706c[_0x8852('0x0')];};};module[_0x8852('0x7')]=Realtime;
\ No newline at end of file
+var _0x83f6=['mapKeys','hasOwnProperty','prototype','initMailAccounts','length','isUndefined','exports','lodash','../model/mailAccount','mailAccounts'];(function(_0x4cf0c0,_0x5a141c){var _0x1dfa59=function(_0x6f3037){while(--_0x6f3037){_0x4cf0c0['push'](_0x4cf0c0['shift']());}};_0x1dfa59(++_0x5a141c);}(_0x83f6,0x1dd));var _0x683f=function(_0x3ce3c,_0x319337){_0x3ce3c=_0x3ce3c-0x0;var _0x55a2c9=_0x83f6[_0x3ce3c];return _0x55a2c9;};'use strict';var _=require(_0x683f('0x0'));var MailAccount=require(_0x683f('0x1'));var Realtime=function(){this[_0x683f('0x2')]={};};function freeIsNotKey(_0x5100d6,_0x3e61f5,_0x3b83a7){var _0x6ccab=_[_0x683f('0x3')](_0x5100d6,function(_0x14a988,_0x5ccb79){return _0x14a988[_0x3b83a7];});for(var _0x428578 in _0x3e61f5){if(_0x3e61f5[_0x683f('0x4')](_0x428578)){if(!_0x6ccab[_0x428578]){delete _0x3e61f5[_0x428578];}}}}Realtime[_0x683f('0x5')]['mergeFromDatabase']=function(_0x32a955,_0x5f4ff0){for(var _0x815ad in _0x5f4ff0){if(_0x32a955[_0x683f('0x4')](_0x815ad)){_0x32a955[_0x815ad]=_0x5f4ff0[_0x815ad];}}};Realtime[_0x683f('0x5')][_0x683f('0x6')]=function(){var _0x1ee431=this;return function(_0x50169e){if(_0x50169e){freeIsNotKey(_0x50169e,_0x1ee431[_0x683f('0x2')],'id');for(var _0x2d9a7f=0x0,_0x12ad0f={},_0x2151a9={};_0x2d9a7f<_0x50169e[_0x683f('0x7')];_0x2d9a7f+=0x1){_0x12ad0f=_0x50169e[_0x2d9a7f];if(_[_0x683f('0x8')](_0x1ee431[_0x683f('0x2')][_0x12ad0f['id']])){_0x1ee431[_0x683f('0x2')][_0x12ad0f['id']]=new MailAccount(_0x12ad0f);}else{_['merge'](_0x1ee431[_0x683f('0x2')][_0x12ad0f['id']],_0x12ad0f);}}}return _0x1ee431['mailAccounts'];};};module[_0x683f('0x9')]=Realtime;
\ No newline at end of file