Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / email / realtime / index.js
index 03b5d7c..7221204 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5f63=['lodash','mailAccounts','hasOwnProperty','prototype','mergeFromDatabase','initMailAccounts','length','merge','exports'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5f63,0x1c2));var _0x35f6=function(_0x16eff4,_0x1ca3c7){_0x16eff4=_0x16eff4-0x0;var _0x5fe701=_0x5f63[_0x16eff4];return _0x5fe701;};'use strict';var _=require(_0x35f6('0x0'));var MailAccount=require('../model/mailAccount');var Realtime=function(){this[_0x35f6('0x1')]={};};function freeIsNotKey(_0x5a8a3f,_0x29c9a7,_0x1c0fd7){var _0x319d98=_['mapKeys'](_0x5a8a3f,function(_0x400b0a,_0x48ec1d){return _0x400b0a[_0x1c0fd7];});for(var _0x37556b in _0x29c9a7){if(_0x29c9a7[_0x35f6('0x2')](_0x37556b)){if(!_0x319d98[_0x37556b]){delete _0x29c9a7[_0x37556b];}}}}Realtime[_0x35f6('0x3')][_0x35f6('0x4')]=function(_0x581bd9,_0x56953d){for(var _0x398da0 in _0x56953d){if(_0x581bd9['hasOwnProperty'](_0x398da0)){_0x581bd9[_0x398da0]=_0x56953d[_0x398da0];}}};Realtime['prototype'][_0x35f6('0x5')]=function(){var _0x10c46e=this;return function(_0xac8609){if(_0xac8609){freeIsNotKey(_0xac8609,_0x10c46e['mailAccounts'],'id');for(var _0x88455d=0x0,_0x545789={},_0x2fc969={};_0x88455d<_0xac8609[_0x35f6('0x6')];_0x88455d+=0x1){_0x545789=_0xac8609[_0x88455d];if(_['isUndefined'](_0x10c46e[_0x35f6('0x1')][_0x545789['id']])){_0x10c46e[_0x35f6('0x1')][_0x545789['id']]=new MailAccount(_0x545789);}else{_[_0x35f6('0x7')](_0x10c46e[_0x35f6('0x1')][_0x545789['id']],_0x545789);}}}return _0x10c46e[_0x35f6('0x1')];};};module[_0x35f6('0x8')]=Realtime;
\ No newline at end of file
+var _0x65de=['prototype','mergeFromDatabase','initMailAccounts','length','merge','lodash','../model/mailAccount','mailAccounts','mapKeys','hasOwnProperty'];(function(_0x5e9c00,_0x32bf2d){var _0x193f17=function(_0x3723e2){while(--_0x3723e2){_0x5e9c00['push'](_0x5e9c00['shift']());}};_0x193f17(++_0x32bf2d);}(_0x65de,0x13b));var _0xe65d=function(_0x59767a,_0x3f659f){_0x59767a=_0x59767a-0x0;var _0x21d0ab=_0x65de[_0x59767a];return _0x21d0ab;};'use strict';var _=require(_0xe65d('0x0'));var MailAccount=require(_0xe65d('0x1'));var Realtime=function(){this[_0xe65d('0x2')]={};};function freeIsNotKey(_0x4e1999,_0xea38e9,_0x41a88f){var _0x480915=_[_0xe65d('0x3')](_0x4e1999,function(_0x428c3d,_0x5a14d8){return _0x428c3d[_0x41a88f];});for(var _0x3b7cbf in _0xea38e9){if(_0xea38e9[_0xe65d('0x4')](_0x3b7cbf)){if(!_0x480915[_0x3b7cbf]){delete _0xea38e9[_0x3b7cbf];}}}}Realtime[_0xe65d('0x5')][_0xe65d('0x6')]=function(_0x28dbff,_0x414b69){for(var _0x20b151 in _0x414b69){if(_0x28dbff[_0xe65d('0x4')](_0x20b151)){_0x28dbff[_0x20b151]=_0x414b69[_0x20b151];}}};Realtime[_0xe65d('0x5')][_0xe65d('0x7')]=function(){var _0x1bb31a=this;return function(_0x1b8345){if(_0x1b8345){freeIsNotKey(_0x1b8345,_0x1bb31a[_0xe65d('0x2')],'id');for(var _0x1d8d76=0x0,_0x5157e5={},_0x2a900a={};_0x1d8d76<_0x1b8345[_0xe65d('0x8')];_0x1d8d76+=0x1){_0x5157e5=_0x1b8345[_0x1d8d76];if(_['isUndefined'](_0x1bb31a[_0xe65d('0x2')][_0x5157e5['id']])){_0x1bb31a[_0xe65d('0x2')][_0x5157e5['id']]=new MailAccount(_0x5157e5);}else{_[_0xe65d('0x9')](_0x1bb31a[_0xe65d('0x2')][_0x5157e5['id']],_0x5157e5);}}}return _0x1bb31a[_0xe65d('0x2')];};};module['exports']=Realtime;
\ No newline at end of file