Built motion from commit 98555a2.|1.0.12
[motion.git] / server / config / triggers / mail.js
index c687657..27db3f7 100644 (file)
@@ -1 +1 @@
-var _0xf913=["\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(_0xf913[0]);const rp=require(_0xf913[1]);const Mustache=require(_0xf913[2]);const MailRoom=require(_0xf913[4])[_0xf913[3]];const Template=require(_0xf913[4])[_0xf913[5]];const MailMessage=require(_0xf913[4])[_0xf913[6]];const MailAccount=require(_0xf913[4])[_0xf913[7]];const MailServerOut=require(_0xf913[4])[_0xf913[8]];function Mail(){console[_0xf913[10]](_0xf913[9])}Mail[_0xf913[12]][_0xf913[11]]= function(_0xf915xa,_0xf915xb,_0xf915xc,_0xf915xd){return MailRoom[_0xf913[19]]({tags:_0xf915xa[_0xf913[17]][_0xf913[16]](_0xf913[15])},{where:{id:_0xf915xb[_0xf913[18]]}})[_0xf913[14]](function(_0xf915xe){console[_0xf913[13]](_0xf915xe)})};Mail[_0xf913[12]][_0xf913[20]]= function(_0xf915xa,_0xf915xb){var _0xf915xf={method:_0xf915xa[_0xf913[17]],uri:_0xf915xa[_0xf913[21]],json:true};switch(_0xf915xa[_0xf913[17]]){case _0xf913[23]:_0xf915xf[_0xf913[22]]= _0xf915xb;break;case _0xf913[25]:_0xf915xf[_0xf913[24]]= _0xf915xb;break;default:};return rp(_0xf915xf)[_0xf913[14]](function(_0xf915xe){console[_0xf913[13]](_0xf915xe)})};Mail[_0xf913[12]][_0xf913[26]]= function(_0xf915xa,_0xf915xb){return MailAccount[_0xf913[44]](_0xf915xb[_0xf913[43]])[_0xf913[42]](function(_0xf915x10){return MailMessage[_0xf913[41]]({subject:_0xf915xa[_0xf913[27]]|| null,from:[_0xf915x10[_0xf913[28]]],to:_0xf915xa[_0xf913[17]][_0xf913[16]](_0xf913[15]),cc:_0xf915xa[_0xf913[21]]?_0xf915xa[_0xf913[21]][_0xf913[16]](_0xf913[15]):[],html:_0xf915xa[_0xf913[29]]?Mustache[_0xf913[37]](_0xf915xa[_0xf913[29]],_0xf915xb)[_0xf913[31]](/&/g,_0xf913[36])[_0xf913[31]](/</g,_0xf913[35])[_0xf913[31]](/>/g,_0xf913[34])[_0xf913[31]](/"/g,_0xf913[33])[_0xf913[31]](/'/g,_0xf913[32])[_0xf913[31]](/\n/g,_0xf913[30]):null,status:_0xf913[38],auto:true,accountId:_0xf915x10[_0xf913[39]],accountName:_0xf915x10[_0xf913[40]]})})[_0xf913[14]](function(_0xf915xe){console[_0xf913[13]](_0xf915xe)})};Mail[_0xf913[12]][_0xf913[45]]= function(_0xf915xa,_0xf915xb){return MailAccount[_0xf913[44]](_0xf915xb[_0xf913[43]])[_0xf913[42]](function(_0xf915x10){return MailMessage[_0xf913[41]]({subject:_0xf915xb[_0xf913[46]]|| null,from:[_0xf915x10[_0xf913[28]]],fromId:_0xf915xb[_0xf913[47]],to:_0xf915xa[_0xf913[17]][_0xf913[16]](_0xf913[15]),text:_0xf915xb[_0xf913[48]][_0xf913[31]](/&/g,_0xf913[36])[_0xf913[31]](/</g,_0xf913[35])[_0xf913[31]](/>/g,_0xf913[34])[_0xf913[31]](/"/g,_0xf913[33])[_0xf913[31]](/'/g,_0xf913[32])[_0xf913[31]](/\n/g,_0xf913[30]),html:_0xf915xb[_0xf913[49]],status:_0xf913[38],auto:true,accountId:_0xf915x10[_0xf913[39]],accountName:_0xf915x10[_0xf913[40]]})})[_0xf913[14]](function(_0xf915xe){console[_0xf913[13]](_0xf915xe)})};Mail[_0xf913[12]][_0xf913[50]]= function(_0xf915xa,_0xf915xb){var _0xf915x11;return MailAccount[_0xf913[44]](_0xf915xb[_0xf913[43]])[_0xf913[42]](function(_0xf915x10){_0xf915x11= _0xf915x10;return Template[_0xf913[44]](_0xf915xa[_0xf913[17]])})[_0xf913[42]](function(_0xf915x12){return MailMessage[_0xf913[41]]({status:_0xf913[38],subject:_0xf915x12[_0xf913[46]],from:[_0xf915x11[_0xf913[28]]],to:_0xf915xa[_0xf913[21]][_0xf913[16]](_0xf913[15]),html:_0xf915x12[_0xf913[49]]?Mustache[_0xf913[37]](_0xf915x12[_0xf913[49]],_0xf915xb):null,auto:true,accountId:_0xf915x11[_0xf913[39]],accountName:_0xf915x11[_0xf913[40]]})[_0xf913[14]](function(_0xf915xe){console[_0xf913[10]](_0xf915xe)})})};Mail[_0xf913[12]][_0xf913[51]]= function(_0xf915xa,_0xf915xb){var _0xf915x11;return MailAccount[_0xf913[44]](_0xf915xa[_0xf913[17]])[_0xf913[42]](function(_0xf915x10){_0xf915x11= _0xf915x10;return Template[_0xf913[44]](_0xf915xa[_0xf913[21]])})[_0xf913[42]](function(_0xf915x12){return MailMessage[_0xf913[41]]({status:_0xf913[38],subject:_0xf915x12[_0xf913[46]],from:[_0xf915x11[_0xf913[28]]],to:_0xf915xa[_0xf913[27]][_0xf913[16]](_0xf913[15]),html:_0xf915x12[_0xf913[49]]?Mustache[_0xf913[37]](_0xf915x12[_0xf913[49]],_0xf915xb):null,auto:true,accountId:_0xf915x11[_0xf913[39]],accountName:_0xf915x11[_0xf913[40]]})[_0xf913[14]](function(_0xf915xe){console[_0xf913[10]](_0xf915xe)})})};Mail[_0xf913[12]][_0xf913[52]]= function(_0xf915xa,_0xf915xb){return MailRoom[_0xf913[19]]({status:_0xf913[53],disposition:_0xf915xa[_0xf913[17]]|| null},{individualHooks:true,where:{id:_0xf915xb[_0xf913[18]]}})[_0xf913[14]](function(_0xf915xe){console[_0xf913[13]](_0xf915xe)})};module[_0xf913[54]]= Mail
\ No newline at end of file
+var _0xc7af=["\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(_0xc7af[0]);const rp=require(_0xc7af[1]);const Mustache=require(_0xc7af[2]);const MailRoom=require(_0xc7af[4])[_0xc7af[3]];const Template=require(_0xc7af[4])[_0xc7af[5]];const MailMessage=require(_0xc7af[4])[_0xc7af[6]];const MailAccount=require(_0xc7af[4])[_0xc7af[7]];const MailServerOut=require(_0xc7af[4])[_0xc7af[8]];function Mail(){console[_0xc7af[10]](_0xc7af[9])}Mail[_0xc7af[12]][_0xc7af[11]]= function(_0xb72cxa,_0xb72cxb,_0xb72cxc,_0xb72cxd){return MailRoom[_0xc7af[19]]({tags:_0xb72cxa[_0xc7af[17]][_0xc7af[16]](_0xc7af[15])},{where:{id:_0xb72cxb[_0xc7af[18]]}})[_0xc7af[14]](function(_0xb72cxe){console[_0xc7af[13]](_0xb72cxe)})};Mail[_0xc7af[12]][_0xc7af[20]]= function(_0xb72cxa,_0xb72cxb){var _0xb72cxf;return MailAccount[_0xc7af[43]](_0xb72cxb[_0xc7af[44]])[_0xc7af[41]](function(_0xb72cx13){_0xb72cxf= _0xb72cx13;if(_0xb72cxa[_0xc7af[42]]){return Template[_0xc7af[43]](_0xb72cxa[_0xc7af[42]])}})[_0xc7af[41]](function(_0xb72cx10){var _0xb72cx11;if(_0xb72cx10){_0xb72cxa[_0xc7af[21]]= _0xb72cx10[_0xc7af[22]];_0xb72cxb[_0xc7af[23]]= _0xb72cxa[_0xc7af[24]];_0xb72cx11= _0xb72cx10[_0xc7af[25]]?Mustache[_0xc7af[26]](_0xb72cx10[_0xc7af[25]],_0xb72cxb):null}else {_0xb72cx11= _0xb72cxa[_0xc7af[24]]?Mustache[_0xc7af[26]](_0xb72cxa[_0xc7af[24]],_0xb72cxb)[_0xc7af[28]](/&/g,_0xc7af[33])[_0xc7af[28]](/</g,_0xc7af[32])[_0xc7af[28]](/>/g,_0xc7af[31])[_0xc7af[28]](/"/g,_0xc7af[30])[_0xc7af[28]](/'/g,_0xc7af[29])[_0xc7af[28]](/\n/g,_0xc7af[27]):null};var _0xb72cx12={subject:_0xb72cxa[_0xc7af[21]]|| null,from:[_0xb72cxf[_0xc7af[34]]],to:_0xb72cxa[_0xc7af[17]][_0xc7af[16]](_0xc7af[15]),cc:_0xb72cxa[_0xc7af[35]]?_0xb72cxa[_0xc7af[35]][_0xc7af[16]](_0xc7af[15]):[],html:_0xb72cx11,status:_0xc7af[36],auto:true,accountId:_0xb72cxf[_0xc7af[37]],accountName:_0xb72cxf[_0xc7af[38]]};process[_0xc7af[40]]({message:_0xc7af[39],doc:_0xb72cx12})})[_0xc7af[14]](function(_0xb72cxe){console[_0xc7af[13]](_0xb72cxe)})};Mail[_0xc7af[12]][_0xc7af[45]]= function(_0xb72cxa,_0xb72cxb){var _0xb72cxf;return MailAccount[_0xc7af[43]](_0xb72cxa[_0xc7af[17]])[_0xc7af[41]](function(_0xb72cx13){_0xb72cxf= _0xb72cx13;if(_0xb72cxa[_0xc7af[46]]){return Template[_0xc7af[43]](_0xb72cxa[_0xc7af[46]])}})[_0xc7af[41]](function(_0xb72cx10){var _0xb72cx11;if(_0xb72cx10){_0xb72cxa[_0xc7af[24]]= _0xb72cx10[_0xc7af[22]];_0xb72cxb[_0xc7af[23]]= _0xb72cxa[_0xc7af[42]];_0xb72cx11= _0xb72cx10[_0xc7af[25]]?Mustache[_0xc7af[26]](_0xb72cx10[_0xc7af[25]],_0xb72cxb):null}else {_0xb72cx11= _0xb72cxa[_0xc7af[42]]?Mustache[_0xc7af[26]](_0xb72cxa[_0xc7af[42]],_0xb72cxb)[_0xc7af[28]](/&/g,_0xc7af[33])[_0xc7af[28]](/</g,_0xc7af[32])[_0xc7af[28]](/>/g,_0xc7af[31])[_0xc7af[28]](/"/g,_0xc7af[30])[_0xc7af[28]](/'/g,_0xc7af[29])[_0xc7af[28]](/\n/g,_0xc7af[27]):null};var _0xb72cx12={subject:_0xb72cxa[_0xc7af[24]]|| null,from:[_0xb72cxf[_0xc7af[34]]],to:_0xb72cxa[_0xc7af[35]][_0xc7af[16]](_0xc7af[15]),cc:_0xb72cxa[_0xc7af[21]]?_0xb72cxa[_0xc7af[21]][_0xc7af[16]](_0xc7af[15]):[],html:_0xb72cx11,status:_0xc7af[36],auto:true,accountId:_0xb72cxf[_0xc7af[37]],accountName:_0xb72cxf[_0xc7af[38]]};process[_0xc7af[40]]({message:_0xc7af[39],doc:_0xb72cx12})})[_0xc7af[14]](function(_0xb72cxe){console[_0xc7af[13]](_0xb72cxe)})};Mail[_0xc7af[12]][_0xc7af[47]]= function(_0xb72cxa,_0xb72cxb){return MailAccount[_0xc7af[43]](_0xb72cxb[_0xc7af[44]])[_0xc7af[41]](function(_0xb72cx13){var _0xb72cx12={subject:_0xb72cxb[_0xc7af[22]]|| null,from:[_0xb72cx13[_0xc7af[34]]],fromId:_0xb72cxb[_0xc7af[48]],to:_0xb72cxa[_0xc7af[17]][_0xc7af[16]](_0xc7af[15]),text:_0xb72cxb[_0xc7af[49]][_0xc7af[28]](/&/g,_0xc7af[33])[_0xc7af[28]](/</g,_0xc7af[32])[_0xc7af[28]](/>/g,_0xc7af[31])[_0xc7af[28]](/"/g,_0xc7af[30])[_0xc7af[28]](/'/g,_0xc7af[29])[_0xc7af[28]](/\n/g,_0xc7af[27]),html:_0xb72cxb[_0xc7af[25]],status:_0xc7af[36],auto:true,accountId:_0xb72cx13[_0xc7af[37]],accountName:_0xb72cx13[_0xc7af[38]]};process[_0xc7af[40]]({message:_0xc7af[39],doc:_0xb72cx12})})[_0xc7af[14]](function(_0xb72cxe){console[_0xc7af[13]](_0xb72cxe)})};Mail[_0xc7af[12]][_0xc7af[50]]= function(_0xb72cxa,_0xb72cxb){var _0xb72cxf;return MailAccount[_0xc7af[43]](_0xb72cxb[_0xc7af[44]])[_0xc7af[41]](function(_0xb72cx13){_0xb72cxf= _0xb72cx13;return Template[_0xc7af[43]](_0xb72cxa[_0xc7af[17]])})[_0xc7af[41]](function(_0xb72cx10){var _0xb72cx12={status:_0xc7af[36],subject:_0xb72cx10[_0xc7af[22]],from:[_0xb72cxf[_0xc7af[34]]],to:_0xb72cxa[_0xc7af[35]][_0xc7af[16]](_0xc7af[15]),html:_0xb72cx10[_0xc7af[25]]?Mustache[_0xc7af[26]](_0xb72cx10[_0xc7af[25]],_0xb72cxb):null,auto:true,accountId:_0xb72cxf[_0xc7af[37]],accountName:_0xb72cxf[_0xc7af[38]]};process[_0xc7af[40]]({message:_0xc7af[39],doc:_0xb72cx12})})[_0xc7af[14]](function(_0xb72cxe){console[_0xc7af[10]](_0xb72cxe)})};Mail[_0xc7af[12]][_0xc7af[51]]= function(_0xb72cxa,_0xb72cxb){var _0xb72cxf;return MailAccount[_0xc7af[43]](_0xb72cxa[_0xc7af[17]])[_0xc7af[41]](function(_0xb72cx13){_0xb72cxf= _0xb72cx13;return Template[_0xc7af[43]](_0xb72cxa[_0xc7af[35]])})[_0xc7af[41]](function(_0xb72cx10){var _0xb72cx12={status:_0xc7af[36],subject:_0xb72cx10[_0xc7af[22]],from:[_0xb72cxf[_0xc7af[34]]],to:_0xb72cxa[_0xc7af[21]][_0xc7af[16]](_0xc7af[15]),html:_0xb72cx10[_0xc7af[25]]?Mustache[_0xc7af[26]](_0xb72cx10[_0xc7af[25]],_0xb72cxb):null,auto:true,accountId:_0xb72cxf[_0xc7af[37]],accountName:_0xb72cxf[_0xc7af[38]]};process[_0xc7af[40]]({message:_0xc7af[39],doc:_0xb72cx12})})[_0xc7af[14]](function(_0xb72cxe){console[_0xc7af[10]](_0xb72cxe)})};Mail[_0xc7af[12]][_0xc7af[52]]= function(_0xb72cxa,_0xb72cxb){return MailRoom[_0xc7af[19]]({status:_0xc7af[53],disposition:_0xb72cxa[_0xc7af[17]]|| null},{individualHooks:true,where:{id:_0xb72cxb[_0xc7af[18]]}})[_0xc7af[14]](function(_0xb72cxe){console[_0xc7af[13]](_0xb72cxe)})};module[_0xc7af[54]]= Mail
\ No newline at end of file