Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / services / email / realtime / index.js
index 1bd386a..57ea80f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdece=['initMailAccounts','length','isUndefined','merge','exports','lodash','../model/mailAccount','mailAccounts','mapKeys','hasOwnProperty','prototype'];(function(_0x69d420,_0x3e65de){var _0x4e2e2d=function(_0x5a73a7){while(--_0x5a73a7){_0x69d420['push'](_0x69d420['shift']());}};_0x4e2e2d(++_0x3e65de);}(_0xdece,0x186));var _0xedec=function(_0x46e363,_0x45d7e2){_0x46e363=_0x46e363-0x0;var _0x3fb059=_0xdece[_0x46e363];return _0x3fb059;};'use strict';var _=require(_0xedec('0x0'));var MailAccount=require(_0xedec('0x1'));var Realtime=function(){this[_0xedec('0x2')]={};};function freeIsNotKey(_0x5edca0,_0x2f31e2,_0x5a1c10){var _0x20c8a3=_[_0xedec('0x3')](_0x5edca0,function(_0x4daa60,_0x203665){return _0x4daa60[_0x5a1c10];});for(var _0x4ae1b8 in _0x2f31e2){if(_0x2f31e2[_0xedec('0x4')](_0x4ae1b8)){if(!_0x20c8a3[_0x4ae1b8]){delete _0x2f31e2[_0x4ae1b8];}}}}Realtime[_0xedec('0x5')]['mergeFromDatabase']=function(_0x573b9b,_0x38c3ab){for(var _0x226141 in _0x38c3ab){if(_0x573b9b[_0xedec('0x4')](_0x226141)){_0x573b9b[_0x226141]=_0x38c3ab[_0x226141];}}};Realtime['prototype'][_0xedec('0x6')]=function(){var _0x57ec26=this;return function(_0x3bec52){if(_0x3bec52){freeIsNotKey(_0x3bec52,_0x57ec26['mailAccounts'],'id');for(var _0x15a930=0x0,_0x11e229={},_0x20fbd2={};_0x15a930<_0x3bec52[_0xedec('0x7')];_0x15a930+=0x1){_0x11e229=_0x3bec52[_0x15a930];if(_[_0xedec('0x8')](_0x57ec26[_0xedec('0x2')][_0x11e229['id']])){_0x57ec26[_0xedec('0x2')][_0x11e229['id']]=new MailAccount(_0x11e229);}else{_[_0xedec('0x9')](_0x57ec26[_0xedec('0x2')][_0x11e229['id']],_0x11e229);}}}return _0x57ec26[_0xedec('0x2')];};};module[_0xedec('0xa')]=Realtime;
\ No newline at end of file
+var _0x568a=['hasOwnProperty','initMailAccounts','length','merge','exports','lodash','../model/mailAccount','mailAccounts','prototype','mergeFromDatabase'];(function(_0x439a59,_0x17962c){var _0x196b8b=function(_0x3de02b){while(--_0x3de02b){_0x439a59['push'](_0x439a59['shift']());}};_0x196b8b(++_0x17962c);}(_0x568a,0xcd));var _0xa568=function(_0xc67528,_0x24e2fb){_0xc67528=_0xc67528-0x0;var _0x38e26d=_0x568a[_0xc67528];return _0x38e26d;};'use strict';var _=require(_0xa568('0x0'));var MailAccount=require(_0xa568('0x1'));var Realtime=function(){this[_0xa568('0x2')]={};};function freeIsNotKey(_0x3af254,_0x1b4e0a,_0x484b48){var _0x51c3b8=_['mapKeys'](_0x3af254,function(_0x3ff32d,_0x4d18f9){return _0x3ff32d[_0x484b48];});for(var _0x4ca084 in _0x1b4e0a){if(_0x1b4e0a['hasOwnProperty'](_0x4ca084)){if(!_0x51c3b8[_0x4ca084]){delete _0x1b4e0a[_0x4ca084];}}}}Realtime[_0xa568('0x3')][_0xa568('0x4')]=function(_0x12160d,_0x1cf69c){for(var _0x4ae3ee in _0x1cf69c){if(_0x12160d[_0xa568('0x5')](_0x4ae3ee)){_0x12160d[_0x4ae3ee]=_0x1cf69c[_0x4ae3ee];}}};Realtime[_0xa568('0x3')][_0xa568('0x6')]=function(){var _0x1cb0c8=this;return function(_0x1aabf7){if(_0x1aabf7){freeIsNotKey(_0x1aabf7,_0x1cb0c8['mailAccounts'],'id');for(var _0x3e2cfd=0x0,_0x472727={},_0x678c1a={};_0x3e2cfd<_0x1aabf7[_0xa568('0x7')];_0x3e2cfd+=0x1){_0x472727=_0x1aabf7[_0x3e2cfd];if(_['isUndefined'](_0x1cb0c8[_0xa568('0x2')][_0x472727['id']])){_0x1cb0c8[_0xa568('0x2')][_0x472727['id']]=new MailAccount(_0x472727);}else{_[_0xa568('0x8')](_0x1cb0c8[_0xa568('0x2')][_0x472727['id']],_0x472727);}}}return _0x1cb0c8[_0xa568('0x2')];};};module[_0xa568('0x9')]=Realtime;
\ No newline at end of file