Built motion from commit 4a18b36e645f5fa4a517d36f9783bde259878164. Version 3.0.0...
[motion-next.git] / server / services / email / realtime / index.js
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;