Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / services / email / realtime / index.js
index e155f8e..03b5d7c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x292f=['hasOwnProperty','prototype','mergeFromDatabase','initMailAccounts','isUndefined','merge','lodash','mailAccounts','mapKeys'];(function(_0x51b10b,_0x311567){var _0x45b2cf=function(_0xa17759){while(--_0xa17759){_0x51b10b['push'](_0x51b10b['shift']());}};_0x45b2cf(++_0x311567);}(_0x292f,0x1bf));var _0xf292=function(_0x50a0c2,_0x4befab){_0x50a0c2=_0x50a0c2-0x0;var _0x5ebadd=_0x292f[_0x50a0c2];return _0x5ebadd;};'use strict';var _=require(_0xf292('0x0'));var MailAccount=require('../model/mailAccount');var Realtime=function(){this[_0xf292('0x1')]={};};function freeIsNotKey(_0x175e6c,_0x52ffa9,_0x43d552){var _0x23324d=_[_0xf292('0x2')](_0x175e6c,function(_0x2db778,_0x4ded3a){return _0x2db778[_0x43d552];});for(var _0x588661 in _0x52ffa9){if(_0x52ffa9[_0xf292('0x3')](_0x588661)){if(!_0x23324d[_0x588661]){delete _0x52ffa9[_0x588661];}}}}Realtime[_0xf292('0x4')][_0xf292('0x5')]=function(_0x438bbc,_0xc67277){for(var _0x423cf2 in _0xc67277){if(_0x438bbc['hasOwnProperty'](_0x423cf2)){_0x438bbc[_0x423cf2]=_0xc67277[_0x423cf2];}}};Realtime[_0xf292('0x4')][_0xf292('0x6')]=function(){var _0xee5f9=this;return function(_0x2c57c5){if(_0x2c57c5){freeIsNotKey(_0x2c57c5,_0xee5f9[_0xf292('0x1')],'id');for(var _0x1ab30c=0x0,_0x5b94b3={},_0x13e69a={};_0x1ab30c<_0x2c57c5['length'];_0x1ab30c+=0x1){_0x5b94b3=_0x2c57c5[_0x1ab30c];if(_[_0xf292('0x7')](_0xee5f9['mailAccounts'][_0x5b94b3['id']])){_0xee5f9[_0xf292('0x1')][_0x5b94b3['id']]=new MailAccount(_0x5b94b3);}else{_[_0xf292('0x8')](_0xee5f9[_0xf292('0x1')][_0x5b94b3['id']],_0x5b94b3);}}}return _0xee5f9[_0xf292('0x1')];};};module['exports']=Realtime;
\ No newline at end of file
+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