Built motion from commit ab065936.|2.0.51
[motion2.git] / server / services / email / server / index.js
1 var _0x4e75=["\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"];_0x4e75[0];var jayson=require(_0x4e75[1]);var BPromise=require(_0x4e75[2]);var _=require(_0x4e75[3]);var logger=require(_0x4e75[5])(_0x4e75[4]);exports[_0x4e75[6]]= function(_0x77a3x5,_0x77a3x6){return  new BPromise(function(_0x77a3x7,_0x77a3x8){var _0x77a3x9={SendMail:function(_0x77a3xa){var _0x77a3xb=this;return  new Promise(function(_0x77a3x7,_0x77a3x8){_0x77a3x6[_0x4e75[12]](_0x77a3xa[_0x4e75[10]],_0x77a3xa[_0x4e75[11]])[_0x4e75[9]](function(_0x77a3xd){_0x77a3x7({code:200,message:_0x77a3xd})})[_0x4e75[8]](function(_0x77a3xc){_0x77a3x8(_0x77a3xb[_0x4e75[7]](500,_0x77a3xc))})})},VerifySmtp:function(_0x77a3xa){var _0x77a3xb=this;return  new Promise(function(_0x77a3x7,_0x77a3x8){_0x77a3x6[_0x4e75[14]](_0x77a3xa[_0x4e75[10]])[_0x4e75[9]](function(_0x77a3xe){_0x77a3x7({code:200,message:_0x4e75[13]})})[_0x4e75[8]](function(_0x77a3xc){_0x77a3x8(_0x77a3xb[_0x4e75[7]](500,_0x77a3xc))})})},MailAccounts:function(_0x77a3xa){return  new Promise(function(_0x77a3x7,_0x77a3x8){var _0x77a3xf=_[_0x4e75[16]](_0x77a3x5[_0x4e75[15]]);for(var _0x77a3x10=0;_0x77a3x10< _0x77a3xf[_0x4e75[17]];_0x77a3x10+= 1){if(_0x77a3xf[_0x77a3x10][_0x4e75[18]]&& _0x77a3xf[_0x77a3x10][_0x4e75[18]][_0x4e75[19]]){delete _0x77a3xf[_0x77a3x10][_0x4e75[18]][_0x4e75[19]]};if(_0x77a3xf[_0x77a3x10][_0x4e75[20]]&& _0x77a3xf[_0x77a3x10][_0x4e75[20]][_0x4e75[21]]){delete _0x77a3xf[_0x77a3x10][_0x4e75[20]][_0x4e75[21]]}};_0x77a3x7({count:_0x77a3xf[_0x4e75[17]],rows:_0x77a3xf})})}};var _0x77a3x11=jayson[_0x4e75[23]](_0x77a3x9)[_0x4e75[22]]();_0x77a3x11[_0x4e75[25]](_0x4e75[7],function(_0x77a3xc){logger[_0x4e75[7]](JSON[_0x4e75[24]](_0x77a3xc));return _0x77a3x8(_0x77a3xc)});_0x77a3x11[_0x4e75[6]](9003,function(){logger[_0x4e75[27]](_0x4e75[26]+ 9003);return _0x77a3x7(_0x4e75[26]+ 9003)})})}