Built motion from commit ded33658aad58fc8de845a8299a9db59a88cc353. Version 3.0.0...
[motion-next.git] / server / services / email / server / index.js
index 4f6a10e..6c78f2e 100644 (file)
@@ -1 +1 @@
-const a1158_0x3343=['RPC\x20listening\x20on\x20port:','verifySmtp','values','error','jayson/promise','listen','mailAccounts','Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','catch','http','message','pass','log','Smtp','127.0.0.1','../../../config/logger','password','sendMail','account','length','email','Imap'];(function(_0x6fa00f,_0x33433d){const _0x1b8781=function(_0x2e3e39){while(--_0x2e3e39){_0x6fa00f['push'](_0x6fa00f['shift']());}};_0x1b8781(++_0x33433d);}(a1158_0x3343,0xaa));const a1158_0x1b87=function(_0x6fa00f,_0x33433d){_0x6fa00f=_0x6fa00f-0x0;let _0x1b8781=a1158_0x3343[_0x6fa00f];return _0x1b8781;};const _0x3daaaa=a1158_0x1b87;'use strict';const jayson=require(_0x3daaaa('0xa')),_=require('lodash'),logger=require(_0x3daaaa('0x15'))(_0x3daaaa('0x4'));exports[_0x3daaaa('0xb')]=function(_0x2e3e39,_0x3c787c){return new Promise(function(_0x1507a6,_0x3f6321){const _0x3b427a=a1158_0x1b87,_0x2c712b={'SendMail':function(_0x21aab3){const _0x4d6d89=this;return new Promise(function(_0x275cc6,_0x3f3ca8){const _0x29b308=a1158_0x1b87;_0x3c787c[_0x29b308('0x1')](_0x21aab3[_0x29b308('0x2')],_0x21aab3[_0x29b308('0x10')])['then'](function(_0x18720c){_0x275cc6({'code':0xc8,'message':_0x18720c});})[_0x29b308('0xe')](function(_0x2e14c4){const _0x1a0eac=_0x29b308;_0x3f3ca8(_0x4d6d89[_0x1a0eac('0x9')](0x1f4,_0x2e14c4));});});},'VerifySmtp':function(_0x2f3b8a){const _0x36437f=this;return new Promise(function(_0x470023,_0x2eec30){const _0x52a102=a1158_0x1b87;_0x3c787c[_0x52a102('0x7')](_0x2f3b8a['account'])['then'](function(){_0x470023({'code':0xc8,'message':'Verified'});})[_0x52a102('0xe')](function(_0x2d0110){const _0x1fc811=_0x52a102;_0x2eec30(_0x36437f[_0x1fc811('0x9')](0x1f4,_0x2d0110));});});},'MailAccounts':function(){return new Promise(function(_0x59ebbf){const _0x1c1701=a1158_0x1b87,_0x446753=_[_0x1c1701('0x8')](_0x2e3e39[_0x1c1701('0xc')]);for(let _0x33dde7=0x0;_0x33dde7<_0x446753[_0x1c1701('0x3')];_0x33dde7+=0x1){_0x446753[_0x33dde7]['Imap']&&_0x446753[_0x33dde7]['Imap'][_0x1c1701('0x0')]&&delete _0x446753[_0x33dde7][_0x1c1701('0x5')]['password'],_0x446753[_0x33dde7][_0x1c1701('0x13')]&&_0x446753[_0x33dde7][_0x1c1701('0x13')][_0x1c1701('0x11')]&&delete _0x446753[_0x33dde7][_0x1c1701('0x13')]['pass'];}_0x59ebbf({'count':_0x446753['length'],'rows':_0x446753});});}},_0x58f024=jayson['server'](_0x2c712b)[_0x3b427a('0xf')]();_0x58f024['on'](_0x3b427a('0x9'),function(_0x48b64b){return logger['error'](JSON['stringify'](_0x48b64b)),_0x3f6321(_0x48b64b);}),_0x58f024[_0x3b427a('0xb')](0x232b,_0x3b427a('0x14'),function(){const _0x41ba12=_0x3b427a;return console[_0x41ba12('0x12')](_0x41ba12('0xd'),0x232b),_0x1507a6(_0x41ba12('0x6')+0x232b);});});};
\ No newline at end of file
+const a1158_0x5bba=['catch','pass','then','verifySmtp','error','Smtp','listen','../../../config/logger','password','lodash','stringify','http','Verified','length','message','account','127.0.0.1','sendMail','RPC\x20listening\x20on\x20port:','log','jayson/promise','email'];(function(_0x5356a3,_0x5bba23){const _0x228517=function(_0x56fb49){while(--_0x56fb49){_0x5356a3['push'](_0x5356a3['shift']());}};_0x228517(++_0x5bba23);}(a1158_0x5bba,0x1d2));const a1158_0x2285=function(_0x5356a3,_0x5bba23){_0x5356a3=_0x5356a3-0x0;let _0x228517=a1158_0x5bba[_0x5356a3];return _0x228517;};const _0x4d7fe4=a1158_0x2285;'use strict';const jayson=require(_0x4d7fe4('0x10')),_=require(_0x4d7fe4('0x5')),logger=require(_0x4d7fe4('0x3'))(_0x4d7fe4('0x11'));exports[_0x4d7fe4('0x2')]=function(_0x56fb49,_0x360928){return new Promise(function(_0x331330,_0xe2e280){const _0x16e0bd=a1158_0x2285,_0x30f05={'SendMail':function(_0x1ef5b2){const _0x1b52d3=this;return new Promise(function(_0x352fe3,_0x290256){const _0x3024a2=a1158_0x2285;_0x360928[_0x3024a2('0xd')](_0x1ef5b2[_0x3024a2('0xb')],_0x1ef5b2[_0x3024a2('0xa')])[_0x3024a2('0x14')](function(_0x224683){_0x352fe3({'code':0xc8,'message':_0x224683});})[_0x3024a2('0x12')](function(_0x2e2837){const _0x56bf52=_0x3024a2;_0x290256(_0x1b52d3[_0x56bf52('0x0')](0x1f4,_0x2e2837));});});},'VerifySmtp':function(_0x50e7f2){const _0x57ab95=this;return new Promise(function(_0x3c1693,_0x20023b){const _0x1afbe4=a1158_0x2285;_0x360928[_0x1afbe4('0x15')](_0x50e7f2[_0x1afbe4('0xb')])[_0x1afbe4('0x14')](function(){const _0x176ac6=_0x1afbe4;_0x3c1693({'code':0xc8,'message':_0x176ac6('0x8')});})[_0x1afbe4('0x12')](function(_0x38496e){_0x20023b(_0x57ab95['error'](0x1f4,_0x38496e));});});},'MailAccounts':function(){return new Promise(function(_0x8b348){const _0x246c08=a1158_0x2285,_0x41dd78=_['values'](_0x56fb49['mailAccounts']);for(let _0x4dfb21=0x0;_0x4dfb21<_0x41dd78[_0x246c08('0x9')];_0x4dfb21+=0x1){_0x41dd78[_0x4dfb21]['Imap']&&_0x41dd78[_0x4dfb21]['Imap'][_0x246c08('0x4')]&&delete _0x41dd78[_0x4dfb21]['Imap']['password'],_0x41dd78[_0x4dfb21]['Smtp']&&_0x41dd78[_0x4dfb21][_0x246c08('0x1')]['pass']&&delete _0x41dd78[_0x4dfb21][_0x246c08('0x1')][_0x246c08('0x13')];}_0x8b348({'count':_0x41dd78[_0x246c08('0x9')],'rows':_0x41dd78});});}},_0x205c07=jayson['server'](_0x30f05)[_0x16e0bd('0x7')]();_0x205c07['on'](_0x16e0bd('0x0'),function(_0x37d89c){const _0x16b125=_0x16e0bd;return logger[_0x16b125('0x0')](JSON[_0x16b125('0x6')](_0x37d89c)),_0xe2e280(_0x37d89c);}),_0x205c07['listen'](0x232b,_0x16e0bd('0xc'),function(){const _0x3e8015=_0x16e0bd;return console[_0x3e8015('0xf')]('Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232b),_0x331330(_0x3e8015('0xe')+0x232b);});});};
\ No newline at end of file