Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / services / email / server / index.js
index 61f54a4..52fd7f3 100644 (file)
@@ -1 +1 @@
-const a1158_0x3da1=['verifySmtp','http','jayson/promise','Imap','log','length','catch','email','Verified','account','then','Smtp','listen','stringify','../../../config/logger','pass','RPC\x20listening\x20on\x20port:','lodash','password','mailAccounts','Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','sendMail','server','error','message'];(function(_0x4cbb08,_0x3da1f1){const _0x1b09e4=function(_0x1421eb){while(--_0x1421eb){_0x4cbb08['push'](_0x4cbb08['shift']());}};_0x1b09e4(++_0x3da1f1);}(a1158_0x3da1,0x10c));const a1158_0x1b09=function(_0x4cbb08,_0x3da1f1){_0x4cbb08=_0x4cbb08-0x0;let _0x1b09e4=a1158_0x3da1[_0x4cbb08];return _0x1b09e4;};const _0x2d27f2=a1158_0x1b09;'use strict';const jayson=require(_0x2d27f2('0x9')),_=require(_0x2d27f2('0x18')),logger=require(_0x2d27f2('0x15'))(_0x2d27f2('0xe'));exports[_0x2d27f2('0x13')]=function(_0x1421eb,_0x21b6f9){return new Promise(function(_0x406e5d,_0x565ffd){const _0x280418=a1158_0x1b09,_0x25e215={'SendMail':function(_0x2b1412){const _0x4800b7=this;return new Promise(function(_0x3e6bf6,_0x3ee997){const _0x2042db=a1158_0x1b09;_0x21b6f9[_0x2042db('0x3')](_0x2b1412['account'],_0x2b1412[_0x2042db('0x6')])['then'](function(_0x557a20){_0x3e6bf6({'code':0xc8,'message':_0x557a20});})[_0x2042db('0xd')](function(_0x33467b){_0x3ee997(_0x4800b7['error'](0x1f4,_0x33467b));});});},'VerifySmtp':function(_0x210132){const _0x5359f2=this;return new Promise(function(_0x2ba7cf,_0x1c8a23){const _0x2c15c4=a1158_0x1b09;_0x21b6f9[_0x2c15c4('0x7')](_0x210132[_0x2c15c4('0x10')])[_0x2c15c4('0x11')](function(){const _0x578dd4=_0x2c15c4;_0x2ba7cf({'code':0xc8,'message':_0x578dd4('0xf')});})[_0x2c15c4('0xd')](function(_0x4c59c1){const _0x4639d6=_0x2c15c4;_0x1c8a23(_0x5359f2[_0x4639d6('0x5')](0x1f4,_0x4c59c1));});});},'MailAccounts':function(){return new Promise(function(_0x51002b){const _0x38363c=a1158_0x1b09,_0x3aa7ed=_['values'](_0x1421eb[_0x38363c('0x1')]);for(let _0x1833c0=0x0;_0x1833c0<_0x3aa7ed[_0x38363c('0xc')];_0x1833c0+=0x1){_0x3aa7ed[_0x1833c0][_0x38363c('0xa')]&&_0x3aa7ed[_0x1833c0][_0x38363c('0xa')][_0x38363c('0x0')]&&delete _0x3aa7ed[_0x1833c0]['Imap'][_0x38363c('0x0')],_0x3aa7ed[_0x1833c0][_0x38363c('0x12')]&&_0x3aa7ed[_0x1833c0][_0x38363c('0x12')]['pass']&&delete _0x3aa7ed[_0x1833c0][_0x38363c('0x12')][_0x38363c('0x16')];}_0x51002b({'count':_0x3aa7ed['length'],'rows':_0x3aa7ed});});}},_0x2e739a=jayson[_0x280418('0x4')](_0x25e215)[_0x280418('0x8')]();_0x2e739a['on']('error',function(_0x5e5393){const _0x4df59f=_0x280418;return logger[_0x4df59f('0x5')](JSON[_0x4df59f('0x14')](_0x5e5393)),_0x565ffd(_0x5e5393);}),_0x2e739a['listen'](0x232b,'127.0.0.1',function(){const _0x2a66e3=_0x280418;return console[_0x2a66e3('0xb')](_0x2a66e3('0x2'),0x232b),_0x406e5d(_0x2a66e3('0x17')+0x232b);});});};
\ No newline at end of file
+const a1158_0x2f7b=['http','listen','mailAccounts','account','password','error','../../../config/logger','RPC\x20listening\x20on\x20port:','jayson/promise','length','Smtp','then','lodash','127.0.0.1','sendMail','catch','values','email','server','pass','stringify','Verified','Imap'];(function(_0x3aeee0,_0x2f7b6c){const _0x55d496=function(_0xcb1f46){while(--_0xcb1f46){_0x3aeee0['push'](_0x3aeee0['shift']());}};_0x55d496(++_0x2f7b6c);}(a1158_0x2f7b,0x15a));const a1158_0x55d4=function(_0x3aeee0,_0x2f7b6c){_0x3aeee0=_0x3aeee0-0x0;let _0x55d496=a1158_0x2f7b[_0x3aeee0];return _0x55d496;};const _0x238c7a=a1158_0x55d4;'use strict';const jayson=require(_0x238c7a('0x7')),_=require(_0x238c7a('0xb')),logger=require(_0x238c7a('0x5'))(_0x238c7a('0x10'));exports[_0x238c7a('0x0')]=function(_0xcb1f46,_0x34440f){return new Promise(function(_0x28d962,_0x1ca24b){const _0x2107c9=a1158_0x55d4,_0x475e7d={'SendMail':function(_0x133000){const _0x143d03=this;return new Promise(function(_0x55b6ef,_0x341c26){const _0x4d70c0=a1158_0x55d4;_0x34440f[_0x4d70c0('0xd')](_0x133000[_0x4d70c0('0x2')],_0x133000['message'])[_0x4d70c0('0xa')](function(_0x7cd82c){_0x55b6ef({'code':0xc8,'message':_0x7cd82c});})[_0x4d70c0('0xe')](function(_0x10d682){_0x341c26(_0x143d03['error'](0x1f4,_0x10d682));});});},'VerifySmtp':function(_0x2828bf){const _0xce088c=this;return new Promise(function(_0x3ab19c,_0x562d42){const _0x3d401f=a1158_0x55d4;_0x34440f['verifySmtp'](_0x2828bf['account'])[_0x3d401f('0xa')](function(){const _0x1a7f85=_0x3d401f;_0x3ab19c({'code':0xc8,'message':_0x1a7f85('0x14')});})[_0x3d401f('0xe')](function(_0x162763){const _0x1e0cd9=_0x3d401f;_0x562d42(_0xce088c[_0x1e0cd9('0x4')](0x1f4,_0x162763));});});},'MailAccounts':function(){return new Promise(function(_0x21231c){const _0x401736=a1158_0x55d4,_0x239312=_[_0x401736('0xf')](_0xcb1f46[_0x401736('0x1')]);for(let _0x2326f9=0x0;_0x2326f9<_0x239312[_0x401736('0x8')];_0x2326f9+=0x1){_0x239312[_0x2326f9][_0x401736('0x15')]&&_0x239312[_0x2326f9][_0x401736('0x15')][_0x401736('0x3')]&&delete _0x239312[_0x2326f9]['Imap']['password'],_0x239312[_0x2326f9]['Smtp']&&_0x239312[_0x2326f9][_0x401736('0x9')][_0x401736('0x12')]&&delete _0x239312[_0x2326f9]['Smtp']['pass'];}_0x21231c({'count':_0x239312[_0x401736('0x8')],'rows':_0x239312});});}},_0x1f03b0=jayson[_0x2107c9('0x11')](_0x475e7d)[_0x2107c9('0x16')]();_0x1f03b0['on'](_0x2107c9('0x4'),function(_0x4ba8e9){const _0x28be8e=_0x2107c9;return logger[_0x28be8e('0x4')](JSON[_0x28be8e('0x13')](_0x4ba8e9)),_0x1ca24b(_0x4ba8e9);}),_0x1f03b0[_0x2107c9('0x0')](0x232b,_0x2107c9('0xc'),function(){const _0x596a10=_0x2107c9;return console['log']('Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232b),_0x28d962(_0x596a10('0x6')+0x232b);});});};
\ No newline at end of file