Built motion from commit 5fcd269f5146f10cf3129722d518881dfac64576. Version 3.0.0...
[motion-next.git] / server / services / email / realtime / index.js
index f94b6e4..98c9ff6 100644 (file)
@@ -1 +1 @@
-const a1157_0x191a=['mailAccounts','isUndefined','../model/mailAccount','length','mergeFromDatabase','initMailAccounts','prototype','mapKeys','lodash','exports'];(function(_0x52522b,_0x191acd){const _0x52b6f0=function(_0x7999b){while(--_0x7999b){_0x52522b['push'](_0x52522b['shift']());}};_0x52b6f0(++_0x191acd);}(a1157_0x191a,0xf6));const a1157_0x52b6=function(_0x52522b,_0x191acd){_0x52522b=_0x52522b-0x0;let _0x52b6f0=a1157_0x191a[_0x52522b];return _0x52b6f0;};const _0x14498e=a1157_0x52b6;'use strict';const _=require(_0x14498e('0x2')),MailAccount=require(_0x14498e('0x6')),Realtime=function(){this['mailAccounts']={};};function freeIsNotKey(_0x7999b,_0x11038d,_0x46697f){const _0x1a107b=_0x14498e,_0x21bf2f=_[_0x1a107b('0x1')](_0x7999b,function(_0x2ccdc2){return _0x2ccdc2[_0x46697f];});for(const _0x187a9c in _0x11038d){typeof _0x11038d[_0x187a9c]!=='undefined'&&(!_0x21bf2f[_0x187a9c]&&delete _0x11038d[_0x187a9c]);}}Realtime[_0x14498e('0x0')][_0x14498e('0x8')]=function(_0x4e17b5,_0x3ae5cf){for(const _0x2e4a1e in _0x3ae5cf){typeof _0x4e17b5[_0x2e4a1e]!=='undefined'&&(_0x4e17b5[_0x2e4a1e]=_0x3ae5cf[_0x2e4a1e]);}},Realtime[_0x14498e('0x0')][_0x14498e('0x9')]=function(){const _0x4125de=this;return function(_0x40d525){const _0x37ac62=a1157_0x52b6;if(_0x40d525){freeIsNotKey(_0x40d525,_0x4125de['mailAccounts'],'id');for(let _0x4ee83e=0x0,_0x1e366e={};_0x4ee83e<_0x40d525[_0x37ac62('0x7')];_0x4ee83e+=0x1){_0x1e366e=_0x40d525[_0x4ee83e],_[_0x37ac62('0x5')](_0x4125de[_0x37ac62('0x4')][_0x1e366e['id']])?_0x4125de[_0x37ac62('0x4')][_0x1e366e['id']]=new MailAccount(_0x1e366e):_['merge'](_0x4125de[_0x37ac62('0x4')][_0x1e366e['id']],_0x1e366e);}}return _0x4125de[_0x37ac62('0x4')];};},module[_0x14498e('0x3')]=Realtime;
\ No newline at end of file
+const a1157_0x4ad5=['initMailAccounts','../model/mailAccount','lodash','mapKeys','mailAccounts','mergeFromDatabase','isUndefined','length','prototype','undefined'];(function(_0x2d7c54,_0x4ad5d1){const _0x4a39dc=function(_0x4e4bab){while(--_0x4e4bab){_0x2d7c54['push'](_0x2d7c54['shift']());}};_0x4a39dc(++_0x4ad5d1);}(a1157_0x4ad5,0xc5));const a1157_0x4a39=function(_0x2d7c54,_0x4ad5d1){_0x2d7c54=_0x2d7c54-0x0;let _0x4a39dc=a1157_0x4ad5[_0x2d7c54];return _0x4a39dc;};const _0x559024=a1157_0x4a39;'use strict';const _=require(_0x559024('0x5')),MailAccount=require(_0x559024('0x4')),Realtime=function(){const _0x3ccc0e=_0x559024;this[_0x3ccc0e('0x7')]={};};function freeIsNotKey(_0x4e4bab,_0x59190c,_0x5ba191){const _0x281059=_0x559024,_0x53c0a8=_[_0x281059('0x6')](_0x4e4bab,function(_0x269b02){return _0x269b02[_0x5ba191];});for(const _0x2636bf in _0x59190c){typeof _0x59190c[_0x2636bf]!==_0x281059('0x2')&&(!_0x53c0a8[_0x2636bf]&&delete _0x59190c[_0x2636bf]);}}Realtime[_0x559024('0x1')][_0x559024('0x8')]=function(_0x573b93,_0x1a0bc7){const _0x35c09f=_0x559024;for(const _0x471ecc in _0x1a0bc7){typeof _0x573b93[_0x471ecc]!==_0x35c09f('0x2')&&(_0x573b93[_0x471ecc]=_0x1a0bc7[_0x471ecc]);}},Realtime[_0x559024('0x1')][_0x559024('0x3')]=function(){const _0x24c386=this;return function(_0x10ba92){const _0x422cc0=a1157_0x4a39;if(_0x10ba92){freeIsNotKey(_0x10ba92,_0x24c386['mailAccounts'],'id');for(let _0x16d1fa=0x0,_0xba581f={};_0x16d1fa<_0x10ba92[_0x422cc0('0x0')];_0x16d1fa+=0x1){_0xba581f=_0x10ba92[_0x16d1fa],_[_0x422cc0('0x9')](_0x24c386[_0x422cc0('0x7')][_0xba581f['id']])?_0x24c386['mailAccounts'][_0xba581f['id']]=new MailAccount(_0xba581f):_['merge'](_0x24c386[_0x422cc0('0x7')][_0xba581f['id']],_0xba581f);}}return _0x24c386[_0x422cc0('0x7')];};},module['exports']=Realtime;
\ No newline at end of file