Built motion from commit (unavailable).|2.5.3
[motion2.git] / server / services / email / server / index.js
index d90e51c..afd1f94 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2611=['then','catch','error','verifySmtp','Verified','mailAccounts','Imap','password','Smtp','pass','length','server','http','stringify','127.0.0.1','log','Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','jayson/promise','bluebird','../../../config/logger','email','listen','sendMail','account'];(function(_0x156489,_0x2bbaf2){var _0x4d2814=function(_0x405381){while(--_0x405381){_0x156489['push'](_0x156489['shift']());}};_0x4d2814(++_0x2bbaf2);}(_0x2611,0xa1));var _0x1261=function(_0x44102a,_0x675bef){_0x44102a=_0x44102a-0x0;var _0x3ccf34=_0x2611[_0x44102a];return _0x3ccf34;};'use strict';var jayson=require(_0x1261('0x0'));var BPromise=require(_0x1261('0x1'));var _=require('lodash');var logger=require(_0x1261('0x2'))(_0x1261('0x3'));exports[_0x1261('0x4')]=function(_0x44ac94,_0xf6cc6b){return new BPromise(function(_0x265709,_0x281f5f){var _0x3feffe={'SendMail':function(_0x3535e6){var _0x35cce3=this;return new Promise(function(_0x17a79f,_0x1ba68e){_0xf6cc6b[_0x1261('0x5')](_0x3535e6[_0x1261('0x6')],_0x3535e6['message'])[_0x1261('0x7')](function(_0x1203a9){_0x17a79f({'code':0xc8,'message':_0x1203a9});})[_0x1261('0x8')](function(_0x3cc86a){_0x1ba68e(_0x35cce3[_0x1261('0x9')](0x1f4,_0x3cc86a));});});},'VerifySmtp':function(_0x225a85){var _0x48bbfb=this;return new Promise(function(_0x19a53b,_0x476ca0){_0xf6cc6b[_0x1261('0xa')](_0x225a85[_0x1261('0x6')])[_0x1261('0x7')](function(_0x7e518b){_0x19a53b({'code':0xc8,'message':_0x1261('0xb')});})[_0x1261('0x8')](function(_0x2b7916){_0x476ca0(_0x48bbfb[_0x1261('0x9')](0x1f4,_0x2b7916));});});},'MailAccounts':function(_0x30b852){return new Promise(function(_0x1e0cac,_0x1b2ef2){var _0xb3387f=_['values'](_0x44ac94[_0x1261('0xc')]);for(var _0x4e607a=0x0;_0x4e607a<_0xb3387f['length'];_0x4e607a+=0x1){if(_0xb3387f[_0x4e607a][_0x1261('0xd')]&&_0xb3387f[_0x4e607a][_0x1261('0xd')]['password']){delete _0xb3387f[_0x4e607a][_0x1261('0xd')][_0x1261('0xe')];}if(_0xb3387f[_0x4e607a][_0x1261('0xf')]&&_0xb3387f[_0x4e607a][_0x1261('0xf')][_0x1261('0x10')]){delete _0xb3387f[_0x4e607a][_0x1261('0xf')]['pass'];}}_0x1e0cac({'count':_0xb3387f[_0x1261('0x11')],'rows':_0xb3387f});});}};var _0xe1dfc9=jayson[_0x1261('0x12')](_0x3feffe)[_0x1261('0x13')]();_0xe1dfc9['on']('error',function(_0x3e4621){logger[_0x1261('0x9')](JSON[_0x1261('0x14')](_0x3e4621));return _0x281f5f(_0x3e4621);});_0xe1dfc9[_0x1261('0x4')](0x232b,_0x1261('0x15'),function(){console[_0x1261('0x16')](_0x1261('0x17'),0x232b);return _0x265709('RPC\x20listening\x20on\x20port:'+0x232b);});});};
\ No newline at end of file
+var _0x8b06=['message','then','verifySmtp','Verified','catch','error','values','mailAccounts','length','Imap','password','Smtp','pass','server','log','RPC\x20listening\x20on\x20port:','jayson/promise','bluebird','lodash','../../../config/logger','listen','account'];(function(_0x12cfdb,_0x5bd754){var _0x211ad5=function(_0x467d6d){while(--_0x467d6d){_0x12cfdb['push'](_0x12cfdb['shift']());}};_0x211ad5(++_0x5bd754);}(_0x8b06,0x186));var _0x68b0=function(_0x2fec4b,_0x66294b){_0x2fec4b=_0x2fec4b-0x0;var _0xfd4abf=_0x8b06[_0x2fec4b];return _0xfd4abf;};'use strict';var jayson=require(_0x68b0('0x0'));var BPromise=require(_0x68b0('0x1'));var _=require(_0x68b0('0x2'));var logger=require(_0x68b0('0x3'))('email');exports[_0x68b0('0x4')]=function(_0x35528a,_0x114202){return new BPromise(function(_0x375fb7,_0x7e8e97){var _0x538b9e={'SendMail':function(_0x4c02e9){var _0x35cbcc=this;return new Promise(function(_0x2535c9,_0x4f9a4c){_0x114202['sendMail'](_0x4c02e9[_0x68b0('0x5')],_0x4c02e9[_0x68b0('0x6')])[_0x68b0('0x7')](function(_0x1dec3d){_0x2535c9({'code':0xc8,'message':_0x1dec3d});})['catch'](function(_0x12e749){_0x4f9a4c(_0x35cbcc['error'](0x1f4,_0x12e749));});});},'VerifySmtp':function(_0x133b0e){var _0x26cff1=this;return new Promise(function(_0xa0fb45,_0x563f93){_0x114202[_0x68b0('0x8')](_0x133b0e[_0x68b0('0x5')])[_0x68b0('0x7')](function(_0x976827){_0xa0fb45({'code':0xc8,'message':_0x68b0('0x9')});})[_0x68b0('0xa')](function(_0x5908dc){_0x563f93(_0x26cff1[_0x68b0('0xb')](0x1f4,_0x5908dc));});});},'MailAccounts':function(_0x92a0ff){return new Promise(function(_0xa2591e,_0x2c3479){var _0x2be158=_[_0x68b0('0xc')](_0x35528a[_0x68b0('0xd')]);for(var _0x28688b=0x0;_0x28688b<_0x2be158[_0x68b0('0xe')];_0x28688b+=0x1){if(_0x2be158[_0x28688b][_0x68b0('0xf')]&&_0x2be158[_0x28688b][_0x68b0('0xf')][_0x68b0('0x10')]){delete _0x2be158[_0x28688b][_0x68b0('0xf')][_0x68b0('0x10')];}if(_0x2be158[_0x28688b][_0x68b0('0x11')]&&_0x2be158[_0x28688b][_0x68b0('0x11')]['pass']){delete _0x2be158[_0x28688b][_0x68b0('0x11')][_0x68b0('0x12')];}}_0xa2591e({'count':_0x2be158[_0x68b0('0xe')],'rows':_0x2be158});});}};var _0x220161=jayson[_0x68b0('0x13')](_0x538b9e)['http']();_0x220161['on']('error',function(_0x284966){logger['error'](JSON['stringify'](_0x284966));return _0x7e8e97(_0x284966);});_0x220161['listen'](0x232b,'127.0.0.1',function(){console[_0x68b0('0x14')]('Email\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232b);return _0x375fb7(_0x68b0('0x15')+0x232b);});});};
\ No newline at end of file