Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / services / email / realtime / index.js
1 const a1157_0x5e28=['initMailAccounts','exports','mapKeys','isUndefined','length','lodash','undefined','mailAccounts','../model/mailAccount','mergeFromDatabase','merge','prototype'];(function(_0x544b1f,_0x5e28d0){const _0x43a1fc=function(_0x224d24){while(--_0x224d24){_0x544b1f['push'](_0x544b1f['shift']());}};_0x43a1fc(++_0x5e28d0);}(a1157_0x5e28,0xc1));const a1157_0x43a1=function(_0x544b1f,_0x5e28d0){_0x544b1f=_0x544b1f-0x0;let _0x43a1fc=a1157_0x5e28[_0x544b1f];return _0x43a1fc;};const _0x536f36=a1157_0x43a1;'use strict';const _=require(_0x536f36('0x4')),MailAccount=require(_0x536f36('0x7')),Realtime=function(){const _0x5a9795=_0x536f36;this[_0x5a9795('0x6')]={};};function freeIsNotKey(_0x224d24,_0x1cf54f,_0x4d509f){const _0x14d412=_0x536f36,_0x42bf9a=_[_0x14d412('0x1')](_0x224d24,function(_0x57eb07){return _0x57eb07[_0x4d509f];});for(const _0x5eba0f in _0x1cf54f){typeof _0x1cf54f[_0x5eba0f]!==_0x14d412('0x5')&&(!_0x42bf9a[_0x5eba0f]&&delete _0x1cf54f[_0x5eba0f]);}}Realtime[_0x536f36('0xa')][_0x536f36('0x8')]=function(_0x44bb2b,_0x94698d){const _0x4dd6ce=_0x536f36;for(const _0x1ecafc in _0x94698d){typeof _0x44bb2b[_0x1ecafc]!==_0x4dd6ce('0x5')&&(_0x44bb2b[_0x1ecafc]=_0x94698d[_0x1ecafc]);}},Realtime[_0x536f36('0xa')][_0x536f36('0xb')]=function(){const _0x36531a=this;return function(_0x12a4f7){const _0x48098b=a1157_0x43a1;if(_0x12a4f7){freeIsNotKey(_0x12a4f7,_0x36531a['mailAccounts'],'id');for(let _0x2cfaea=0x0,_0x4a4472={};_0x2cfaea<_0x12a4f7[_0x48098b('0x3')];_0x2cfaea+=0x1){_0x4a4472=_0x12a4f7[_0x2cfaea],_[_0x48098b('0x2')](_0x36531a['mailAccounts'][_0x4a4472['id']])?_0x36531a['mailAccounts'][_0x4a4472['id']]=new MailAccount(_0x4a4472):_[_0x48098b('0x9')](_0x36531a[_0x48098b('0x6')][_0x4a4472['id']],_0x4a4472);}}return _0x36531a['mailAccounts'];};},module[_0x536f36('0x0')]=Realtime;