Built motion from commit d13e3c905.|1.0.24
[motion.git] / server / config / triggers / mail.js
index 49715d5..7f0debb 100644 (file)
@@ -1 +1 @@
-var _0x2f00=["\x6C\x6F\x64\x61\x73\x68","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x6D\x75\x73\x74\x61\x63\x68\x65","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x54\x72\x69\x67\x67\x65\x72\x20\x4D\x61\x69\x6C\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x69\x6E\x66\x6F","\x74\x61\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x74\x61\x67\x20\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x3B","\x73\x70\x6C\x69\x74","\x64\x61\x74\x61\x31","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x49\x64","\x75\x70\x64\x61\x74\x65","\x65\x6D\x61\x69\x6C","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x73\x65\x6E\x64\x20\x6D\x61\x69\x6C\x20\x65\x72\x72\x6F\x72","\x64\x61\x74\x61\x33","\x73\x75\x62\x6A\x65\x63\x74","\x62\x6F\x64\x79","\x64\x61\x74\x61\x34","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x72\x65\x6E\x64\x65\x72","\x3C\x62\x72\x3E","\x72\x65\x70\x6C\x61\x63\x65","\x26\x23\x30\x33\x39\x3B","\x26\x71\x75\x6F\x74\x3B","\x26\x67\x74\x3B","\x26\x6C\x74\x3B","\x26\x61\x6D\x70\x3B","\x61\x64\x64\x72\x65\x73\x73","\x64\x61\x74\x61\x32","\x53\x45\x4E\x44\x49\x4E\x47","\x69\x64","\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x73\x65\x6E\x64","\x74\x68\x65\x6E","\x64\x61\x74\x61\x35","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x63\x63\x6F\x75\x6E\x74\x49\x64","\x61\x63\x63\x6F\x75\x6E\x74\x45\x6D\x61\x69\x6C","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x73\x65\x6E\x64\x20\x6D\x61\x69\x6C\x20\x62\x79\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x65\x72\x72\x6F\x72","\x64\x61\x74\x61\x36","\x66\x6F\x72\x77\x61\x72\x64","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x66\x6F\x72\x77\x61\x72\x64\x20\x65\x72\x72\x6F\x72","\x66\x72\x6F\x6D\x49\x64","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x73\x65\x6E\x64\x20\x65\x6D\x61\x69\x6C\x20\x77\x69\x74\x68\x20\x74\x65\x6D\x70\x6C\x61\x74\x65\x20\x65\x72\x72\x6F\x72","\x61\x63\x63\x6F\x75\x6E\x74\x54\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x73\x65\x6E\x64\x20\x65\x6D\x61\x69\x6C\x20\x77\x69\x74\x68\x20\x74\x65\x6D\x70\x6C\x61\x74\x65\x20\x62\x79\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x65\x72\x72\x6F\x72","\x63\x6C\x6F\x73\x65","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x63\x6C\x6F\x73\x65\x20\x65\x72\x72\x6F\x72","\x43\x4C\x4F\x53\x45\x44","\x65\x78\x70\x6F\x72\x74\x73"];const _=require(_0x2f00[0]);const rp=require(_0x2f00[1]);const Mustache=require(_0x2f00[2]);var logger=require(_0x2f00[4])(_0x2f00[3]);const MailRoom=require(_0x2f00[6])[_0x2f00[5]];const Template=require(_0x2f00[6])[_0x2f00[7]];const MailMessage=require(_0x2f00[6])[_0x2f00[8]];const MailAccount=require(_0x2f00[6])[_0x2f00[9]];const MailServerOut=require(_0x2f00[6])[_0x2f00[10]];function Mail(){logger[_0x2f00[12]](_0x2f00[11])}Mail[_0x2f00[14]][_0x2f00[13]]= function(_0x1689xb,_0x1689xc,_0x1689xd,_0x1689xe){return MailRoom[_0x2f00[23]]({tags:_0x1689xb[_0x2f00[21]][_0x2f00[20]](_0x2f00[19])},{where:{id:_0x1689xc[_0x2f00[22]]}})[_0x2f00[18]](function(_0x1689xf){logger[_0x2f00[17]](_0x2f00[15],_0x1689xf[_0x2f00[16]])})};Mail[_0x2f00[14]][_0x2f00[24]]= function(_0x1689xb,_0x1689xc){var _0x1689x10;return MailAccount[_0x2f00[49]](_0x1689xc[_0x2f00[50]])[_0x2f00[47]](function(_0x1689x14){_0x1689x10= _0x1689x14;if(_0x1689xb[_0x2f00[48]]){return Template[_0x2f00[49]](_0x1689xb[_0x2f00[48]])}})[_0x2f00[47]](function(_0x1689x11){var _0x1689x12;if(_0x1689x11){_0x1689xb[_0x2f00[26]]= _0x1689x11[_0x2f00[27]];_0x1689xc[_0x2f00[28]]= _0x1689xb[_0x2f00[29]]|| _0x1689xc[_0x2f00[30]]|| _0x1689xc[_0x2f00[31]]|| _0x1689xc[_0x2f00[28]];_0x1689x12= _0x1689x11[_0x2f00[30]]?Mustache[_0x2f00[32]](_0x1689x11[_0x2f00[30]],_0x1689xc):null}else {_0x1689x12= _0x1689xb[_0x2f00[29]]?Mustache[_0x2f00[32]](_0x1689xb[_0x2f00[29]],_0x1689xc)[_0x2f00[34]](/&/g,_0x2f00[39])[_0x2f00[34]](/</g,_0x2f00[38])[_0x2f00[34]](/>/g,_0x2f00[37])[_0x2f00[34]](/"/g,_0x2f00[36])[_0x2f00[34]](/'/g,_0x2f00[35])[_0x2f00[34]](/\n/g,_0x2f00[33]):null};var _0x1689x13={subject:_0x1689xb[_0x2f00[26]]|| null,from:[_0x1689x10[_0x2f00[40]]],to:_0x1689xb[_0x2f00[21]][_0x2f00[20]](_0x2f00[19]),cc:_0x1689xb[_0x2f00[41]]?_0x1689xb[_0x2f00[41]][_0x2f00[20]](_0x2f00[19]):[],html:_0x1689x12,status:_0x2f00[42],auto:true,accountId:_0x1689x10[_0x2f00[43]],accountName:_0x1689x10[_0x2f00[44]]};process[_0x2f00[46]]({message:_0x2f00[45],doc:_0x1689x13})})[_0x2f00[18]](function(_0x1689xf){logger[_0x2f00[17]](_0x2f00[25],_0x1689xf[_0x2f00[16]])})};Mail[_0x2f00[14]][_0x2f00[51]]= function(_0x1689xb,_0x1689xc){var _0x1689x10;return MailAccount[_0x2f00[49]](_0x1689xb[_0x2f00[21]])[_0x2f00[47]](function(_0x1689x14){_0x1689x10= _0x1689x14;if(_0x1689xb[_0x2f00[53]]){return Template[_0x2f00[49]](_0x1689xb[_0x2f00[53]])}})[_0x2f00[47]](function(_0x1689x11){var _0x1689x12;if(_0x1689x11){_0x1689xb[_0x2f00[29]]= _0x1689x11[_0x2f00[27]];_0x1689xc[_0x2f00[28]]= _0x1689xb[_0x2f00[48]]|| _0x1689xc[_0x2f00[30]]|| _0x1689xc[_0x2f00[31]]|| _0x1689xc[_0x2f00[28]];_0x1689x12= _0x1689x11[_0x2f00[30]]?Mustache[_0x2f00[32]](_0x1689x11[_0x2f00[30]],_0x1689xc):null}else {_0x1689x12= _0x1689xb[_0x2f00[48]]?Mustache[_0x2f00[32]](_0x1689xb[_0x2f00[48]],_0x1689xc)[_0x2f00[34]](/&/g,_0x2f00[39])[_0x2f00[34]](/</g,_0x2f00[38])[_0x2f00[34]](/>/g,_0x2f00[37])[_0x2f00[34]](/"/g,_0x2f00[36])[_0x2f00[34]](/'/g,_0x2f00[35])[_0x2f00[34]](/\n/g,_0x2f00[33]):null};var _0x1689x13={subject:_0x1689xb[_0x2f00[29]]|| null,from:[_0x1689x10[_0x2f00[40]]],to:_0x1689xb[_0x2f00[41]][_0x2f00[20]](_0x2f00[19]),cc:_0x1689xb[_0x2f00[26]]?_0x1689xb[_0x2f00[26]][_0x2f00[20]](_0x2f00[19]):[],html:_0x1689x12,status:_0x2f00[42],auto:true,accountId:_0x1689x10[_0x2f00[43]],accountName:_0x1689x10[_0x2f00[44]]};process[_0x2f00[46]]({message:_0x2f00[45],doc:_0x1689x13})})[_0x2f00[18]](function(_0x1689xf){logger[_0x2f00[17]](_0x2f00[52],_0x1689xf[_0x2f00[16]])})};Mail[_0x2f00[14]][_0x2f00[54]]= function(_0x1689xb,_0x1689xc){return MailAccount[_0x2f00[49]](_0x1689xc[_0x2f00[50]])[_0x2f00[47]](function(_0x1689x14){var _0x1689x13={subject:_0x1689xc[_0x2f00[27]]|| null,from:[_0x1689x14[_0x2f00[40]]],fromId:_0x1689xc[_0x2f00[56]],to:_0x1689xb[_0x2f00[21]][_0x2f00[20]](_0x2f00[19]),text:_0x1689xc[_0x2f00[31]][_0x2f00[34]](/&/g,_0x2f00[39])[_0x2f00[34]](/</g,_0x2f00[38])[_0x2f00[34]](/>/g,_0x2f00[37])[_0x2f00[34]](/"/g,_0x2f00[36])[_0x2f00[34]](/'/g,_0x2f00[35])[_0x2f00[34]](/\n/g,_0x2f00[33]),html:_0x1689xc[_0x2f00[30]]|| _0x1689xc[_0x2f00[31]],status:_0x2f00[42],auto:true,accountId:_0x1689x14[_0x2f00[43]],accountName:_0x1689x14[_0x2f00[44]]};process[_0x2f00[46]]({message:_0x2f00[45],doc:_0x1689x13})})[_0x2f00[18]](function(_0x1689xf){logger[_0x2f00[17]](_0x2f00[55],_0x1689xf[_0x2f00[16]])})};Mail[_0x2f00[14]][_0x2f00[57]]= function(_0x1689xb,_0x1689xc){var _0x1689x10;return MailAccount[_0x2f00[49]](_0x1689xc[_0x2f00[50]])[_0x2f00[47]](function(_0x1689x14){_0x1689x10= _0x1689x14;return Template[_0x2f00[49]](_0x1689xb[_0x2f00[21]])})[_0x2f00[47]](function(_0x1689x11){_0x1689xc[_0x2f00[28]]= _0x1689xc[_0x2f00[30]]|| _0x1689xc[_0x2f00[31]]|| _0x1689xc[_0x2f00[28]];var _0x1689x13={status:_0x2f00[42],subject:_0x1689x11[_0x2f00[27]],from:[_0x1689x10[_0x2f00[40]]],to:_0x1689xb[_0x2f00[41]][_0x2f00[20]](_0x2f00[19]),html:_0x1689x11[_0x2f00[30]]?Mustache[_0x2f00[32]](_0x1689x11[_0x2f00[30]],_0x1689xc):null,auto:true,accountId:_0x1689x10[_0x2f00[43]],accountName:_0x1689x10[_0x2f00[44]]};process[_0x2f00[46]]({message:_0x2f00[45],doc:_0x1689x13})})[_0x2f00[18]](function(_0x1689xf){logger[_0x2f00[17]](_0x2f00[58],_0x1689xf[_0x2f00[16]])})};Mail[_0x2f00[14]][_0x2f00[59]]= function(_0x1689xb,_0x1689xc){var _0x1689x10;return MailAccount[_0x2f00[49]](_0x1689xb[_0x2f00[21]])[_0x2f00[47]](function(_0x1689x14){_0x1689x10= _0x1689x14;return Template[_0x2f00[49]](_0x1689xb[_0x2f00[41]])})[_0x2f00[47]](function(_0x1689x11){_0x1689xc[_0x2f00[28]]= _0x1689xc[_0x2f00[30]]|| _0x1689xc[_0x2f00[31]]|| _0x1689xc[_0x2f00[28]];var _0x1689x13={status:_0x2f00[42],subject:_0x1689x11[_0x2f00[27]],from:[_0x1689x10[_0x2f00[40]]],to:_0x1689xb[_0x2f00[26]][_0x2f00[20]](_0x2f00[19]),html:_0x1689x11[_0x2f00[30]]?Mustache[_0x2f00[32]](_0x1689x11[_0x2f00[30]],_0x1689xc):null,auto:true,accountId:_0x1689x10[_0x2f00[43]],accountName:_0x1689x10[_0x2f00[44]]};process[_0x2f00[46]]({message:_0x2f00[45],doc:_0x1689x13})})[_0x2f00[18]](function(_0x1689xf){logger[_0x2f00[17]](_0x2f00[60],_0x1689xf[_0x2f00[16]])})};Mail[_0x2f00[14]][_0x2f00[61]]= function(_0x1689xb,_0x1689xc){return MailRoom[_0x2f00[23]]({status:_0x2f00[63],disposition:_0x1689xb[_0x2f00[21]]|| null},{individualHooks:true,where:{id:_0x1689xc[_0x2f00[22]]}})[_0x2f00[18]](function(_0x1689xf){logger[_0x2f00[17]](_0x2f00[62],_0x1689xf[_0x2f00[16]])})};module[_0x2f00[64]]= Mail
\ No newline at end of file
+var _0xe75b=["\x6C\x6F\x64\x61\x73\x68","\x72\x65\x71\x75\x65\x73\x74\x2D\x70\x72\x6F\x6D\x69\x73\x65","\x6D\x75\x73\x74\x61\x63\x68\x65","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x54\x72\x69\x67\x67\x65\x72\x20\x4D\x61\x69\x6C\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x69\x6E\x66\x6F","\x74\x61\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x74\x61\x67\x20\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x3B","\x73\x70\x6C\x69\x74","\x64\x61\x74\x61\x31","\x4D\x61\x69\x6C\x52\x6F\x6F\x6D\x49\x64","\x75\x70\x64\x61\x74\x65","\x65\x6D\x61\x69\x6C","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x73\x65\x6E\x64\x20\x6D\x61\x69\x6C\x20\x65\x72\x72\x6F\x72","\x64\x61\x74\x61\x33","\x73\x75\x62\x6A\x65\x63\x74","\x62\x6F\x64\x79","\x64\x61\x74\x61\x34","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x72\x65\x6E\x64\x65\x72","\x3C\x62\x72\x3E","\x72\x65\x70\x6C\x61\x63\x65","\x26\x23\x30\x33\x39\x3B","\x26\x71\x75\x6F\x74\x3B","\x26\x67\x74\x3B","\x26\x6C\x74\x3B","\x26\x61\x6D\x70\x3B","\x61\x64\x64\x72\x65\x73\x73","\x64\x61\x74\x61\x32","\x53\x45\x4E\x44\x49\x4E\x47","\x69\x64","\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x73\x65\x6E\x64","\x74\x68\x65\x6E","\x64\x61\x74\x61\x35","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x63\x63\x6F\x75\x6E\x74\x49\x64","\x61\x63\x63\x6F\x75\x6E\x74\x45\x6D\x61\x69\x6C","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x73\x65\x6E\x64\x20\x6D\x61\x69\x6C\x20\x62\x79\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x65\x72\x72\x6F\x72","\x64\x61\x74\x61\x36","\x66\x6F\x72\x77\x61\x72\x64","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x66\x6F\x72\x77\x61\x72\x64\x20\x65\x72\x72\x6F\x72","\x66\x72\x6F\x6D\x49\x64","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x73\x65\x6E\x64\x20\x65\x6D\x61\x69\x6C\x20\x77\x69\x74\x68\x20\x74\x65\x6D\x70\x6C\x61\x74\x65\x20\x65\x72\x72\x6F\x72","\x61\x63\x63\x6F\x75\x6E\x74\x54\x65\x6D\x70\x6C\x61\x74\x65","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x73\x65\x6E\x64\x20\x65\x6D\x61\x69\x6C\x20\x77\x69\x74\x68\x20\x74\x65\x6D\x70\x6C\x61\x74\x65\x20\x62\x79\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x65\x72\x72\x6F\x72","\x63\x6C\x6F\x73\x65","\x4D\x61\x69\x6C\x20\x74\x72\x69\x67\x67\x65\x72\x20\x63\x6C\x6F\x73\x65\x20\x65\x72\x72\x6F\x72","\x43\x4C\x4F\x53\x45\x44","\x65\x78\x70\x6F\x72\x74\x73"];const _=require(_0xe75b[0]);const rp=require(_0xe75b[1]);const Mustache=require(_0xe75b[2]);var logger=require(_0xe75b[4])(_0xe75b[3]);const MailRoom=require(_0xe75b[6])[_0xe75b[5]];const Template=require(_0xe75b[6])[_0xe75b[7]];const MailMessage=require(_0xe75b[6])[_0xe75b[8]];const MailAccount=require(_0xe75b[6])[_0xe75b[9]];const MailServerOut=require(_0xe75b[6])[_0xe75b[10]];function Mail(){logger[_0xe75b[12]](_0xe75b[11])}Mail[_0xe75b[14]][_0xe75b[13]]= function(_0x90fcxb,_0x90fcxc,_0x90fcxd,_0x90fcxe){return MailRoom[_0xe75b[23]]({tags:_0x90fcxb[_0xe75b[21]][_0xe75b[20]](_0xe75b[19])},{where:{id:_0x90fcxc[_0xe75b[22]]}})[_0xe75b[18]](function(_0x90fcxf){logger[_0xe75b[17]](_0xe75b[15],_0x90fcxf[_0xe75b[16]])})};Mail[_0xe75b[14]][_0xe75b[24]]= function(_0x90fcxb,_0x90fcxc){var _0x90fcx10;return MailAccount[_0xe75b[49]](_0x90fcxc[_0xe75b[50]])[_0xe75b[47]](function(_0x90fcx14){_0x90fcx10= _0x90fcx14;if(_0x90fcxb[_0xe75b[48]]){return Template[_0xe75b[49]](_0x90fcxb[_0xe75b[48]])}})[_0xe75b[47]](function(_0x90fcx11){var _0x90fcx12;if(_0x90fcx11){_0x90fcxb[_0xe75b[26]]= _0x90fcx11[_0xe75b[27]];_0x90fcxc[_0xe75b[28]]= _0x90fcxb[_0xe75b[29]]|| _0x90fcxc[_0xe75b[30]]|| _0x90fcxc[_0xe75b[31]]|| _0x90fcxc[_0xe75b[28]];_0x90fcx12= _0x90fcx11[_0xe75b[30]]?Mustache[_0xe75b[32]](_0x90fcx11[_0xe75b[30]],_0x90fcxc):null}else {_0x90fcx12= _0x90fcxb[_0xe75b[29]]?Mustache[_0xe75b[32]](_0x90fcxb[_0xe75b[29]],_0x90fcxc)[_0xe75b[34]](/&/g,_0xe75b[39])[_0xe75b[34]](/</g,_0xe75b[38])[_0xe75b[34]](/>/g,_0xe75b[37])[_0xe75b[34]](/"/g,_0xe75b[36])[_0xe75b[34]](/'/g,_0xe75b[35])[_0xe75b[34]](/\n/g,_0xe75b[33]):null};var _0x90fcx13={subject:_0x90fcxb[_0xe75b[26]]|| null,from:[_0x90fcx10[_0xe75b[40]]],to:_0x90fcxb[_0xe75b[21]][_0xe75b[20]](_0xe75b[19]),cc:_0x90fcxb[_0xe75b[41]]?_0x90fcxb[_0xe75b[41]][_0xe75b[20]](_0xe75b[19]):[],html:_0x90fcx12,status:_0xe75b[42],auto:true,accountId:_0x90fcx10[_0xe75b[43]],accountName:_0x90fcx10[_0xe75b[44]]};process[_0xe75b[46]]({message:_0xe75b[45],doc:_0x90fcx13})})[_0xe75b[18]](function(_0x90fcxf){logger[_0xe75b[17]](_0xe75b[25],_0x90fcxf[_0xe75b[16]])})};Mail[_0xe75b[14]][_0xe75b[51]]= function(_0x90fcxb,_0x90fcxc){var _0x90fcx10;return MailAccount[_0xe75b[49]](_0x90fcxb[_0xe75b[21]])[_0xe75b[47]](function(_0x90fcx14){_0x90fcx10= _0x90fcx14;if(_0x90fcxb[_0xe75b[53]]){return Template[_0xe75b[49]](_0x90fcxb[_0xe75b[53]])}})[_0xe75b[47]](function(_0x90fcx11){var _0x90fcx12;if(_0x90fcx11){_0x90fcxb[_0xe75b[29]]= _0x90fcx11[_0xe75b[27]];_0x90fcxc[_0xe75b[28]]= _0x90fcxb[_0xe75b[48]]|| _0x90fcxc[_0xe75b[30]]|| _0x90fcxc[_0xe75b[31]]|| _0x90fcxc[_0xe75b[28]];_0x90fcx12= _0x90fcx11[_0xe75b[30]]?Mustache[_0xe75b[32]](_0x90fcx11[_0xe75b[30]],_0x90fcxc):null}else {_0x90fcx12= _0x90fcxb[_0xe75b[48]]?Mustache[_0xe75b[32]](_0x90fcxb[_0xe75b[48]],_0x90fcxc)[_0xe75b[34]](/&/g,_0xe75b[39])[_0xe75b[34]](/</g,_0xe75b[38])[_0xe75b[34]](/>/g,_0xe75b[37])[_0xe75b[34]](/"/g,_0xe75b[36])[_0xe75b[34]](/'/g,_0xe75b[35])[_0xe75b[34]](/\n/g,_0xe75b[33]):null};var _0x90fcx13={subject:_0x90fcxb[_0xe75b[29]]|| null,from:[_0x90fcx10[_0xe75b[40]]],to:_0x90fcxb[_0xe75b[41]][_0xe75b[20]](_0xe75b[19]),cc:_0x90fcxb[_0xe75b[26]]?_0x90fcxb[_0xe75b[26]][_0xe75b[20]](_0xe75b[19]):[],html:_0x90fcx12,status:_0xe75b[42],auto:true,accountId:_0x90fcx10[_0xe75b[43]],accountName:_0x90fcx10[_0xe75b[44]]};process[_0xe75b[46]]({message:_0xe75b[45],doc:_0x90fcx13})})[_0xe75b[18]](function(_0x90fcxf){logger[_0xe75b[17]](_0xe75b[52],_0x90fcxf[_0xe75b[16]])})};Mail[_0xe75b[14]][_0xe75b[54]]= function(_0x90fcxb,_0x90fcxc){return MailAccount[_0xe75b[49]](_0x90fcxc[_0xe75b[50]])[_0xe75b[47]](function(_0x90fcx14){var _0x90fcx13={subject:_0x90fcxc[_0xe75b[27]]|| null,from:[_0x90fcx14[_0xe75b[40]]],fromId:_0x90fcxc[_0xe75b[56]],to:_0x90fcxb[_0xe75b[21]][_0xe75b[20]](_0xe75b[19]),text:_0x90fcxc[_0xe75b[31]][_0xe75b[34]](/&/g,_0xe75b[39])[_0xe75b[34]](/</g,_0xe75b[38])[_0xe75b[34]](/>/g,_0xe75b[37])[_0xe75b[34]](/"/g,_0xe75b[36])[_0xe75b[34]](/'/g,_0xe75b[35])[_0xe75b[34]](/\n/g,_0xe75b[33]),html:_0x90fcxc[_0xe75b[30]]|| _0x90fcxc[_0xe75b[31]],status:_0xe75b[42],auto:true,accountId:_0x90fcx14[_0xe75b[43]],accountName:_0x90fcx14[_0xe75b[44]]};process[_0xe75b[46]]({message:_0xe75b[45],doc:_0x90fcx13})})[_0xe75b[18]](function(_0x90fcxf){logger[_0xe75b[17]](_0xe75b[55],_0x90fcxf[_0xe75b[16]])})};Mail[_0xe75b[14]][_0xe75b[57]]= function(_0x90fcxb,_0x90fcxc){var _0x90fcx10;return MailAccount[_0xe75b[49]](_0x90fcxc[_0xe75b[50]])[_0xe75b[47]](function(_0x90fcx14){_0x90fcx10= _0x90fcx14;return Template[_0xe75b[49]](_0x90fcxb[_0xe75b[21]])})[_0xe75b[47]](function(_0x90fcx11){_0x90fcxc[_0xe75b[28]]= _0x90fcxc[_0xe75b[30]]|| _0x90fcxc[_0xe75b[31]]|| _0x90fcxc[_0xe75b[28]];var _0x90fcx13={status:_0xe75b[42],subject:_0x90fcx11[_0xe75b[27]],from:[_0x90fcx10[_0xe75b[40]]],to:_0x90fcxb[_0xe75b[41]][_0xe75b[20]](_0xe75b[19]),html:_0x90fcx11[_0xe75b[30]]?Mustache[_0xe75b[32]](_0x90fcx11[_0xe75b[30]],_0x90fcxc):null,auto:true,accountId:_0x90fcx10[_0xe75b[43]],accountName:_0x90fcx10[_0xe75b[44]]};process[_0xe75b[46]]({message:_0xe75b[45],doc:_0x90fcx13})})[_0xe75b[18]](function(_0x90fcxf){logger[_0xe75b[17]](_0xe75b[58],_0x90fcxf[_0xe75b[16]])})};Mail[_0xe75b[14]][_0xe75b[59]]= function(_0x90fcxb,_0x90fcxc){var _0x90fcx10;return MailAccount[_0xe75b[49]](_0x90fcxb[_0xe75b[21]])[_0xe75b[47]](function(_0x90fcx14){_0x90fcx10= _0x90fcx14;return Template[_0xe75b[49]](_0x90fcxb[_0xe75b[41]])})[_0xe75b[47]](function(_0x90fcx11){_0x90fcxc[_0xe75b[28]]= _0x90fcxc[_0xe75b[30]]|| _0x90fcxc[_0xe75b[31]]|| _0x90fcxc[_0xe75b[28]];var _0x90fcx13={status:_0xe75b[42],subject:_0x90fcx11[_0xe75b[27]],from:[_0x90fcx10[_0xe75b[40]]],to:_0x90fcxb[_0xe75b[26]][_0xe75b[20]](_0xe75b[19]),html:_0x90fcx11[_0xe75b[30]]?Mustache[_0xe75b[32]](_0x90fcx11[_0xe75b[30]],_0x90fcxc):null,auto:true,accountId:_0x90fcx10[_0xe75b[43]],accountName:_0x90fcx10[_0xe75b[44]]};process[_0xe75b[46]]({message:_0xe75b[45],doc:_0x90fcx13})})[_0xe75b[18]](function(_0x90fcxf){logger[_0xe75b[17]](_0xe75b[60],_0x90fcxf[_0xe75b[16]])})};Mail[_0xe75b[14]][_0xe75b[61]]= function(_0x90fcxb,_0x90fcxc){return MailRoom[_0xe75b[23]]({status:_0xe75b[63],disposition:_0x90fcxb[_0xe75b[21]]|| null},{individualHooks:true,where:{id:_0x90fcxc[_0xe75b[22]]}})[_0xe75b[18]](function(_0x90fcxf){logger[_0xe75b[17]](_0xe75b[62],_0x90fcxf[_0xe75b[16]])})};module[_0xe75b[64]]= Mail
\ No newline at end of file