Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / email / realtime / index.js
index e8b13bf..7221204 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbfad=['lodash','../model/mailAccount','mapKeys','prototype','mergeFromDatabase','hasOwnProperty','initMailAccounts','mailAccounts','isUndefined','exports'];(function(_0x4a7e98,_0x250137){var _0x27d10d=function(_0x378768){while(--_0x378768){_0x4a7e98['push'](_0x4a7e98['shift']());}};_0x27d10d(++_0x250137);}(_0xbfad,0xe6));var _0xdbfa=function(_0x291798,_0x40e87c){_0x291798=_0x291798-0x0;var _0x57665a=_0xbfad[_0x291798];return _0x57665a;};'use strict';var _=require(_0xdbfa('0x0'));var MailAccount=require(_0xdbfa('0x1'));var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x47f423,_0x2dfa79,_0x370e55){var _0x5a3908=_[_0xdbfa('0x2')](_0x47f423,function(_0x9441f3,_0x1a086e){return _0x9441f3[_0x370e55];});for(var _0x2cb201 in _0x2dfa79){if(_0x2dfa79['hasOwnProperty'](_0x2cb201)){if(!_0x5a3908[_0x2cb201]){delete _0x2dfa79[_0x2cb201];}}}}Realtime[_0xdbfa('0x3')][_0xdbfa('0x4')]=function(_0x5bb19d,_0x52e980){for(var _0xa3c2a6 in _0x52e980){if(_0x5bb19d[_0xdbfa('0x5')](_0xa3c2a6)){_0x5bb19d[_0xa3c2a6]=_0x52e980[_0xa3c2a6];}}};Realtime['prototype'][_0xdbfa('0x6')]=function(){var _0x2670e2=this;return function(_0x58ea36){if(_0x58ea36){freeIsNotKey(_0x58ea36,_0x2670e2[_0xdbfa('0x7')],'id');for(var _0x4e8d00=0x0,_0x1b4b72={},_0x2fb4b1={};_0x4e8d00<_0x58ea36['length'];_0x4e8d00+=0x1){_0x1b4b72=_0x58ea36[_0x4e8d00];if(_[_0xdbfa('0x8')](_0x2670e2[_0xdbfa('0x7')][_0x1b4b72['id']])){_0x2670e2['mailAccounts'][_0x1b4b72['id']]=new MailAccount(_0x1b4b72);}else{_['merge'](_0x2670e2[_0xdbfa('0x7')][_0x1b4b72['id']],_0x1b4b72);}}}return _0x2670e2[_0xdbfa('0x7')];};};module[_0xdbfa('0x9')]=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