Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / email / realtime / index.js
index acd4380..7221204 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x67fa=['isUndefined','merge','exports','lodash','../model/mailAccount','mailAccounts','hasOwnProperty','prototype','mergeFromDatabase','initMailAccounts','length'];(function(_0x2b2f8e,_0x494521){var _0xd95772=function(_0xef5869){while(--_0xef5869){_0x2b2f8e['push'](_0x2b2f8e['shift']());}};_0xd95772(++_0x494521);}(_0x67fa,0x14d));var _0xa67f=function(_0x518bff,_0x4ab4b2){_0x518bff=_0x518bff-0x0;var _0x304fac=_0x67fa[_0x518bff];return _0x304fac;};'use strict';var _=require(_0xa67f('0x0'));var MailAccount=require(_0xa67f('0x1'));var Realtime=function(){this[_0xa67f('0x2')]={};};function freeIsNotKey(_0x527018,_0x202bf6,_0xbe5c5c){var _0x3da00a=_['mapKeys'](_0x527018,function(_0x5ebe5e,_0x10fde1){return _0x5ebe5e[_0xbe5c5c];});for(var _0x433983 in _0x202bf6){if(_0x202bf6[_0xa67f('0x3')](_0x433983)){if(!_0x3da00a[_0x433983]){delete _0x202bf6[_0x433983];}}}}Realtime[_0xa67f('0x4')][_0xa67f('0x5')]=function(_0x11ac79,_0x4b0c20){for(var _0x5ef369 in _0x4b0c20){if(_0x11ac79['hasOwnProperty'](_0x5ef369)){_0x11ac79[_0x5ef369]=_0x4b0c20[_0x5ef369];}}};Realtime[_0xa67f('0x4')][_0xa67f('0x6')]=function(){var _0x3a323d=this;return function(_0x3c6261){if(_0x3c6261){freeIsNotKey(_0x3c6261,_0x3a323d['mailAccounts'],'id');for(var _0x115833=0x0,_0x1f289b={},_0x5be050={};_0x115833<_0x3c6261[_0xa67f('0x7')];_0x115833+=0x1){_0x1f289b=_0x3c6261[_0x115833];if(_[_0xa67f('0x8')](_0x3a323d['mailAccounts'][_0x1f289b['id']])){_0x3a323d[_0xa67f('0x2')][_0x1f289b['id']]=new MailAccount(_0x1f289b);}else{_[_0xa67f('0x9')](_0x3a323d[_0xa67f('0x2')][_0x1f289b['id']],_0x1f289b);}}}return _0x3a323d[_0xa67f('0x2')];};};module[_0xa67f('0xa')]=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