Built motion from commit f651e4b0a7312c0adceb5e57d6684a801a3aaf0d. Version 3.0.0...
[motion-next.git] / server / services / email / server / index.js
index fe761bd..9a3a05b 100644 (file)
@@ -1 +1 @@
-const a1159_0x4628=['sendMail','stringify','Imap','RPC\x20listening\x20on\x20port:','pass','verifySmtp','then','../../../config/logger','listen','Smtp','server','Verified','log','http','length','lodash','message','catch','password','jayson/promise','Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','127.0.0.1','email','account','error'];(function(_0x2a960b,_0x4628c2){const _0x5bbde3=function(_0x4c6bee){while(--_0x4c6bee){_0x2a960b['push'](_0x2a960b['shift']());}};_0x5bbde3(++_0x4628c2);}(a1159_0x4628,0x1b0));const a1159_0x5bbd=function(_0x2a960b,_0x4628c2){_0x2a960b=_0x2a960b-0x0;let _0x5bbde3=a1159_0x4628[_0x2a960b];return _0x5bbde3;};const _0x33ee44=a1159_0x5bbd;'use strict';const jayson=require(_0x33ee44('0xc')),_=require(_0x33ee44('0x8')),logger=require(_0x33ee44('0x0'))(_0x33ee44('0xf'));exports['listen']=function(_0x4c6bee,_0x17af51){return new Promise(function(_0x5de458,_0x14de0b){const _0x3f6ff8=a1159_0x5bbd,_0x34635a={'SendMail':function(_0x538de8){const _0x1448ef=this;return new Promise(function(_0x49e296,_0xa2156d){const _0x1d5eed=a1159_0x5bbd;_0x17af51[_0x1d5eed('0x12')](_0x538de8[_0x1d5eed('0x10')],_0x538de8[_0x1d5eed('0x9')])[_0x1d5eed('0x18')](function(_0x50fc48){_0x49e296({'code':0xc8,'message':_0x50fc48});})['catch'](function(_0x56f8bb){const _0x1ee19c=_0x1d5eed;_0xa2156d(_0x1448ef[_0x1ee19c('0x11')](0x1f4,_0x56f8bb));});});},'VerifySmtp':function(_0x3d22fb){const _0x8e13b2=this;return new Promise(function(_0x5af1d6,_0x4ea71b){const _0x2ced62=a1159_0x5bbd;_0x17af51[_0x2ced62('0x17')](_0x3d22fb[_0x2ced62('0x10')])[_0x2ced62('0x18')](function(){const _0x5db38b=_0x2ced62;_0x5af1d6({'code':0xc8,'message':_0x5db38b('0x4')});})[_0x2ced62('0xa')](function(_0x2c0366){const _0x47ec66=_0x2ced62;_0x4ea71b(_0x8e13b2[_0x47ec66('0x11')](0x1f4,_0x2c0366));});});},'MailAccounts':function(){return new Promise(function(_0xcb7f7){const _0x54b147=a1159_0x5bbd,_0x540756=_['values'](_0x4c6bee['mailAccounts']);for(let _0x27fc54=0x0;_0x27fc54<_0x540756[_0x54b147('0x7')];_0x27fc54+=0x1){_0x540756[_0x27fc54][_0x54b147('0x14')]&&_0x540756[_0x27fc54][_0x54b147('0x14')][_0x54b147('0xb')]&&delete _0x540756[_0x27fc54]['Imap'][_0x54b147('0xb')],_0x540756[_0x27fc54]['Smtp']&&_0x540756[_0x27fc54][_0x54b147('0x2')][_0x54b147('0x16')]&&delete _0x540756[_0x27fc54][_0x54b147('0x2')][_0x54b147('0x16')];}_0xcb7f7({'count':_0x540756[_0x54b147('0x7')],'rows':_0x540756});});}},_0x20eaca=jayson[_0x3f6ff8('0x3')](_0x34635a)[_0x3f6ff8('0x6')]();_0x20eaca['on'](_0x3f6ff8('0x11'),function(_0x4f77c0){const _0x133cfa=_0x3f6ff8;return logger[_0x133cfa('0x11')](JSON[_0x133cfa('0x13')](_0x4f77c0)),_0x14de0b(_0x4f77c0);}),_0x20eaca[_0x3f6ff8('0x1')](0x232b,_0x3f6ff8('0xe'),function(){const _0x61a0c2=_0x3f6ff8;return console[_0x61a0c2('0x5')](_0x61a0c2('0xd'),0x232b),_0x5de458(_0x61a0c2('0x15')+0x232b);});});};
\ No newline at end of file
+const a1159_0x4cf9=['stringify','account','message','email','Smtp','password','Verified','Imap','log','pass','values','Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','../../../config/logger','verifySmtp','then','mailAccounts','error','length','server','listen','sendMail','catch','lodash','jayson/promise','http'];(function(_0x306819,_0x4cf9b2){const _0x1972ba=function(_0x32ae8a){while(--_0x32ae8a){_0x306819['push'](_0x306819['shift']());}};_0x1972ba(++_0x4cf9b2);}(a1159_0x4cf9,0xb6));const a1159_0x1972=function(_0x306819,_0x4cf9b2){_0x306819=_0x306819-0x0;let _0x1972ba=a1159_0x4cf9[_0x306819];return _0x1972ba;};const _0xd81b91=a1159_0x1972;'use strict';const jayson=require(_0xd81b91('0x10')),_=require(_0xd81b91('0xf')),logger=require(_0xd81b91('0x5'))(_0xd81b91('0x15'));exports[_0xd81b91('0xc')]=function(_0x32ae8a,_0x1e43ca){return new Promise(function(_0x2ca47a,_0x516965){const _0x568afb=a1159_0x1972,_0x41107c={'SendMail':function(_0x2619c2){const _0x4b865b=this;return new Promise(function(_0x5333ac,_0x4e25ef){const _0x4cde0b=a1159_0x1972;_0x1e43ca[_0x4cde0b('0xd')](_0x2619c2[_0x4cde0b('0x13')],_0x2619c2[_0x4cde0b('0x14')])[_0x4cde0b('0x7')](function(_0x58e78e){_0x5333ac({'code':0xc8,'message':_0x58e78e});})[_0x4cde0b('0xe')](function(_0x23bd8d){const _0x4eec2b=_0x4cde0b;_0x4e25ef(_0x4b865b[_0x4eec2b('0x9')](0x1f4,_0x23bd8d));});});},'VerifySmtp':function(_0x4de3f6){const _0x256636=this;return new Promise(function(_0x460271,_0x19f831){const _0x470dcc=a1159_0x1972;_0x1e43ca[_0x470dcc('0x6')](_0x4de3f6[_0x470dcc('0x13')])['then'](function(){const _0x249019=_0x470dcc;_0x460271({'code':0xc8,'message':_0x249019('0x18')});})[_0x470dcc('0xe')](function(_0x43c6fa){const _0xc46978=_0x470dcc;_0x19f831(_0x256636[_0xc46978('0x9')](0x1f4,_0x43c6fa));});});},'MailAccounts':function(){return new Promise(function(_0x27001b){const _0x100be3=a1159_0x1972,_0x584b88=_[_0x100be3('0x3')](_0x32ae8a[_0x100be3('0x8')]);for(let _0x1e4a2c=0x0;_0x1e4a2c<_0x584b88[_0x100be3('0xa')];_0x1e4a2c+=0x1){_0x584b88[_0x1e4a2c][_0x100be3('0x0')]&&_0x584b88[_0x1e4a2c][_0x100be3('0x0')][_0x100be3('0x17')]&&delete _0x584b88[_0x1e4a2c][_0x100be3('0x0')]['password'],_0x584b88[_0x1e4a2c]['Smtp']&&_0x584b88[_0x1e4a2c][_0x100be3('0x16')][_0x100be3('0x2')]&&delete _0x584b88[_0x1e4a2c][_0x100be3('0x16')][_0x100be3('0x2')];}_0x27001b({'count':_0x584b88['length'],'rows':_0x584b88});});}},_0x502413=jayson[_0x568afb('0xb')](_0x41107c)[_0x568afb('0x11')]();_0x502413['on'](_0x568afb('0x9'),function(_0x15e61e){const _0x255dd1=_0x568afb;return logger[_0x255dd1('0x9')](JSON[_0x255dd1('0x12')](_0x15e61e)),_0x516965(_0x15e61e);}),_0x502413[_0x568afb('0xc')](0x232b,'127.0.0.1',function(){const _0x30a4d9=_0x568afb;return console[_0x30a4d9('0x1')](_0x30a4d9('0x4'),0x232b),_0x2ca47a('RPC\x20listening\x20on\x20port:'+0x232b);});});};
\ No newline at end of file