Built motion from commit 9362eee.|1.0.9
[motion.git] / server / config / triggers / mail.js
index 968514f..0021781 100644 (file)
@@ -1 +1 @@
-var _0xf527=["\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","\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","\x6C\x6F\x67","\x74\x61\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\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","\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","\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","\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","\x64\x61\x74\x61\x36","\x66\x6F\x72\x77\x61\x72\x64","\x66\x72\x6F\x6D\x49\x64","\x74\x65\x78\x74","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x61\x63\x63\x6F\x75\x6E\x74\x54\x65\x6D\x70\x6C\x61\x74\x65","\x63\x6C\x6F\x73\x65","\x43\x4C\x4F\x53\x45\x44","\x65\x78\x70\x6F\x72\x74\x73"];const _=require(_0xf527[0]);const rp=require(_0xf527[1]);const Mustache=require(_0xf527[2]);const MailRoom=require(_0xf527[4])[_0xf527[3]];const Template=require(_0xf527[4])[_0xf527[5]];const MailMessage=require(_0xf527[4])[_0xf527[6]];const MailAccount=require(_0xf527[4])[_0xf527[7]];const MailServerOut=require(_0xf527[4])[_0xf527[8]];function Mail(){console[_0xf527[10]](_0xf527[9])}Mail[_0xf527[12]][_0xf527[11]]= function(_0xa585xa,_0xa585xb,_0xa585xc,_0xa585xd){return MailRoom[_0xf527[19]]({tags:_0xa585xa[_0xf527[17]][_0xf527[16]](_0xf527[15])},{where:{id:_0xa585xb[_0xf527[18]]}})[_0xf527[14]](function(_0xa585xe){console[_0xf527[13]](_0xa585xe)})};Mail[_0xf527[12]][_0xf527[20]]= function(_0xa585xa,_0xa585xb){var _0xa585xf;return MailAccount[_0xf527[42]](_0xa585xb[_0xf527[43]])[_0xf527[40]](function(_0xa585x12){_0xa585xf= _0xa585x12;if(_0xa585xa[_0xf527[41]]){return Template[_0xf527[42]](_0xa585xa[_0xf527[41]])}})[_0xf527[40]](function(_0xa585x10){var _0xa585x11;if(_0xa585x10){_0xa585xa[_0xf527[21]]= _0xa585x10[_0xf527[22]];_0xa585xb[_0xf527[23]]= _0xa585xa[_0xf527[24]];_0xa585x11= _0xa585x10[_0xf527[25]]?Mustache[_0xf527[26]](_0xa585x10[_0xf527[25]],_0xa585xb):null}else {_0xa585x11= _0xa585xa[_0xf527[24]]?Mustache[_0xf527[26]](_0xa585xa[_0xf527[24]],_0xa585xb)[_0xf527[28]](/&/g,_0xf527[33])[_0xf527[28]](/</g,_0xf527[32])[_0xf527[28]](/>/g,_0xf527[31])[_0xf527[28]](/"/g,_0xf527[30])[_0xf527[28]](/'/g,_0xf527[29])[_0xf527[28]](/\n/g,_0xf527[27]):null};return MailMessage[_0xf527[39]]({subject:_0xa585xa[_0xf527[21]]|| null,from:[_0xa585xf[_0xf527[34]]],to:_0xa585xa[_0xf527[17]][_0xf527[16]](_0xf527[15]),cc:_0xa585xa[_0xf527[35]]?_0xa585xa[_0xf527[35]][_0xf527[16]](_0xf527[15]):[],html:_0xa585x11,status:_0xf527[36],auto:true,accountId:_0xa585xf[_0xf527[37]],accountName:_0xa585xf[_0xf527[38]]})})[_0xf527[14]](function(_0xa585xe){console[_0xf527[13]](_0xa585xe)})};Mail[_0xf527[12]][_0xf527[44]]= function(_0xa585xa,_0xa585xb){var _0xa585xf;return MailAccount[_0xf527[42]](_0xa585xa[_0xf527[17]])[_0xf527[40]](function(_0xa585x12){_0xa585xf= _0xa585x12;if(_0xa585xa[_0xf527[45]]){return Template[_0xf527[42]](_0xa585xa[_0xf527[45]])}})[_0xf527[40]](function(_0xa585x10){var _0xa585x11;if(_0xa585x10){_0xa585xa[_0xf527[24]]= _0xa585x10[_0xf527[22]];_0xa585xb[_0xf527[23]]= _0xa585xa[_0xf527[41]];_0xa585x11= _0xa585x10[_0xf527[25]]?Mustache[_0xf527[26]](_0xa585x10[_0xf527[25]],_0xa585xb):null}else {_0xa585x11= _0xa585xa[_0xf527[41]]?Mustache[_0xf527[26]](_0xa585xa[_0xf527[41]],_0xa585xb)[_0xf527[28]](/&/g,_0xf527[33])[_0xf527[28]](/</g,_0xf527[32])[_0xf527[28]](/>/g,_0xf527[31])[_0xf527[28]](/"/g,_0xf527[30])[_0xf527[28]](/'/g,_0xf527[29])[_0xf527[28]](/\n/g,_0xf527[27]):null};return MailMessage[_0xf527[39]]({subject:_0xa585xa[_0xf527[24]]|| null,from:[_0xa585xf[_0xf527[34]]],to:_0xa585xa[_0xf527[35]][_0xf527[16]](_0xf527[15]),cc:_0xa585xa[_0xf527[21]]?_0xa585xa[_0xf527[21]][_0xf527[16]](_0xf527[15]):[],html:_0xa585x11,status:_0xf527[36],auto:true,accountId:_0xa585xf[_0xf527[37]],accountName:_0xa585xf[_0xf527[38]]})})[_0xf527[14]](function(_0xa585xe){console[_0xf527[13]](_0xa585xe)})};Mail[_0xf527[12]][_0xf527[46]]= function(_0xa585xa,_0xa585xb){return MailAccount[_0xf527[42]](_0xa585xb[_0xf527[43]])[_0xf527[40]](function(_0xa585x12){return MailMessage[_0xf527[39]]({subject:_0xa585xb[_0xf527[22]]|| null,from:[_0xa585x12[_0xf527[34]]],fromId:_0xa585xb[_0xf527[47]],to:_0xa585xa[_0xf527[17]][_0xf527[16]](_0xf527[15]),text:_0xa585xb[_0xf527[48]][_0xf527[28]](/&/g,_0xf527[33])[_0xf527[28]](/</g,_0xf527[32])[_0xf527[28]](/>/g,_0xf527[31])[_0xf527[28]](/"/g,_0xf527[30])[_0xf527[28]](/'/g,_0xf527[29])[_0xf527[28]](/\n/g,_0xf527[27]),html:_0xa585xb[_0xf527[25]],status:_0xf527[36],auto:true,accountId:_0xa585x12[_0xf527[37]],accountName:_0xa585x12[_0xf527[38]]})})[_0xf527[14]](function(_0xa585xe){console[_0xf527[13]](_0xa585xe)})};Mail[_0xf527[12]][_0xf527[49]]= function(_0xa585xa,_0xa585xb){var _0xa585xf;return MailAccount[_0xf527[42]](_0xa585xb[_0xf527[43]])[_0xf527[40]](function(_0xa585x12){_0xa585xf= _0xa585x12;return Template[_0xf527[42]](_0xa585xa[_0xf527[17]])})[_0xf527[40]](function(_0xa585x10){return MailMessage[_0xf527[39]]({status:_0xf527[36],subject:_0xa585x10[_0xf527[22]],from:[_0xa585xf[_0xf527[34]]],to:_0xa585xa[_0xf527[35]][_0xf527[16]](_0xf527[15]),html:_0xa585x10[_0xf527[25]]?Mustache[_0xf527[26]](_0xa585x10[_0xf527[25]],_0xa585xb):null,auto:true,accountId:_0xa585xf[_0xf527[37]],accountName:_0xa585xf[_0xf527[38]]})[_0xf527[14]](function(_0xa585xe){console[_0xf527[10]](_0xa585xe)})})};Mail[_0xf527[12]][_0xf527[50]]= function(_0xa585xa,_0xa585xb){var _0xa585xf;return MailAccount[_0xf527[42]](_0xa585xa[_0xf527[17]])[_0xf527[40]](function(_0xa585x12){_0xa585xf= _0xa585x12;return Template[_0xf527[42]](_0xa585xa[_0xf527[35]])})[_0xf527[40]](function(_0xa585x10){return MailMessage[_0xf527[39]]({status:_0xf527[36],subject:_0xa585x10[_0xf527[22]],from:[_0xa585xf[_0xf527[34]]],to:_0xa585xa[_0xf527[21]][_0xf527[16]](_0xf527[15]),html:_0xa585x10[_0xf527[25]]?Mustache[_0xf527[26]](_0xa585x10[_0xf527[25]],_0xa585xb):null,auto:true,accountId:_0xa585xf[_0xf527[37]],accountName:_0xa585xf[_0xf527[38]]})[_0xf527[14]](function(_0xa585xe){console[_0xf527[10]](_0xa585xe)})})};Mail[_0xf527[12]][_0xf527[51]]= function(_0xa585xa,_0xa585xb){return MailRoom[_0xf527[19]]({status:_0xf527[52],disposition:_0xa585xa[_0xf527[17]]|| null},{individualHooks:true,where:{id:_0xa585xb[_0xf527[18]]}})[_0xf527[14]](function(_0xa585xe){console[_0xf527[13]](_0xa585xe)})};module[_0xf527[53]]= Mail
\ No newline at end of file
+var _0x12c9=["\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","\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","\x6C\x6F\x67","\x74\x61\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\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","\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","\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","\x64\x61\x74\x61\x36","\x66\x6F\x72\x77\x61\x72\x64","\x66\x72\x6F\x6D\x49\x64","\x74\x65\x78\x74","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x61\x63\x63\x6F\x75\x6E\x74\x54\x65\x6D\x70\x6C\x61\x74\x65","\x63\x6C\x6F\x73\x65","\x43\x4C\x4F\x53\x45\x44","\x65\x78\x70\x6F\x72\x74\x73"];const _=require(_0x12c9[0]);const rp=require(_0x12c9[1]);const Mustache=require(_0x12c9[2]);const MailRoom=require(_0x12c9[4])[_0x12c9[3]];const Template=require(_0x12c9[4])[_0x12c9[5]];const MailMessage=require(_0x12c9[4])[_0x12c9[6]];const MailAccount=require(_0x12c9[4])[_0x12c9[7]];const MailServerOut=require(_0x12c9[4])[_0x12c9[8]];function Mail(){console[_0x12c9[10]](_0x12c9[9])}Mail[_0x12c9[12]][_0x12c9[11]]= function(_0xd167xa,_0xd167xb,_0xd167xc,_0xd167xd){return MailRoom[_0x12c9[19]]({tags:_0xd167xa[_0x12c9[17]][_0x12c9[16]](_0x12c9[15])},{where:{id:_0xd167xb[_0x12c9[18]]}})[_0x12c9[14]](function(_0xd167xe){console[_0x12c9[13]](_0xd167xe)})};Mail[_0x12c9[12]][_0x12c9[20]]= function(_0xd167xa,_0xd167xb){var _0xd167xf;return MailAccount[_0x12c9[43]](_0xd167xb[_0x12c9[44]])[_0x12c9[41]](function(_0xd167x13){_0xd167xf= _0xd167x13;if(_0xd167xa[_0x12c9[42]]){return Template[_0x12c9[43]](_0xd167xa[_0x12c9[42]])}})[_0x12c9[41]](function(_0xd167x10){var _0xd167x11;if(_0xd167x10){_0xd167xa[_0x12c9[21]]= _0xd167x10[_0x12c9[22]];_0xd167xb[_0x12c9[23]]= _0xd167xa[_0x12c9[24]];_0xd167x11= _0xd167x10[_0x12c9[25]]?Mustache[_0x12c9[26]](_0xd167x10[_0x12c9[25]],_0xd167xb):null}else {_0xd167x11= _0xd167xa[_0x12c9[24]]?Mustache[_0x12c9[26]](_0xd167xa[_0x12c9[24]],_0xd167xb)[_0x12c9[28]](/&/g,_0x12c9[33])[_0x12c9[28]](/</g,_0x12c9[32])[_0x12c9[28]](/>/g,_0x12c9[31])[_0x12c9[28]](/"/g,_0x12c9[30])[_0x12c9[28]](/'/g,_0x12c9[29])[_0x12c9[28]](/\n/g,_0x12c9[27]):null};var _0xd167x12={subject:_0xd167xa[_0x12c9[21]]|| null,from:[_0xd167xf[_0x12c9[34]]],to:_0xd167xa[_0x12c9[17]][_0x12c9[16]](_0x12c9[15]),cc:_0xd167xa[_0x12c9[35]]?_0xd167xa[_0x12c9[35]][_0x12c9[16]](_0x12c9[15]):[],html:_0xd167x11,status:_0x12c9[36],auto:true,accountId:_0xd167xf[_0x12c9[37]],accountName:_0xd167xf[_0x12c9[38]]};process[_0x12c9[40]]({message:_0x12c9[39],doc:_0xd167x12})})[_0x12c9[14]](function(_0xd167xe){console[_0x12c9[13]](_0xd167xe)})};Mail[_0x12c9[12]][_0x12c9[45]]= function(_0xd167xa,_0xd167xb){var _0xd167xf;return MailAccount[_0x12c9[43]](_0xd167xa[_0x12c9[17]])[_0x12c9[41]](function(_0xd167x13){_0xd167xf= _0xd167x13;if(_0xd167xa[_0x12c9[46]]){return Template[_0x12c9[43]](_0xd167xa[_0x12c9[46]])}})[_0x12c9[41]](function(_0xd167x10){var _0xd167x11;if(_0xd167x10){_0xd167xa[_0x12c9[24]]= _0xd167x10[_0x12c9[22]];_0xd167xb[_0x12c9[23]]= _0xd167xa[_0x12c9[42]];_0xd167x11= _0xd167x10[_0x12c9[25]]?Mustache[_0x12c9[26]](_0xd167x10[_0x12c9[25]],_0xd167xb):null}else {_0xd167x11= _0xd167xa[_0x12c9[42]]?Mustache[_0x12c9[26]](_0xd167xa[_0x12c9[42]],_0xd167xb)[_0x12c9[28]](/&/g,_0x12c9[33])[_0x12c9[28]](/</g,_0x12c9[32])[_0x12c9[28]](/>/g,_0x12c9[31])[_0x12c9[28]](/"/g,_0x12c9[30])[_0x12c9[28]](/'/g,_0x12c9[29])[_0x12c9[28]](/\n/g,_0x12c9[27]):null};var _0xd167x12={subject:_0xd167xa[_0x12c9[24]]|| null,from:[_0xd167xf[_0x12c9[34]]],to:_0xd167xa[_0x12c9[35]][_0x12c9[16]](_0x12c9[15]),cc:_0xd167xa[_0x12c9[21]]?_0xd167xa[_0x12c9[21]][_0x12c9[16]](_0x12c9[15]):[],html:_0xd167x11,status:_0x12c9[36],auto:true,accountId:_0xd167xf[_0x12c9[37]],accountName:_0xd167xf[_0x12c9[38]]};process[_0x12c9[40]]({message:_0x12c9[39],doc:_0xd167x12})})[_0x12c9[14]](function(_0xd167xe){console[_0x12c9[13]](_0xd167xe)})};Mail[_0x12c9[12]][_0x12c9[47]]= function(_0xd167xa,_0xd167xb){return MailAccount[_0x12c9[43]](_0xd167xb[_0x12c9[44]])[_0x12c9[41]](function(_0xd167x13){var _0xd167x12={subject:_0xd167xb[_0x12c9[22]]|| null,from:[_0xd167x13[_0x12c9[34]]],fromId:_0xd167xb[_0x12c9[48]],to:_0xd167xa[_0x12c9[17]][_0x12c9[16]](_0x12c9[15]),text:_0xd167xb[_0x12c9[49]][_0x12c9[28]](/&/g,_0x12c9[33])[_0x12c9[28]](/</g,_0x12c9[32])[_0x12c9[28]](/>/g,_0x12c9[31])[_0x12c9[28]](/"/g,_0x12c9[30])[_0x12c9[28]](/'/g,_0x12c9[29])[_0x12c9[28]](/\n/g,_0x12c9[27]),html:_0xd167xb[_0x12c9[25]],status:_0x12c9[36],auto:true,accountId:_0xd167x13[_0x12c9[37]],accountName:_0xd167x13[_0x12c9[38]]};process[_0x12c9[40]]({message:_0x12c9[39],doc:_0xd167x12})})[_0x12c9[14]](function(_0xd167xe){console[_0x12c9[13]](_0xd167xe)})};Mail[_0x12c9[12]][_0x12c9[50]]= function(_0xd167xa,_0xd167xb){var _0xd167xf;return MailAccount[_0x12c9[43]](_0xd167xb[_0x12c9[44]])[_0x12c9[41]](function(_0xd167x13){_0xd167xf= _0xd167x13;return Template[_0x12c9[43]](_0xd167xa[_0x12c9[17]])})[_0x12c9[41]](function(_0xd167x10){var _0xd167x12={status:_0x12c9[36],subject:_0xd167x10[_0x12c9[22]],from:[_0xd167xf[_0x12c9[34]]],to:_0xd167xa[_0x12c9[35]][_0x12c9[16]](_0x12c9[15]),html:_0xd167x10[_0x12c9[25]]?Mustache[_0x12c9[26]](_0xd167x10[_0x12c9[25]],_0xd167xb):null,auto:true,accountId:_0xd167xf[_0x12c9[37]],accountName:_0xd167xf[_0x12c9[38]]};process[_0x12c9[40]]({message:_0x12c9[39],doc:_0xd167x12})})[_0x12c9[14]](function(_0xd167xe){console[_0x12c9[10]](_0xd167xe)})};Mail[_0x12c9[12]][_0x12c9[51]]= function(_0xd167xa,_0xd167xb){var _0xd167xf;return MailAccount[_0x12c9[43]](_0xd167xa[_0x12c9[17]])[_0x12c9[41]](function(_0xd167x13){_0xd167xf= _0xd167x13;return Template[_0x12c9[43]](_0xd167xa[_0x12c9[35]])})[_0x12c9[41]](function(_0xd167x10){var _0xd167x12={status:_0x12c9[36],subject:_0xd167x10[_0x12c9[22]],from:[_0xd167xf[_0x12c9[34]]],to:_0xd167xa[_0x12c9[21]][_0x12c9[16]](_0x12c9[15]),html:_0xd167x10[_0x12c9[25]]?Mustache[_0x12c9[26]](_0xd167x10[_0x12c9[25]],_0xd167xb):null,auto:true,accountId:_0xd167xf[_0x12c9[37]],accountName:_0xd167xf[_0x12c9[38]]};process[_0x12c9[40]]({message:_0x12c9[39],doc:_0xd167x12})})[_0x12c9[14]](function(_0xd167xe){console[_0x12c9[10]](_0xd167xe)})};Mail[_0x12c9[12]][_0x12c9[52]]= function(_0xd167xa,_0xd167xb){return MailRoom[_0x12c9[19]]({status:_0x12c9[53],disposition:_0xd167xa[_0x12c9[17]]|| null},{individualHooks:true,where:{id:_0xd167xb[_0x12c9[18]]}})[_0x12c9[14]](function(_0xd167xe){console[_0x12c9[13]](_0xd167xe)})};module[_0x12c9[54]]= Mail
\ No newline at end of file