Built motion from commit 945d615.|1.0.13
[motion.git] / server / config / triggers / mail.js
index 2d85418..a4df0bf 100644 (file)
@@ -1 +1 @@
-var _0xe50e=["\x6C\x6F\x64\x61\x73\x68","\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","\x54\x65\x6D\x70\x6C\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x53\x65\x72\x76\x65\x72\x4F\x75\x74","\x63\x61\x74\x63\x68","\x53\x45\x4E\x44\x49\x4E\x47","\x73\x75\x62\x6A\x65\x63\x74","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x3B","\x73\x70\x6C\x69\x74","\x64\x61\x74\x61\x33","\x64\x61\x74\x61\x34","\x68\x74\x6D\x6C","\x74\x65\x78\x74","\x63\x72\x65\x61\x74\x65","\x74\x68\x65\x6E","\x64\x61\x74\x61\x31","\x66\x69\x6E\x64\x42\x79\x49\x64","\x66\x69\x6E\x64\x4F\x6E\x65","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xe50e[0]);function Mail(){console[_0xe50e[2]](_0xe50e[1])}Mail[_0xe50e[4]][_0xe50e[3]]= function(_0xe52dx3){sendTemplate(_0xe52dx3)};function sendTemplate(_0xe52dx5){var _0xe52dx6=require(_0xe50e[6])[_0xe50e[5]];var _0xe52dx7=require(_0xe50e[6])[_0xe50e[7]];var _0xe52dx8=require(_0xe50e[6])[_0xe50e[8]];var _0xe52dx9;return _0xe52dx8[_0xe50e[23]]({where:{service:true}})[_0xe50e[20]](function(_0xe52dxc){_0xe52dx9= _0xe52dxc;return _0xe52dx6[_0xe50e[22]](Number(_0xe52dx5[_0xe50e[21]]),{include:[{all:true}]})})[_0xe50e[20]](function(_0xe52dxa){return _0xe52dx7[_0xe50e[19]]({status:_0xe50e[10],subject:_0xe52dxa[_0xe50e[11]],from:[_0xe52dx9[_0xe50e[12]]],to:_0xe52dx5[_0xe50e[15]][_0xe50e[14]](_0xe50e[13]),cc:_0xe52dx5[_0xe50e[16]]?_0xe52dx5[_0xe50e[16]][_0xe50e[14]](_0xe50e[13]):[],html:_0xe52dxa[_0xe50e[17]]|| null,text:_0xe52dxa[_0xe50e[18]]|| null})[_0xe50e[9]](function(_0xe52dxb){console[_0xe50e[2]](_0xe52dxb)})})}module[_0xe50e[24]]= Mail
\ No newline at end of file
+var _0x3a20=["\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(_0x3a20[0]);const rp=require(_0x3a20[1]);const Mustache=require(_0x3a20[2]);const MailRoom=require(_0x3a20[4])[_0x3a20[3]];const Template=require(_0x3a20[4])[_0x3a20[5]];const MailMessage=require(_0x3a20[4])[_0x3a20[6]];const MailAccount=require(_0x3a20[4])[_0x3a20[7]];const MailServerOut=require(_0x3a20[4])[_0x3a20[8]];function Mail(){console[_0x3a20[10]](_0x3a20[9])}Mail[_0x3a20[12]][_0x3a20[11]]= function(_0x466fxa,_0x466fxb,_0x466fxc,_0x466fxd){return MailRoom[_0x3a20[19]]({tags:_0x466fxa[_0x3a20[17]][_0x3a20[16]](_0x3a20[15])},{where:{id:_0x466fxb[_0x3a20[18]]}})[_0x3a20[14]](function(_0x466fxe){console[_0x3a20[13]](_0x466fxe)})};Mail[_0x3a20[12]][_0x3a20[20]]= function(_0x466fxa,_0x466fxb){var _0x466fxf;return MailAccount[_0x3a20[44]](_0x466fxb[_0x3a20[45]])[_0x3a20[42]](function(_0x466fx13){_0x466fxf= _0x466fx13;if(_0x466fxa[_0x3a20[43]]){return Template[_0x3a20[44]](_0x466fxa[_0x3a20[43]])}})[_0x3a20[42]](function(_0x466fx10){var _0x466fx11;if(_0x466fx10){_0x466fxa[_0x3a20[21]]= _0x466fx10[_0x3a20[22]];_0x466fxb[_0x3a20[23]]= _0x466fxa[_0x3a20[24]]|| _0x466fxb[_0x3a20[25]]|| _0x466fxb[_0x3a20[26]];_0x466fx11= _0x466fx10[_0x3a20[25]]?Mustache[_0x3a20[27]](_0x466fx10[_0x3a20[25]],_0x466fxb):null}else {_0x466fx11= _0x466fxa[_0x3a20[24]]?Mustache[_0x3a20[27]](_0x466fxa[_0x3a20[24]],_0x466fxb)[_0x3a20[29]](/&/g,_0x3a20[34])[_0x3a20[29]](/</g,_0x3a20[33])[_0x3a20[29]](/>/g,_0x3a20[32])[_0x3a20[29]](/"/g,_0x3a20[31])[_0x3a20[29]](/'/g,_0x3a20[30])[_0x3a20[29]](/\n/g,_0x3a20[28]):null};var _0x466fx12={subject:_0x466fxa[_0x3a20[21]]|| null,from:[_0x466fxf[_0x3a20[35]]],to:_0x466fxa[_0x3a20[17]][_0x3a20[16]](_0x3a20[15]),cc:_0x466fxa[_0x3a20[36]]?_0x466fxa[_0x3a20[36]][_0x3a20[16]](_0x3a20[15]):[],html:_0x466fx11,status:_0x3a20[37],auto:true,accountId:_0x466fxf[_0x3a20[38]],accountName:_0x466fxf[_0x3a20[39]]};process[_0x3a20[41]]({message:_0x3a20[40],doc:_0x466fx12})})[_0x3a20[14]](function(_0x466fxe){console[_0x3a20[13]](_0x466fxe)})};Mail[_0x3a20[12]][_0x3a20[46]]= function(_0x466fxa,_0x466fxb){var _0x466fxf;return MailAccount[_0x3a20[44]](_0x466fxa[_0x3a20[17]])[_0x3a20[42]](function(_0x466fx13){_0x466fxf= _0x466fx13;if(_0x466fxa[_0x3a20[47]]){return Template[_0x3a20[44]](_0x466fxa[_0x3a20[47]])}})[_0x3a20[42]](function(_0x466fx10){var _0x466fx11;if(_0x466fx10){_0x466fxa[_0x3a20[24]]= _0x466fx10[_0x3a20[22]];_0x466fxb[_0x3a20[23]]= _0x466fxa[_0x3a20[43]]|| _0x466fxb[_0x3a20[25]]|| _0x466fxb[_0x3a20[26]];_0x466fx11= _0x466fx10[_0x3a20[25]]?Mustache[_0x3a20[27]](_0x466fx10[_0x3a20[25]],_0x466fxb):null}else {_0x466fx11= _0x466fxa[_0x3a20[43]]?Mustache[_0x3a20[27]](_0x466fxa[_0x3a20[43]],_0x466fxb)[_0x3a20[29]](/&/g,_0x3a20[34])[_0x3a20[29]](/</g,_0x3a20[33])[_0x3a20[29]](/>/g,_0x3a20[32])[_0x3a20[29]](/"/g,_0x3a20[31])[_0x3a20[29]](/'/g,_0x3a20[30])[_0x3a20[29]](/\n/g,_0x3a20[28]):null};var _0x466fx12={subject:_0x466fxa[_0x3a20[24]]|| null,from:[_0x466fxf[_0x3a20[35]]],to:_0x466fxa[_0x3a20[36]][_0x3a20[16]](_0x3a20[15]),cc:_0x466fxa[_0x3a20[21]]?_0x466fxa[_0x3a20[21]][_0x3a20[16]](_0x3a20[15]):[],html:_0x466fx11,status:_0x3a20[37],auto:true,accountId:_0x466fxf[_0x3a20[38]],accountName:_0x466fxf[_0x3a20[39]]};process[_0x3a20[41]]({message:_0x3a20[40],doc:_0x466fx12})})[_0x3a20[14]](function(_0x466fxe){console[_0x3a20[13]](_0x466fxe)})};Mail[_0x3a20[12]][_0x3a20[48]]= function(_0x466fxa,_0x466fxb){return MailAccount[_0x3a20[44]](_0x466fxb[_0x3a20[45]])[_0x3a20[42]](function(_0x466fx13){var _0x466fx12={subject:_0x466fxb[_0x3a20[22]]|| null,from:[_0x466fx13[_0x3a20[35]]],fromId:_0x466fxb[_0x3a20[49]],to:_0x466fxa[_0x3a20[17]][_0x3a20[16]](_0x3a20[15]),text:_0x466fxb[_0x3a20[26]][_0x3a20[29]](/&/g,_0x3a20[34])[_0x3a20[29]](/</g,_0x3a20[33])[_0x3a20[29]](/>/g,_0x3a20[32])[_0x3a20[29]](/"/g,_0x3a20[31])[_0x3a20[29]](/'/g,_0x3a20[30])[_0x3a20[29]](/\n/g,_0x3a20[28]),html:_0x466fxb[_0x3a20[25]]|| _0x466fxb[_0x3a20[26]],status:_0x3a20[37],auto:true,accountId:_0x466fx13[_0x3a20[38]],accountName:_0x466fx13[_0x3a20[39]]};process[_0x3a20[41]]({message:_0x3a20[40],doc:_0x466fx12})})[_0x3a20[14]](function(_0x466fxe){console[_0x3a20[13]](_0x466fxe)})};Mail[_0x3a20[12]][_0x3a20[50]]= function(_0x466fxa,_0x466fxb){var _0x466fxf;return MailAccount[_0x3a20[44]](_0x466fxb[_0x3a20[45]])[_0x3a20[42]](function(_0x466fx13){_0x466fxf= _0x466fx13;return Template[_0x3a20[44]](_0x466fxa[_0x3a20[17]])})[_0x3a20[42]](function(_0x466fx10){_0x466fxb[_0x3a20[23]]= _0x466fxb[_0x3a20[25]]|| _0x466fxb[_0x3a20[26]];var _0x466fx12={status:_0x3a20[37],subject:_0x466fx10[_0x3a20[22]],from:[_0x466fxf[_0x3a20[35]]],to:_0x466fxa[_0x3a20[36]][_0x3a20[16]](_0x3a20[15]),html:_0x466fx10[_0x3a20[25]]?Mustache[_0x3a20[27]](_0x466fx10[_0x3a20[25]],_0x466fxb):null,auto:true,accountId:_0x466fxf[_0x3a20[38]],accountName:_0x466fxf[_0x3a20[39]]};process[_0x3a20[41]]({message:_0x3a20[40],doc:_0x466fx12})})[_0x3a20[14]](function(_0x466fxe){console[_0x3a20[10]](_0x466fxe)})};Mail[_0x3a20[12]][_0x3a20[51]]= function(_0x466fxa,_0x466fxb){var _0x466fxf;return MailAccount[_0x3a20[44]](_0x466fxa[_0x3a20[17]])[_0x3a20[42]](function(_0x466fx13){_0x466fxf= _0x466fx13;return Template[_0x3a20[44]](_0x466fxa[_0x3a20[36]])})[_0x3a20[42]](function(_0x466fx10){var _0x466fx12={status:_0x3a20[37],subject:_0x466fx10[_0x3a20[22]],from:[_0x466fxf[_0x3a20[35]]],to:_0x466fxa[_0x3a20[21]][_0x3a20[16]](_0x3a20[15]),html:_0x466fx10[_0x3a20[25]]?Mustache[_0x3a20[27]](_0x466fx10[_0x3a20[25]],_0x466fxb):null,auto:true,accountId:_0x466fxf[_0x3a20[38]],accountName:_0x466fxf[_0x3a20[39]]};process[_0x3a20[41]]({message:_0x3a20[40],doc:_0x466fx12})})[_0x3a20[14]](function(_0x466fxe){console[_0x3a20[10]](_0x466fxe)})};Mail[_0x3a20[12]][_0x3a20[52]]= function(_0x466fxa,_0x466fxb){return MailRoom[_0x3a20[19]]({status:_0x3a20[53],disposition:_0x466fxa[_0x3a20[17]]|| null},{individualHooks:true,where:{id:_0x466fxb[_0x3a20[18]]}})[_0x3a20[14]](function(_0x466fxe){console[_0x3a20[13]](_0x466fxe)})};module[_0x3a20[54]]= Mail
\ No newline at end of file