Built motion from commit da617fac.|2.6.6
[motion2.git] / server / services / email / realtime / index.js
index 4489891..e155f8e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7a97=['prototype','mergeFromDatabase','mailAccounts','length','isUndefined','exports','lodash','../model/mailAccount','hasOwnProperty'];(function(_0x5e74e0,_0x53b3fb){var _0x2f64d0=function(_0x27bfc4){while(--_0x27bfc4){_0x5e74e0['push'](_0x5e74e0['shift']());}};_0x2f64d0(++_0x53b3fb);}(_0x7a97,0xb1));var _0x77a9=function(_0x3fb73d,_0x2cdbbc){_0x3fb73d=_0x3fb73d-0x0;var _0xa55ede=_0x7a97[_0x3fb73d];return _0xa55ede;};'use strict';var _=require(_0x77a9('0x0'));var MailAccount=require(_0x77a9('0x1'));var Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x5a5345,_0x4750e7,_0x5b1d14){var _0x4d0aa0=_['mapKeys'](_0x5a5345,function(_0x34c657,_0x5836fe){return _0x34c657[_0x5b1d14];});for(var _0x3f0f28 in _0x4750e7){if(_0x4750e7[_0x77a9('0x2')](_0x3f0f28)){if(!_0x4d0aa0[_0x3f0f28]){delete _0x4750e7[_0x3f0f28];}}}}Realtime[_0x77a9('0x3')][_0x77a9('0x4')]=function(_0x2c1ad6,_0x4f2740){for(var _0x4f8995 in _0x4f2740){if(_0x2c1ad6[_0x77a9('0x2')](_0x4f8995)){_0x2c1ad6[_0x4f8995]=_0x4f2740[_0x4f8995];}}};Realtime[_0x77a9('0x3')]['initMailAccounts']=function(){var _0x1ea1ed=this;return function(_0x59b16f){if(_0x59b16f){freeIsNotKey(_0x59b16f,_0x1ea1ed[_0x77a9('0x5')],'id');for(var _0x1e4446=0x0,_0x40eb1b={},_0x19c392={};_0x1e4446<_0x59b16f[_0x77a9('0x6')];_0x1e4446+=0x1){_0x40eb1b=_0x59b16f[_0x1e4446];if(_[_0x77a9('0x7')](_0x1ea1ed['mailAccounts'][_0x40eb1b['id']])){_0x1ea1ed[_0x77a9('0x5')][_0x40eb1b['id']]=new MailAccount(_0x40eb1b);}else{_['merge'](_0x1ea1ed[_0x77a9('0x5')][_0x40eb1b['id']],_0x40eb1b);}}}return _0x1ea1ed['mailAccounts'];};};module[_0x77a9('0x8')]=Realtime;
\ No newline at end of file
+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