Built motion from commit c8dd8619.|2.0.42
[motion2.git] / server / services / email / server / index.js
1 var _0xe598=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6A\x61\x79\x73\x6F\x6E\x2F\x70\x72\x6F\x6D\x69\x73\x65","\x62\x6C\x75\x65\x62\x69\x72\x64","\x6C\x6F\x64\x61\x73\x68","\x65\x6D\x61\x69\x6C","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x6C\x69\x73\x74\x65\x6E","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x68\x65\x6E","\x61\x63\x63\x6F\x75\x6E\x74","\x6D\x65\x73\x73\x61\x67\x65","\x73\x65\x6E\x64\x4D\x61\x69\x6C","\x56\x65\x72\x69\x66\x69\x65\x64","\x76\x65\x72\x69\x66\x79\x53\x6D\x74\x70","\x6D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x73","\x76\x61\x6C\x75\x65\x73","\x6C\x65\x6E\x67\x74\x68","\x49\x6D\x61\x70","\x70\x61\x73\x73\x77\x6F\x72\x64","\x53\x6D\x74\x70","\x70\x61\x73\x73","\x68\x74\x74\x70","\x73\x65\x72\x76\x65\x72","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x6F\x6E","\x52\x50\x43\x20\x6C\x69\x73\x74\x65\x6E\x69\x6E\x67\x20\x6F\x6E\x20\x70\x6F\x72\x74\x3A","\x69\x6E\x66\x6F"];_0xe598[0];var jayson=require(_0xe598[1]);var BPromise=require(_0xe598[2]);var _=require(_0xe598[3]);var logger=require(_0xe598[5])(_0xe598[4]);exports[_0xe598[6]]= function(_0x9453x5,_0x9453x6){return  new BPromise(function(_0x9453x7,_0x9453x8){var _0x9453x9={SendMail:function(_0x9453xa){var _0x9453xb=this;return  new Promise(function(_0x9453x7,_0x9453x8){_0x9453x6[_0xe598[12]](_0x9453xa[_0xe598[10]],_0x9453xa[_0xe598[11]])[_0xe598[9]](function(_0x9453xd){_0x9453x7({code:200,message:_0x9453xd})})[_0xe598[8]](function(_0x9453xc){_0x9453x8(_0x9453xb[_0xe598[7]](500,_0x9453xc))})})},VerifySmtp:function(_0x9453xa){var _0x9453xb=this;return  new Promise(function(_0x9453x7,_0x9453x8){_0x9453x6[_0xe598[14]](_0x9453xa[_0xe598[10]])[_0xe598[9]](function(_0x9453xe){_0x9453x7({code:200,message:_0xe598[13]})})[_0xe598[8]](function(_0x9453xc){_0x9453x8(_0x9453xb[_0xe598[7]](500,_0x9453xc))})})},MailAccounts:function(_0x9453xa){return  new Promise(function(_0x9453x7,_0x9453x8){var _0x9453xf=_[_0xe598[16]](_0x9453x5[_0xe598[15]]);for(var _0x9453x10=0;_0x9453x10< _0x9453xf[_0xe598[17]];_0x9453x10+= 1){if(_0x9453xf[_0x9453x10][_0xe598[18]]&& _0x9453xf[_0x9453x10][_0xe598[18]][_0xe598[19]]){delete _0x9453xf[_0x9453x10][_0xe598[18]][_0xe598[19]]};if(_0x9453xf[_0x9453x10][_0xe598[20]]&& _0x9453xf[_0x9453x10][_0xe598[20]][_0xe598[21]]){delete _0x9453xf[_0x9453x10][_0xe598[20]][_0xe598[21]]}};_0x9453x7({count:_0x9453xf[_0xe598[17]],rows:_0x9453xf})})}};var _0x9453x11=jayson[_0xe598[23]](_0x9453x9)[_0xe598[22]]();_0x9453x11[_0xe598[25]](_0xe598[7],function(_0x9453xc){logger[_0xe598[7]](JSON[_0xe598[24]](_0x9453xc));return _0x9453x8(_0x9453xc)});_0x9453x11[_0xe598[6]](9003,function(){logger[_0xe598[27]](_0xe598[26]+ 9003);return _0x9453x7(_0xe598[26]+ 9003)})})}