Built motion from commit aab208717af8d15f4fa224cdb6a202877019af9b. Version 3.0.0...
[motion-next.git] / server / services / email / server / index.js
index 896a7a2..2d07bd7 100644 (file)
@@ -1 +1 @@
-const a1159_0x4146=['Imap','message','values','jayson/promise','Smtp','length','log','account','verifySmtp','listen','../../../config/logger','http','pass','stringify','password','127.0.0.1','error','RPC\x20listening\x20on\x20port:','lodash','then'];(function(_0x2bd167,_0x4146e4){const _0x217cc5=function(_0x13a2b7){while(--_0x13a2b7){_0x2bd167['push'](_0x2bd167['shift']());}};_0x217cc5(++_0x4146e4);}(a1159_0x4146,0x11b));const a1159_0x217c=function(_0x2bd167,_0x4146e4){_0x2bd167=_0x2bd167-0x0;let _0x217cc5=a1159_0x4146[_0x2bd167];return _0x217cc5;};const _0x3d401c=a1159_0x217c;'use strict';const jayson=require(_0x3d401c('0x0')),_=require(_0x3d401c('0xf')),logger=require(_0x3d401c('0x7'))('email');exports[_0x3d401c('0x6')]=function(_0x13a2b7,_0x5965ef){return new Promise(function(_0x4c50ce,_0x9ded2d){const _0x1acadf=a1159_0x217c,_0x42cf5c={'SendMail':function(_0x18fa64){const _0x35821e=this;return new Promise(function(_0x1cbe3d,_0x570c23){const _0x560689=a1159_0x217c;_0x5965ef['sendMail'](_0x18fa64[_0x560689('0x4')],_0x18fa64[_0x560689('0x12')])[_0x560689('0x10')](function(_0x50137e){_0x1cbe3d({'code':0xc8,'message':_0x50137e});})['catch'](function(_0x3f5470){const _0x3e454d=_0x560689;_0x570c23(_0x35821e[_0x3e454d('0xd')](0x1f4,_0x3f5470));});});},'VerifySmtp':function(_0x49e865){const _0x2fb3b9=this;return new Promise(function(_0x505223,_0x347064){const _0x409ac7=a1159_0x217c;_0x5965ef[_0x409ac7('0x5')](_0x49e865['account'])['then'](function(){_0x505223({'code':0xc8,'message':'Verified'});})['catch'](function(_0x4ff470){const _0x5b153e=_0x409ac7;_0x347064(_0x2fb3b9[_0x5b153e('0xd')](0x1f4,_0x4ff470));});});},'MailAccounts':function(){return new Promise(function(_0x30b746){const _0x50db23=a1159_0x217c,_0x3dd17d=_[_0x50db23('0x13')](_0x13a2b7['mailAccounts']);for(let _0x40030b=0x0;_0x40030b<_0x3dd17d[_0x50db23('0x2')];_0x40030b+=0x1){_0x3dd17d[_0x40030b][_0x50db23('0x11')]&&_0x3dd17d[_0x40030b]['Imap']['password']&&delete _0x3dd17d[_0x40030b][_0x50db23('0x11')][_0x50db23('0xb')],_0x3dd17d[_0x40030b][_0x50db23('0x1')]&&_0x3dd17d[_0x40030b]['Smtp'][_0x50db23('0x9')]&&delete _0x3dd17d[_0x40030b][_0x50db23('0x1')][_0x50db23('0x9')];}_0x30b746({'count':_0x3dd17d['length'],'rows':_0x3dd17d});});}},_0x48f64d=jayson['server'](_0x42cf5c)[_0x1acadf('0x8')]();_0x48f64d['on'](_0x1acadf('0xd'),function(_0x1c6ef7){const _0x4bc26b=_0x1acadf;return logger[_0x4bc26b('0xd')](JSON[_0x4bc26b('0xa')](_0x1c6ef7)),_0x9ded2d(_0x1c6ef7);}),_0x48f64d['listen'](0x232b,_0x1acadf('0xc'),function(){const _0x2350d8=_0x1acadf;return console[_0x2350d8('0x3')]('Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232b),_0x4c50ce(_0x2350d8('0xe')+0x232b);});});};
\ No newline at end of file
+const a1159_0x5e89=['sendMail','../../../config/logger','stringify','RPC\x20listening\x20on\x20port:','values','127.0.0.1','http','listen','pass','Smtp','jayson/promise','length','then','Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','log','catch','Imap','account','verifySmtp','password','server','email','error','Verified'];(function(_0x3b6b38,_0x5e8943){const _0x3e0550=function(_0x34b383){while(--_0x34b383){_0x3b6b38['push'](_0x3b6b38['shift']());}};_0x3e0550(++_0x5e8943);}(a1159_0x5e89,0x15b));const a1159_0x3e05=function(_0x3b6b38,_0x5e8943){_0x3b6b38=_0x3b6b38-0x0;let _0x3e0550=a1159_0x5e89[_0x3b6b38];return _0x3e0550;};const _0x5b20f8=a1159_0x3e05;'use strict';const jayson=require(_0x5b20f8('0x17')),_=require('lodash'),logger=require(_0x5b20f8('0xe'))(_0x5b20f8('0xa'));exports[_0x5b20f8('0x14')]=function(_0x34b383,_0x20a1e2){return new Promise(function(_0x38bc8b,_0x21ced2){const _0x51b3d6=a1159_0x3e05,_0x4bf56d={'SendMail':function(_0x44a21d){const _0x183f54=this;return new Promise(function(_0x16ccf1,_0x27bd40){const _0x130eb4=a1159_0x3e05;_0x20a1e2[_0x130eb4('0xd')](_0x44a21d['account'],_0x44a21d['message'])[_0x130eb4('0x1')](function(_0x1b8250){_0x16ccf1({'code':0xc8,'message':_0x1b8250});})[_0x130eb4('0x4')](function(_0x5cdd94){const _0x1945d2=_0x130eb4;_0x27bd40(_0x183f54[_0x1945d2('0xb')](0x1f4,_0x5cdd94));});});},'VerifySmtp':function(_0x2e59ba){const _0xf4396c=this;return new Promise(function(_0x3bb722,_0x3df89c){const _0x3c6eb7=a1159_0x3e05;_0x20a1e2[_0x3c6eb7('0x7')](_0x2e59ba[_0x3c6eb7('0x6')])[_0x3c6eb7('0x1')](function(){const _0x490c65=_0x3c6eb7;_0x3bb722({'code':0xc8,'message':_0x490c65('0xc')});})[_0x3c6eb7('0x4')](function(_0x575e7c){const _0x48824f=_0x3c6eb7;_0x3df89c(_0xf4396c[_0x48824f('0xb')](0x1f4,_0x575e7c));});});},'MailAccounts':function(){return new Promise(function(_0x40fbc6){const _0x4cef87=a1159_0x3e05,_0x5f46b3=_[_0x4cef87('0x11')](_0x34b383['mailAccounts']);for(let _0x57ea9b=0x0;_0x57ea9b<_0x5f46b3[_0x4cef87('0x0')];_0x57ea9b+=0x1){_0x5f46b3[_0x57ea9b][_0x4cef87('0x5')]&&_0x5f46b3[_0x57ea9b][_0x4cef87('0x5')][_0x4cef87('0x8')]&&delete _0x5f46b3[_0x57ea9b]['Imap'][_0x4cef87('0x8')],_0x5f46b3[_0x57ea9b][_0x4cef87('0x16')]&&_0x5f46b3[_0x57ea9b][_0x4cef87('0x16')]['pass']&&delete _0x5f46b3[_0x57ea9b][_0x4cef87('0x16')][_0x4cef87('0x15')];}_0x40fbc6({'count':_0x5f46b3['length'],'rows':_0x5f46b3});});}},_0x3d5a25=jayson[_0x51b3d6('0x9')](_0x4bf56d)[_0x51b3d6('0x13')]();_0x3d5a25['on']('error',function(_0x10a716){const _0x1a9e77=_0x51b3d6;return logger[_0x1a9e77('0xb')](JSON[_0x1a9e77('0xf')](_0x10a716)),_0x21ced2(_0x10a716);}),_0x3d5a25[_0x51b3d6('0x14')](0x232b,_0x51b3d6('0x12'),function(){const _0x2cc465=_0x51b3d6;return console[_0x2cc465('0x3')](_0x2cc465('0x2'),0x232b),_0x38bc8b(_0x2cc465('0x10')+0x232b);});});};
\ No newline at end of file