Built motion from commit b6cf875.|1.0.15
[motion.git] / server / config / triggers / mail.js
index 57f8bb7..cab2f73 100644 (file)
@@ -1 +1 @@
-var _0xc3a0=["\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","\x73\x65\x6E\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x74\x61\x67","\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","\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","\x63\x6C\x6F\x73\x65","\x43\x4C\x4F\x53\x45\x44","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x66\x69\x6E\x64\x4F\x6E\x65","\x65\x78\x70\x6F\x72\x74\x73"];const _=require(_0xc3a0[0]);const rp=require(_0xc3a0[1]);const Mustache=require(_0xc3a0[2]);const MailRoom=require(_0xc3a0[4])[_0xc3a0[3]];const Template=require(_0xc3a0[4])[_0xc3a0[5]];const MailMessage=require(_0xc3a0[4])[_0xc3a0[6]];const MailAccount=require(_0xc3a0[4])[_0xc3a0[7]];const MailServerOut=require(_0xc3a0[4])[_0xc3a0[8]];function Mail(){console[_0xc3a0[10]](_0xc3a0[9])}Mail[_0xc3a0[12]][_0xc3a0[11]]= function(_0x83afxa){sendTemplate(_0x83afxa)};Mail[_0xc3a0[12]][_0xc3a0[13]]= function(_0x83afxb,_0x83afxc,_0x83afxd,_0x83afxe){return MailRoom[_0xc3a0[20]]({tags:_0x83afxb[_0xc3a0[18]][_0xc3a0[17]](_0xc3a0[16])},{where:{id:_0x83afxc[_0xc3a0[19]]}})[_0xc3a0[15]](function(_0x83afxf){console[_0xc3a0[14]](_0x83afxf)})};Mail[_0xc3a0[12]][_0xc3a0[21]]= function(_0x83afxb,_0x83afxc){var _0x83afx10={method:_0x83afxb[_0xc3a0[18]],uri:_0x83afxb[_0xc3a0[22]],json:true};switch(_0x83afxb[_0xc3a0[18]]){case _0xc3a0[24]:_0x83afx10[_0xc3a0[23]]= _0x83afxc;break;case _0xc3a0[26]:_0x83afx10[_0xc3a0[25]]= _0x83afxc;break;default:};return rp(_0x83afx10)[_0xc3a0[15]](function(_0x83afxf){console[_0xc3a0[14]](_0x83afxf)})};Mail[_0xc3a0[12]][_0xc3a0[27]]= function(_0x83afxb,_0x83afxc){return MailAccount[_0xc3a0[43]](_0x83afxc[_0xc3a0[42]])[_0xc3a0[41]](function(_0x83afx11){return MailMessage[_0xc3a0[40]]({subject:_0x83afxb[_0xc3a0[28]]|| null,from:[_0x83afx11[_0xc3a0[29]]],to:_0x83afxb[_0xc3a0[18]][_0xc3a0[17]](_0xc3a0[16]),cc:_0x83afxb[_0xc3a0[22]]?_0x83afxb[_0xc3a0[22]][_0xc3a0[17]](_0xc3a0[16]):[],html:_0x83afxb[_0xc3a0[30]]?Mustache[_0xc3a0[38]](_0x83afxb[_0xc3a0[30]],_0x83afxc)[_0xc3a0[32]](/&/g,_0xc3a0[37])[_0xc3a0[32]](/</g,_0xc3a0[36])[_0xc3a0[32]](/>/g,_0xc3a0[35])[_0xc3a0[32]](/"/g,_0xc3a0[34])[_0xc3a0[32]](/'/g,_0xc3a0[33])[_0xc3a0[32]](/\n/g,_0xc3a0[31]):null,status:_0xc3a0[39]})})[_0xc3a0[15]](function(_0x83afxf){console[_0xc3a0[14]](_0x83afxf)})};Mail[_0xc3a0[12]][_0xc3a0[44]]= function(_0x83afxb,_0x83afxc){return MailAccount[_0xc3a0[43]](_0x83afxc[_0xc3a0[42]])[_0xc3a0[41]](function(_0x83afx11){return MailMessage[_0xc3a0[40]]({subject:_0x83afxc[_0xc3a0[45]]|| null,from:[_0x83afx11[_0xc3a0[29]]],fromId:_0x83afxc[_0xc3a0[46]],to:_0x83afxb[_0xc3a0[18]][_0xc3a0[17]](_0xc3a0[16]),text:_0x83afxc[_0xc3a0[47]][_0xc3a0[32]](/&/g,_0xc3a0[37])[_0xc3a0[32]](/</g,_0xc3a0[36])[_0xc3a0[32]](/>/g,_0xc3a0[35])[_0xc3a0[32]](/"/g,_0xc3a0[34])[_0xc3a0[32]](/'/g,_0xc3a0[33])[_0xc3a0[32]](/\n/g,_0xc3a0[31]),html:_0x83afxc[_0xc3a0[48]],status:_0xc3a0[39]})})[_0xc3a0[15]](function(_0x83afxf){console[_0xc3a0[14]](_0x83afxf)})};Mail[_0xc3a0[12]][_0xc3a0[49]]= function(_0x83afxb,_0x83afxc){var _0x83afx12;return MailAccount[_0xc3a0[43]](_0x83afxc[_0xc3a0[42]])[_0xc3a0[41]](function(_0x83afx11){_0x83afx12= _0x83afx11;return Template[_0xc3a0[43]](_0x83afxb[_0xc3a0[18]])})[_0xc3a0[41]](function(_0x83afx13){return MailMessage[_0xc3a0[40]]({status:_0xc3a0[39],subject:_0x83afx13[_0xc3a0[45]],from:[_0x83afx12[_0xc3a0[29]]],to:_0x83afxb[_0xc3a0[22]][_0xc3a0[17]](_0xc3a0[16]),html:_0x83afx13[_0xc3a0[48]]?Mustache[_0xc3a0[38]](_0x83afx13[_0xc3a0[48]],_0x83afxc):null})[_0xc3a0[15]](function(_0x83afxf){console[_0xc3a0[10]](_0x83afxf)})})};Mail[_0xc3a0[12]][_0xc3a0[50]]= function(_0x83afxb,_0x83afxc){return MailRoom[_0xc3a0[20]]({status:_0xc3a0[51],disposition:_0x83afxb[_0xc3a0[18]]|| null},{individualHooks:true,where:{id:_0x83afxc[_0xc3a0[19]]}})[_0xc3a0[15]](function(_0x83afxf){console[_0xc3a0[14]](_0x83afxf)})};function sendTemplate(_0x83afxb){var _0x83afx15;return MailServerOut[_0xc3a0[53]]({where:{service:true}})[_0xc3a0[41]](function(_0x83afx16){_0x83afx15= _0x83afx16;return Template[_0xc3a0[43]](Number(_0x83afxb[_0xc3a0[18]]),{include:[{all:true}]})})[_0xc3a0[41]](function(_0x83afx13){return MailMessage[_0xc3a0[40]]({status:_0xc3a0[39],subject:_0x83afx13[_0xc3a0[45]],from:[_0x83afx15[_0xc3a0[52]]],to:_0x83afxb[_0xc3a0[28]][_0xc3a0[17]](_0xc3a0[16]),cc:_0x83afxb[_0xc3a0[30]]?_0x83afxb[_0xc3a0[30]][_0xc3a0[17]](_0xc3a0[16]):[],html:_0x83afx13[_0xc3a0[48]]|| null,text:_0x83afx13[_0xc3a0[47]]|| null})[_0xc3a0[15]](function(_0x83afxf){console[_0xc3a0[10]](_0x83afxf)})})}module[_0xc3a0[54]]= Mail
\ No newline at end of file
+var _0x1b80=["\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","\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","\x64\x61\x74\x61\x36","\x66\x6F\x72\x77\x61\x72\x64","\x66\x72\x6F\x6D\x49\x64","\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(_0x1b80[0]);const rp=require(_0x1b80[1]);const Mustache=require(_0x1b80[2]);const MailRoom=require(_0x1b80[4])[_0x1b80[3]];const Template=require(_0x1b80[4])[_0x1b80[5]];const MailMessage=require(_0x1b80[4])[_0x1b80[6]];const MailAccount=require(_0x1b80[4])[_0x1b80[7]];const MailServerOut=require(_0x1b80[4])[_0x1b80[8]];function Mail(){console[_0x1b80[10]](_0x1b80[9])}Mail[_0x1b80[12]][_0x1b80[11]]= function(_0x31a3xa,_0x31a3xb,_0x31a3xc,_0x31a3xd){return MailRoom[_0x1b80[19]]({tags:_0x31a3xa[_0x1b80[17]][_0x1b80[16]](_0x1b80[15])},{where:{id:_0x31a3xb[_0x1b80[18]]}})[_0x1b80[14]](function(_0x31a3xe){console[_0x1b80[13]](_0x31a3xe)})};Mail[_0x1b80[12]][_0x1b80[20]]= function(_0x31a3xa,_0x31a3xb){var _0x31a3xf;return MailAccount[_0x1b80[44]](_0x31a3xb[_0x1b80[45]])[_0x1b80[42]](function(_0x31a3x13){_0x31a3xf= _0x31a3x13;if(_0x31a3xa[_0x1b80[43]]){return Template[_0x1b80[44]](_0x31a3xa[_0x1b80[43]])}})[_0x1b80[42]](function(_0x31a3x10){var _0x31a3x11;if(_0x31a3x10){_0x31a3xa[_0x1b80[21]]= _0x31a3x10[_0x1b80[22]];_0x31a3xb[_0x1b80[23]]= _0x31a3xa[_0x1b80[24]]|| _0x31a3xb[_0x1b80[25]]|| _0x31a3xb[_0x1b80[26]];_0x31a3x11= _0x31a3x10[_0x1b80[25]]?Mustache[_0x1b80[27]](_0x31a3x10[_0x1b80[25]],_0x31a3xb):null}else {_0x31a3x11= _0x31a3xa[_0x1b80[24]]?Mustache[_0x1b80[27]](_0x31a3xa[_0x1b80[24]],_0x31a3xb)[_0x1b80[29]](/&/g,_0x1b80[34])[_0x1b80[29]](/</g,_0x1b80[33])[_0x1b80[29]](/>/g,_0x1b80[32])[_0x1b80[29]](/"/g,_0x1b80[31])[_0x1b80[29]](/'/g,_0x1b80[30])[_0x1b80[29]](/\n/g,_0x1b80[28]):null};var _0x31a3x12={subject:_0x31a3xa[_0x1b80[21]]|| null,from:[_0x31a3xf[_0x1b80[35]]],to:_0x31a3xa[_0x1b80[17]][_0x1b80[16]](_0x1b80[15]),cc:_0x31a3xa[_0x1b80[36]]?_0x31a3xa[_0x1b80[36]][_0x1b80[16]](_0x1b80[15]):[],html:_0x31a3x11,status:_0x1b80[37],auto:true,accountId:_0x31a3xf[_0x1b80[38]],accountName:_0x31a3xf[_0x1b80[39]]};process[_0x1b80[41]]({message:_0x1b80[40],doc:_0x31a3x12})})[_0x1b80[14]](function(_0x31a3xe){console[_0x1b80[13]](_0x31a3xe)})};Mail[_0x1b80[12]][_0x1b80[46]]= function(_0x31a3xa,_0x31a3xb){var _0x31a3xf;return MailAccount[_0x1b80[44]](_0x31a3xa[_0x1b80[17]])[_0x1b80[42]](function(_0x31a3x13){_0x31a3xf= _0x31a3x13;if(_0x31a3xa[_0x1b80[47]]){return Template[_0x1b80[44]](_0x31a3xa[_0x1b80[47]])}})[_0x1b80[42]](function(_0x31a3x10){var _0x31a3x11;if(_0x31a3x10){_0x31a3xa[_0x1b80[24]]= _0x31a3x10[_0x1b80[22]];_0x31a3xb[_0x1b80[23]]= _0x31a3xa[_0x1b80[43]]|| _0x31a3xb[_0x1b80[25]]|| _0x31a3xb[_0x1b80[26]];_0x31a3x11= _0x31a3x10[_0x1b80[25]]?Mustache[_0x1b80[27]](_0x31a3x10[_0x1b80[25]],_0x31a3xb):null}else {_0x31a3x11= _0x31a3xa[_0x1b80[43]]?Mustache[_0x1b80[27]](_0x31a3xa[_0x1b80[43]],_0x31a3xb)[_0x1b80[29]](/&/g,_0x1b80[34])[_0x1b80[29]](/</g,_0x1b80[33])[_0x1b80[29]](/>/g,_0x1b80[32])[_0x1b80[29]](/"/g,_0x1b80[31])[_0x1b80[29]](/'/g,_0x1b80[30])[_0x1b80[29]](/\n/g,_0x1b80[28]):null};var _0x31a3x12={subject:_0x31a3xa[_0x1b80[24]]|| null,from:[_0x31a3xf[_0x1b80[35]]],to:_0x31a3xa[_0x1b80[36]][_0x1b80[16]](_0x1b80[15]),cc:_0x31a3xa[_0x1b80[21]]?_0x31a3xa[_0x1b80[21]][_0x1b80[16]](_0x1b80[15]):[],html:_0x31a3x11,status:_0x1b80[37],auto:true,accountId:_0x31a3xf[_0x1b80[38]],accountName:_0x31a3xf[_0x1b80[39]]};process[_0x1b80[41]]({message:_0x1b80[40],doc:_0x31a3x12})})[_0x1b80[14]](function(_0x31a3xe){console[_0x1b80[13]](_0x31a3xe)})};Mail[_0x1b80[12]][_0x1b80[48]]= function(_0x31a3xa,_0x31a3xb){return MailAccount[_0x1b80[44]](_0x31a3xb[_0x1b80[45]])[_0x1b80[42]](function(_0x31a3x13){var _0x31a3x12={subject:_0x31a3xb[_0x1b80[22]]|| null,from:[_0x31a3x13[_0x1b80[35]]],fromId:_0x31a3xb[_0x1b80[49]],to:_0x31a3xa[_0x1b80[17]][_0x1b80[16]](_0x1b80[15]),text:_0x31a3xb[_0x1b80[26]][_0x1b80[29]](/&/g,_0x1b80[34])[_0x1b80[29]](/</g,_0x1b80[33])[_0x1b80[29]](/>/g,_0x1b80[32])[_0x1b80[29]](/"/g,_0x1b80[31])[_0x1b80[29]](/'/g,_0x1b80[30])[_0x1b80[29]](/\n/g,_0x1b80[28]),html:_0x31a3xb[_0x1b80[25]]|| _0x31a3xb[_0x1b80[26]],status:_0x1b80[37],auto:true,accountId:_0x31a3x13[_0x1b80[38]],accountName:_0x31a3x13[_0x1b80[39]]};process[_0x1b80[41]]({message:_0x1b80[40],doc:_0x31a3x12})})[_0x1b80[14]](function(_0x31a3xe){console[_0x1b80[13]](_0x31a3xe)})};Mail[_0x1b80[12]][_0x1b80[50]]= function(_0x31a3xa,_0x31a3xb){var _0x31a3xf;return MailAccount[_0x1b80[44]](_0x31a3xb[_0x1b80[45]])[_0x1b80[42]](function(_0x31a3x13){_0x31a3xf= _0x31a3x13;return Template[_0x1b80[44]](_0x31a3xa[_0x1b80[17]])})[_0x1b80[42]](function(_0x31a3x10){_0x31a3xb[_0x1b80[23]]= _0x31a3xb[_0x1b80[25]]|| _0x31a3xb[_0x1b80[26]];var _0x31a3x12={status:_0x1b80[37],subject:_0x31a3x10[_0x1b80[22]],from:[_0x31a3xf[_0x1b80[35]]],to:_0x31a3xa[_0x1b80[36]][_0x1b80[16]](_0x1b80[15]),html:_0x31a3x10[_0x1b80[25]]?Mustache[_0x1b80[27]](_0x31a3x10[_0x1b80[25]],_0x31a3xb):null,auto:true,accountId:_0x31a3xf[_0x1b80[38]],accountName:_0x31a3xf[_0x1b80[39]]};process[_0x1b80[41]]({message:_0x1b80[40],doc:_0x31a3x12})})[_0x1b80[14]](function(_0x31a3xe){console[_0x1b80[10]](_0x31a3xe)})};Mail[_0x1b80[12]][_0x1b80[51]]= function(_0x31a3xa,_0x31a3xb){var _0x31a3xf;return MailAccount[_0x1b80[44]](_0x31a3xa[_0x1b80[17]])[_0x1b80[42]](function(_0x31a3x13){_0x31a3xf= _0x31a3x13;return Template[_0x1b80[44]](_0x31a3xa[_0x1b80[36]])})[_0x1b80[42]](function(_0x31a3x10){var _0x31a3x12={status:_0x1b80[37],subject:_0x31a3x10[_0x1b80[22]],from:[_0x31a3xf[_0x1b80[35]]],to:_0x31a3xa[_0x1b80[21]][_0x1b80[16]](_0x1b80[15]),html:_0x31a3x10[_0x1b80[25]]?Mustache[_0x1b80[27]](_0x31a3x10[_0x1b80[25]],_0x31a3xb):null,auto:true,accountId:_0x31a3xf[_0x1b80[38]],accountName:_0x31a3xf[_0x1b80[39]]};process[_0x1b80[41]]({message:_0x1b80[40],doc:_0x31a3x12})})[_0x1b80[14]](function(_0x31a3xe){console[_0x1b80[10]](_0x31a3xe)})};Mail[_0x1b80[12]][_0x1b80[52]]= function(_0x31a3xa,_0x31a3xb){return MailRoom[_0x1b80[19]]({status:_0x1b80[53],disposition:_0x31a3xa[_0x1b80[17]]|| null},{individualHooks:true,where:{id:_0x31a3xb[_0x1b80[18]]}})[_0x1b80[14]](function(_0x31a3xe){console[_0x1b80[13]](_0x31a3xe)})};module[_0x1b80[54]]= Mail
\ No newline at end of file