Built motion from commit 1038d87.|0.0.141
[motion.git] / server / config / triggers / mail.js
index 5663b1c..3cc33ef 100644 (file)
@@ -1 +1 @@
-var _0x98ad=["\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","\x68\x74\x74\x70","\x64\x61\x74\x61\x32","\x71\x73","\x47\x45\x54","\x66\x6F\x72\x6D","\x50\x4F\x53\x54","\x65\x6D\x61\x69\x6C","\x64\x61\x74\x61\x33","\x61\x64\x64\x72\x65\x73\x73","\x64\x61\x74\x61\x34","\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","\x72\x65\x6E\x64\x65\x72","\x53\x45\x4E\x44\x49\x4E\x47","\x69\x64","\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x61\x63\x63\x6F\x75\x6E\x74\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x66\x6F\x72\x77\x61\x72\x64","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D\x49\x64","\x74\x65\x78\x74","\x68\x74\x6D\x6C","\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(_0x98ad[0]);const rp=require(_0x98ad[1]);const Mustache=require(_0x98ad[2]);const MailRoom=require(_0x98ad[4])[_0x98ad[3]];const Template=require(_0x98ad[4])[_0x98ad[5]];const MailMessage=require(_0x98ad[4])[_0x98ad[6]];const MailAccount=require(_0x98ad[4])[_0x98ad[7]];const MailServerOut=require(_0x98ad[4])[_0x98ad[8]];function Mail(){console[_0x98ad[10]](_0x98ad[9])}Mail[_0x98ad[12]][_0x98ad[11]]= function(_0x69c7xa,_0x69c7xb,_0x69c7xc,_0x69c7xd){return MailRoom[_0x98ad[19]]({tags:_0x69c7xa[_0x98ad[17]][_0x98ad[16]](_0x98ad[15])},{where:{id:_0x69c7xb[_0x98ad[18]]}})[_0x98ad[14]](function(_0x69c7xe){console[_0x98ad[13]](_0x69c7xe)})};Mail[_0x98ad[12]][_0x98ad[20]]= function(_0x69c7xa,_0x69c7xb){var _0x69c7xf={method:_0x69c7xa[_0x98ad[17]],uri:_0x69c7xa[_0x98ad[21]],json:true};switch(_0x69c7xa[_0x98ad[17]]){case _0x98ad[23]:_0x69c7xf[_0x98ad[22]]= _0x69c7xb;break;case _0x98ad[25]:_0x69c7xf[_0x98ad[24]]= _0x69c7xb;break;default:};return rp(_0x69c7xf)[_0x98ad[14]](function(_0x69c7xe){console[_0x98ad[13]](_0x69c7xe)})};Mail[_0x98ad[12]][_0x98ad[26]]= function(_0x69c7xa,_0x69c7xb){return MailAccount[_0x98ad[44]](_0x69c7xb[_0x98ad[43]])[_0x98ad[42]](function(_0x69c7x10){return MailMessage[_0x98ad[41]]({subject:_0x69c7xa[_0x98ad[27]]|| null,from:[_0x69c7x10[_0x98ad[28]]],to:_0x69c7xa[_0x98ad[17]][_0x98ad[16]](_0x98ad[15]),cc:_0x69c7xa[_0x98ad[21]]?_0x69c7xa[_0x98ad[21]][_0x98ad[16]](_0x98ad[15]):[],html:_0x69c7xa[_0x98ad[29]]?Mustache[_0x98ad[37]](_0x69c7xa[_0x98ad[29]],_0x69c7xb)[_0x98ad[31]](/&/g,_0x98ad[36])[_0x98ad[31]](/</g,_0x98ad[35])[_0x98ad[31]](/>/g,_0x98ad[34])[_0x98ad[31]](/"/g,_0x98ad[33])[_0x98ad[31]](/'/g,_0x98ad[32])[_0x98ad[31]](/\n/g,_0x98ad[30]):null,status:_0x98ad[38],auto:true,accountId:_0x69c7x10[_0x98ad[39]],accountName:_0x69c7x10[_0x98ad[40]]})})[_0x98ad[14]](function(_0x69c7xe){console[_0x98ad[13]](_0x69c7xe)})};Mail[_0x98ad[12]][_0x98ad[45]]= function(_0x69c7xa,_0x69c7xb){return MailAccount[_0x98ad[44]](_0x69c7xb[_0x98ad[43]])[_0x98ad[42]](function(_0x69c7x10){return MailMessage[_0x98ad[41]]({subject:_0x69c7xb[_0x98ad[46]]|| null,from:[_0x69c7x10[_0x98ad[28]]],fromId:_0x69c7xb[_0x98ad[47]],to:_0x69c7xa[_0x98ad[17]][_0x98ad[16]](_0x98ad[15]),text:_0x69c7xb[_0x98ad[48]][_0x98ad[31]](/&/g,_0x98ad[36])[_0x98ad[31]](/</g,_0x98ad[35])[_0x98ad[31]](/>/g,_0x98ad[34])[_0x98ad[31]](/"/g,_0x98ad[33])[_0x98ad[31]](/'/g,_0x98ad[32])[_0x98ad[31]](/\n/g,_0x98ad[30]),html:_0x69c7xb[_0x98ad[49]],status:_0x98ad[38],auto:true,accountId:_0x69c7x10[_0x98ad[39]],accountName:_0x69c7x10[_0x98ad[40]]})})[_0x98ad[14]](function(_0x69c7xe){console[_0x98ad[13]](_0x69c7xe)})};Mail[_0x98ad[12]][_0x98ad[50]]= function(_0x69c7xa,_0x69c7xb){var _0x69c7x11;return MailAccount[_0x98ad[44]](_0x69c7xb[_0x98ad[43]])[_0x98ad[42]](function(_0x69c7x10){_0x69c7x11= _0x69c7x10;return Template[_0x98ad[44]](_0x69c7xa[_0x98ad[17]])})[_0x98ad[42]](function(_0x69c7x12){return MailMessage[_0x98ad[41]]({status:_0x98ad[38],subject:_0x69c7x12[_0x98ad[46]],from:[_0x69c7x11[_0x98ad[28]]],to:_0x69c7xa[_0x98ad[21]][_0x98ad[16]](_0x98ad[15]),html:_0x69c7x12[_0x98ad[49]]?Mustache[_0x98ad[37]](_0x69c7x12[_0x98ad[49]],_0x69c7xb):null,auto:true,accountId:_0x69c7x11[_0x98ad[39]],accountName:_0x69c7x11[_0x98ad[40]]})[_0x98ad[14]](function(_0x69c7xe){console[_0x98ad[10]](_0x69c7xe)})})};Mail[_0x98ad[12]][_0x98ad[51]]= function(_0x69c7xa,_0x69c7xb){var _0x69c7x11;return MailAccount[_0x98ad[44]](_0x69c7xa[_0x98ad[17]])[_0x98ad[42]](function(_0x69c7x10){_0x69c7x11= _0x69c7x10;return Template[_0x98ad[44]](_0x69c7xa[_0x98ad[21]])})[_0x98ad[42]](function(_0x69c7x12){return MailMessage[_0x98ad[41]]({status:_0x98ad[38],subject:_0x69c7x12[_0x98ad[46]],from:[_0x69c7x11[_0x98ad[28]]],to:_0x69c7xa[_0x98ad[27]][_0x98ad[16]](_0x98ad[15]),html:_0x69c7x12[_0x98ad[49]]?Mustache[_0x98ad[37]](_0x69c7x12[_0x98ad[49]],_0x69c7xb):null,auto:true,accountId:_0x69c7x11[_0x98ad[39]],accountName:_0x69c7x11[_0x98ad[40]]})[_0x98ad[14]](function(_0x69c7xe){console[_0x98ad[10]](_0x69c7xe)})})};Mail[_0x98ad[12]][_0x98ad[52]]= function(_0x69c7xa,_0x69c7xb){return MailRoom[_0x98ad[19]]({status:_0x98ad[53],disposition:_0x69c7xa[_0x98ad[17]]|| null},{individualHooks:true,where:{id:_0x69c7xb[_0x98ad[18]]}})[_0x98ad[14]](function(_0x69c7xe){console[_0x98ad[13]](_0x69c7xe)})};module[_0x98ad[54]]= Mail
\ No newline at end of file
+var _0x5898=["\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","\x61\x64\x64\x72\x65\x73\x73","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x34","\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","\x72\x65\x6E\x64\x65\x72","\x53\x45\x4E\x44\x49\x4E\x47","\x69\x64","\x6E\x61\x6D\x65","\x63\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x61\x63\x63\x6F\x75\x6E\x74\x49\x64","\x66\x69\x6E\x64\x42\x79\x49\x64","\x66\x6F\x72\x77\x61\x72\x64","\x73\x75\x62\x6A\x65\x63\x74","\x66\x72\x6F\x6D\x49\x64","\x74\x65\x78\x74","\x68\x74\x6D\x6C","\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(_0x5898[0]);const rp=require(_0x5898[1]);const Mustache=require(_0x5898[2]);const MailRoom=require(_0x5898[4])[_0x5898[3]];const Template=require(_0x5898[4])[_0x5898[5]];const MailMessage=require(_0x5898[4])[_0x5898[6]];const MailAccount=require(_0x5898[4])[_0x5898[7]];const MailServerOut=require(_0x5898[4])[_0x5898[8]];function Mail(){console[_0x5898[10]](_0x5898[9])}Mail[_0x5898[12]][_0x5898[11]]= function(_0x945exa,_0x945exb,_0x945exc,_0x945exd){return MailRoom[_0x5898[19]]({tags:_0x945exa[_0x5898[17]][_0x5898[16]](_0x5898[15])},{where:{id:_0x945exb[_0x5898[18]]}})[_0x5898[14]](function(_0x945exe){console[_0x5898[13]](_0x945exe)})};Mail[_0x5898[12]][_0x5898[20]]= function(_0x945exa,_0x945exb){return MailAccount[_0x5898[39]](_0x945exb[_0x5898[38]])[_0x5898[37]](function(_0x945exf){return MailMessage[_0x5898[36]]({subject:_0x945exa[_0x5898[21]]|| null,from:[_0x945exf[_0x5898[22]]],to:_0x945exa[_0x5898[17]][_0x5898[16]](_0x5898[15]),cc:_0x945exa[_0x5898[23]]?_0x945exa[_0x5898[23]][_0x5898[16]](_0x5898[15]):[],html:_0x945exa[_0x5898[24]]?Mustache[_0x5898[32]](_0x945exa[_0x5898[24]],_0x945exb)[_0x5898[26]](/&/g,_0x5898[31])[_0x5898[26]](/</g,_0x5898[30])[_0x5898[26]](/>/g,_0x5898[29])[_0x5898[26]](/"/g,_0x5898[28])[_0x5898[26]](/'/g,_0x5898[27])[_0x5898[26]](/\n/g,_0x5898[25]):null,status:_0x5898[33],auto:true,accountId:_0x945exf[_0x5898[34]],accountName:_0x945exf[_0x5898[35]]})})[_0x5898[14]](function(_0x945exe){console[_0x5898[13]](_0x945exe)})};Mail[_0x5898[12]][_0x5898[40]]= function(_0x945exa,_0x945exb){return MailAccount[_0x5898[39]](_0x945exb[_0x5898[38]])[_0x5898[37]](function(_0x945exf){return MailMessage[_0x5898[36]]({subject:_0x945exb[_0x5898[41]]|| null,from:[_0x945exf[_0x5898[22]]],fromId:_0x945exb[_0x5898[42]],to:_0x945exa[_0x5898[17]][_0x5898[16]](_0x5898[15]),text:_0x945exb[_0x5898[43]][_0x5898[26]](/&/g,_0x5898[31])[_0x5898[26]](/</g,_0x5898[30])[_0x5898[26]](/>/g,_0x5898[29])[_0x5898[26]](/"/g,_0x5898[28])[_0x5898[26]](/'/g,_0x5898[27])[_0x5898[26]](/\n/g,_0x5898[25]),html:_0x945exb[_0x5898[44]],status:_0x5898[33],auto:true,accountId:_0x945exf[_0x5898[34]],accountName:_0x945exf[_0x5898[35]]})})[_0x5898[14]](function(_0x945exe){console[_0x5898[13]](_0x945exe)})};Mail[_0x5898[12]][_0x5898[45]]= function(_0x945exa,_0x945exb){var _0x945ex10;return MailAccount[_0x5898[39]](_0x945exb[_0x5898[38]])[_0x5898[37]](function(_0x945exf){_0x945ex10= _0x945exf;return Template[_0x5898[39]](_0x945exa[_0x5898[17]])})[_0x5898[37]](function(_0x945ex11){return MailMessage[_0x5898[36]]({status:_0x5898[33],subject:_0x945ex11[_0x5898[41]],from:[_0x945ex10[_0x5898[22]]],to:_0x945exa[_0x5898[23]][_0x5898[16]](_0x5898[15]),html:_0x945ex11[_0x5898[44]]?Mustache[_0x5898[32]](_0x945ex11[_0x5898[44]],_0x945exb):null,auto:true,accountId:_0x945ex10[_0x5898[34]],accountName:_0x945ex10[_0x5898[35]]})[_0x5898[14]](function(_0x945exe){console[_0x5898[10]](_0x945exe)})})};Mail[_0x5898[12]][_0x5898[46]]= function(_0x945exa,_0x945exb){var _0x945ex10;return MailAccount[_0x5898[39]](_0x945exa[_0x5898[17]])[_0x5898[37]](function(_0x945exf){_0x945ex10= _0x945exf;return Template[_0x5898[39]](_0x945exa[_0x5898[23]])})[_0x5898[37]](function(_0x945ex11){return MailMessage[_0x5898[36]]({status:_0x5898[33],subject:_0x945ex11[_0x5898[41]],from:[_0x945ex10[_0x5898[22]]],to:_0x945exa[_0x5898[21]][_0x5898[16]](_0x5898[15]),html:_0x945ex11[_0x5898[44]]?Mustache[_0x5898[32]](_0x945ex11[_0x5898[44]],_0x945exb):null,auto:true,accountId:_0x945ex10[_0x5898[34]],accountName:_0x945ex10[_0x5898[35]]})[_0x5898[14]](function(_0x945exe){console[_0x5898[10]](_0x945exe)})})};Mail[_0x5898[12]][_0x5898[47]]= function(_0x945exa,_0x945exb){return MailRoom[_0x5898[19]]({status:_0x5898[48],disposition:_0x945exa[_0x5898[17]]|| null},{individualHooks:true,where:{id:_0x945exb[_0x5898[18]]}})[_0x5898[14]](function(_0x945exe){console[_0x5898[13]](_0x945exe)})};module[_0x5898[49]]= Mail
\ No newline at end of file