Built motion from commit 98555a2.|1.0.12
[motion.git] / server / config / smtp / index.js
1 var _0x8f84=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x75\x74\x69\x6C","\x6C\x6F\x64\x61\x73\x68","\x63\x68\x69\x6C\x64\x5F\x70\x72\x6F\x63\x65\x73\x73","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x65\x72\x72\x6F\x72","\x53\x4D\x54\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x28\x25\x73\x20\x2D\x20\x25\x73\x29\x20\x45\x52\x52\x4F\x52","\x66\x6F\x72\x6D\x61\x74","\x6F\x6E","\x63\x6C\x6F\x73\x65","\x53\x4D\x54\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x28\x25\x73\x20\x2D\x20\x25\x73\x29\x20\x45\x58\x49\x54\x45\x44\x20\x57\x49\x54\x48\x20\x43\x4F\x44\x45\x20\x25\x73","\x6C\x6F\x67","\x6D\x65\x73\x73\x61\x67\x65","\x74\x79\x70\x65","\x75\x70\x64\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x72\x6F\x6F\x6D\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x6D\x73\x67\x49\x64","\x73\x74\x61\x74\x65","\x63\x61\x74\x63\x68","\x73\x6F\x75\x72\x63\x65","\x2F\x73\x6D\x74\x70","\x66\x6F\x72\x6B","\x65\x78\x70\x6F\x72\x74\x73","\x65\x78\x69\x74","\x73\x6D\x74\x70","\x6B\x69\x6C\x6C","\x73\x6D\x70\x74","\x66\x72\x6F\x6D","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x72\x65\x74\x72\x79\x53\x65\x6E\x64","\x73\x65\x6E\x64","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x63\x68\x61\x6E\x67\x65\x64","\x53\x45\x4E\x44\x49\x4E\x47","\x72\x65\x74\x72\x79","\x68\x74\x6D\x6C","\x75\x74\x66\x38","\x74\x65\x78\x74","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x69\x64","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74\x49\x64","\x66\x69\x6E\x64","\x6D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74\x49\x64","\x61\x64\x64\x72\x65\x73\x73","\x53\x4D\x54\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x28\x25\x73\x20\x2D\x20\x25\x73\x29\x20\x55\x50\x44\x41\x54\x45\x44\x2C\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x49\x44\x3A\x20\x25\x73\x20","\x70\x69\x64","\x68\x6F\x73\x74","\x70\x61\x73\x73\x77\x6F\x72\x64","\x70\x6F\x72\x74","\x73\x73\x6C","\x53\x4D\x54\x50\x20\x53\x45\x52\x56\x45\x52\x20\x25\x73\x20\x28\x25\x73\x20\x2D\x20\x25\x73\x29\x20\x44\x45\x53\x54\x52\x4F\x59\x45\x44\x2C\x20\x50\x52\x4F\x43\x45\x53\x53\x20\x49\x44\x3A\x20\x25\x73\x20","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x66\x6F\x72\x45\x61\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C"];_0x8f84[0];const util=require(_0x8f84[1]);const _=require(_0x8f84[2]);const cp=require(_0x8f84[3]);const ms=require(_0x8f84[5])[_0x8f84[4]];const msg=require(_0x8f84[5])[_0x8f84[6]];const rm=require(_0x8f84[5])[_0x8f84[7]];const ma=require(_0x8f84[5])[_0x8f84[8]];function fork(_0x75f1x9,_0x75f1xa,_0x75f1xb){return cp[_0x8f84[28]](__dirname+ _0x8f84[27],[_0x75f1x9,_0x75f1xa])[_0x8f84[12]](_0x8f84[16],function(_0x75f1xe){if(_0x75f1xe[_0x8f84[17]]=== _0x8f84[18]){return msg[_0x8f84[22]](_0x75f1xe[_0x8f84[23]])[_0x8f84[20]](function(_0x75f1x10){return _0x75f1x10[_0x8f84[18]](_0x75f1xe)})[_0x8f84[20]](function(){return rm[_0x8f84[22]](_0x75f1xe[_0x8f84[21]])})[_0x8f84[20]](function(_0x75f1xf){return _0x75f1xf[_0x8f84[18]]({lastEvent:_0x75f1xe[_0x8f84[19]]})})};if(_0x75f1xe[_0x8f84[17]]=== _0x8f84[24]){return ms[_0x8f84[22]](_0x75f1x9)[_0x8f84[20]](function(_0x75f1x11){return _0x75f1x11[_0x8f84[18]]({state:_0x75f1xe[_0x8f84[24]],source:_0x75f1xe[_0x8f84[26]]|| null})})[_0x8f84[20]](function(){console[_0x8f84[15]](_0x75f1xe[_0x8f84[15]])})[_0x8f84[25]](function(_0x75f1xc){console[_0x8f84[9]](_0x75f1xc)})}})[_0x8f84[12]](_0x8f84[13],function(_0x75f1xd){console[_0x8f84[15]](util[_0x8f84[11]](_0x8f84[14],_0x75f1x9,_0x75f1xb,_0x75f1xa,_0x75f1xd))})[_0x8f84[12]](_0x8f84[9],function(_0x75f1xc){console[_0x8f84[9]](util[_0x8f84[11]](_0x8f84[10],_0x75f1x9,_0x75f1xb,_0x75f1xa));console[_0x8f84[9]](_0x75f1xc)})}module[_0x8f84[29]]= function(){var _0x75f1x12={};process[_0x8f84[12]](_0x8f84[30],function(_0x75f1xd){for(var _0x75f1x13 in _0x75f1x12){if(_0x75f1x12[_0x75f1x13][_0x8f84[31]]){_0x75f1x12[_0x75f1x13][_0x8f84[33]][_0x8f84[32]]()}}});msg[_0x8f84[38]](function(_0x75f1x10){if(_0x75f1x12[_0x75f1x10[_0x8f84[34]]]){_0x75f1x10[_0x8f84[35]][_0x8f84[17]]= _0x8f84[16];_0x75f1x10[_0x8f84[35]][_0x8f84[36]]= 0;_0x75f1x12[_0x75f1x10[_0x8f84[34]]][_0x8f84[31]][_0x8f84[37]](_0x75f1x10[_0x8f84[35]])}});msg[_0x8f84[45]](function(_0x75f1x10){if(_0x75f1x10[_0x8f84[39]](_0x8f84[19])&& _0x75f1x10[_0x8f84[19]]=== _0x8f84[40]){if(_0x75f1x12[_0x75f1x10[_0x8f84[34]]]){_0x75f1x10[_0x8f84[35]][_0x8f84[17]]= _0x8f84[16];_0x75f1x10[_0x8f84[35]][_0x8f84[36]]= _0x75f1x10[_0x8f84[35]][_0x8f84[41]]+ 1;_0x75f1x10[_0x8f84[35]][_0x8f84[42]]= _0x75f1x10[_0x8f84[35]][_0x8f84[42]]?_0x75f1x10[_0x8f84[35]][_0x8f84[42]].toString(_0x8f84[43]):null;_0x75f1x10[_0x8f84[35]][_0x8f84[44]]= _0x75f1x10[_0x8f84[35]][_0x8f84[44]]?_0x75f1x10[_0x8f84[35]][_0x8f84[44]].toString(_0x8f84[43]):null;_0x75f1x12[_0x75f1x10[_0x8f84[34]]][_0x8f84[31]][_0x8f84[37]](_0x75f1x10[_0x8f84[35]])}}});ms[_0x8f84[38]](function(_0x75f1x11){if(_0x75f1x11[_0x8f84[46]]&& _0x75f1x11[_0x8f84[47]]){var _0x75f1x14=_[_0x8f84[49]](_0x75f1x12,{mailAccountId:_0x75f1x11[_0x8f84[48]]});if(_0x75f1x14){_0x75f1x14[_0x8f84[50]]= _0x75f1x11[_0x8f84[46]];_0x75f1x14[_0x8f84[47]]= _0x75f1x11[_0x8f84[47]];_0x75f1x14[_0x8f84[31]]= fork(_0x75f1x11[_0x8f84[46]],_0x75f1x11[_0x8f84[47]],_0x75f1x14[_0x8f84[51]])}}});ma[_0x8f84[38]](function(_0x75f1x15){if(_0x75f1x15[_0x8f84[46]]&& _0x75f1x15[_0x8f84[51]]){_0x75f1x12[_0x75f1x15[_0x8f84[51]]]= {mailAccountId:_0x75f1x15[_0x8f84[46]],address:_0x75f1x15[_0x8f84[51]]}}});ma[_0x8f84[45]](function(_0x75f1x15){if(_0x75f1x15[_0x8f84[39]](_0x8f84[51])){var _0x75f1x14=_[_0x8f84[49]](_0x75f1x12,{mailAccountId:_0x75f1x15[_0x8f84[46]]});if(_0x75f1x14){var _0x75f1x16=_0x75f1x14[_0x8f84[50]];var _0x75f1xa=_0x75f1x14[_0x8f84[47]];var _0x75f1xb=_0x75f1x14[_0x8f84[51]];_0x75f1x14[_0x8f84[31]][_0x8f84[32]]();_0x75f1x14= null;delete _0x75f1x12[_0x75f1xb];_0x75f1x12[_0x75f1x15[_0x8f84[51]]]= {mailAccountId:_0x75f1x15[_0x8f84[46]],mailServerOutId:_0x75f1x16,address:_0x75f1x15[_0x8f84[51]],username:_0x75f1xa,smtp:fork(_0x75f1x16,_0x75f1xa,_0x75f1x15[_0x8f84[51]])};console[_0x8f84[15]](util[_0x8f84[11]](_0x8f84[52],_0x75f1x16,_0x75f1x15[_0x8f84[51]],_0x75f1xa,_0x75f1x12[_0x75f1x15[_0x8f84[51]]][_0x8f84[31]][_0x8f84[53]]))}}});ms[_0x8f84[45]](function(_0x75f1x11){var _0x75f1x14=_[_0x8f84[49]](_0x75f1x12,{mailAccountId:_0x75f1x11[_0x8f84[48]]});if(_0x75f1x14){if((!_0x75f1x11[_0x8f84[39]](_0x8f84[24])&&  !_0x75f1x11[_0x8f84[39]](_0x8f84[26])) || _0x75f1x11[_0x8f84[39]](_0x8f84[54]) || _0x75f1x11[_0x8f84[39]](_0x8f84[47]) || _0x75f1x11[_0x8f84[39]](_0x8f84[55]) || _0x75f1x11[_0x8f84[39]](_0x8f84[56]) || _0x75f1x11[_0x8f84[39]](_0x8f84[57])){_0x75f1x14[_0x8f84[31]][_0x8f84[32]]();_0x75f1x14[_0x8f84[31]]= null;_0x75f1x14[_0x8f84[47]]= _0x75f1x11[_0x8f84[47]];_0x75f1x14[_0x8f84[31]]= fork(_0x75f1x14[_0x8f84[50]],_0x75f1x11[_0x8f84[47]],_0x75f1x14[_0x8f84[51]]);console[_0x8f84[15]](util[_0x8f84[11]](_0x8f84[52],_0x75f1x11[_0x8f84[46]],_0x75f1x14[_0x8f84[51]],_0x75f1x14[_0x8f84[47]],_0x75f1x14[_0x8f84[31]][_0x8f84[53]]))}else {_0x75f1x14[_0x8f84[31]][_0x8f84[37]]({type:_0x8f84[24],state:_0x75f1x11[_0x8f84[24]],source:_0x75f1x11[_0x8f84[26]],username:_0x75f1x11[_0x8f84[47]]})}}});ms[_0x8f84[59]](function(_0x75f1x11){var _0x75f1x14=_[_0x8f84[49]](_0x75f1x12,{mailAccountId:_0x75f1x11[_0x8f84[48]]});if(_0x75f1x14){console[_0x8f84[15]](util[_0x8f84[11]](_0x8f84[58],_0x75f1x11[_0x8f84[46]],_0x75f1x14[_0x8f84[51]],_0x75f1x14[_0x8f84[47]],_0x75f1x14[_0x8f84[31]][_0x8f84[53]]));var _0x75f1xb=_0x75f1x14[_0x8f84[51]];_0x75f1x14[_0x8f84[31]][_0x8f84[32]]();_0x75f1x14= null;delete _0x75f1x12[_0x75f1xb]}});ma[_0x8f84[59]](function(_0x75f1x15){var _0x75f1x14=_[_0x8f84[49]](_0x75f1x12,{mailAccountId:_0x75f1x15[_0x8f84[46]]});if(_0x75f1x14){console[_0x8f84[15]](util[_0x8f84[11]](_0x8f84[58],_0x75f1x14[_0x8f84[50]],_0x75f1x14[_0x8f84[51]],_0x75f1x14[_0x8f84[47]],_0x75f1x14[_0x8f84[31]][_0x8f84[53]]));var _0x75f1xb=_0x75f1x14[_0x8f84[51]];_0x75f1x14[_0x8f84[31]][_0x8f84[32]]();_0x75f1x14= null;delete _0x75f1x12[_0x75f1xb]}});ma[_0x8f84[61]]({include:[ms]})[_0x8f84[20]](function(_0x75f1x17){_0x75f1x17[_0x8f84[60]](function(_0x75f1x15){if(_0x75f1x15[_0x8f84[4]]){_0x75f1x12[_0x75f1x15[_0x8f84[51]]]= {mailAccountId:_0x75f1x15[_0x8f84[46]],mailServerOutId:_0x75f1x15[_0x8f84[4]][_0x8f84[46]],address:_0x75f1x15[_0x8f84[51]],username:_0x75f1x15[_0x8f84[4]][_0x8f84[47]],smtp:fork(_0x75f1x15[_0x8f84[4]][_0x8f84[46]],_0x75f1x15[_0x8f84[4]][_0x8f84[47]],_0x75f1x15[_0x8f84[51]])}}})})[_0x8f84[25]](function(_0x75f1xc){console[_0x8f84[9]](_0x75f1xc)})}