Built motion from commit 62eaa14.|1.0.10
[motion.git] / server / config / triggers / mail.js
index 3d5d95d..84b7436 100644 (file)
@@ -1 +1 @@
-var _0xfef7=["\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(_0xfef7[0]);const rp=require(_0xfef7[1]);const Mustache=require(_0xfef7[2]);const MailRoom=require(_0xfef7[4])[_0xfef7[3]];const Template=require(_0xfef7[4])[_0xfef7[5]];const MailMessage=require(_0xfef7[4])[_0xfef7[6]];const MailAccount=require(_0xfef7[4])[_0xfef7[7]];const MailServerOut=require(_0xfef7[4])[_0xfef7[8]];function Mail(){console[_0xfef7[10]](_0xfef7[9])}Mail[_0xfef7[12]][_0xfef7[11]]= function(_0x6e80xa,_0x6e80xb,_0x6e80xc,_0x6e80xd){return MailRoom[_0xfef7[19]]({tags:_0x6e80xa[_0xfef7[17]][_0xfef7[16]](_0xfef7[15])},{where:{id:_0x6e80xb[_0xfef7[18]]}})[_0xfef7[14]](function(_0x6e80xe){console[_0xfef7[13]](_0x6e80xe)})};Mail[_0xfef7[12]][_0xfef7[20]]= function(_0x6e80xa,_0x6e80xb){var _0x6e80xf={method:_0x6e80xa[_0xfef7[17]],uri:_0x6e80xa[_0xfef7[21]],json:true};switch(_0x6e80xa[_0xfef7[17]]){case _0xfef7[23]:_0x6e80xf[_0xfef7[22]]= _0x6e80xb;break;case _0xfef7[25]:_0x6e80xf[_0xfef7[24]]= _0x6e80xb;break;default:};return rp(_0x6e80xf)[_0xfef7[14]](function(_0x6e80xe){console[_0xfef7[13]](_0x6e80xe)})};Mail[_0xfef7[12]][_0xfef7[26]]= function(_0x6e80xa,_0x6e80xb){return MailAccount[_0xfef7[44]](_0x6e80xb[_0xfef7[43]])[_0xfef7[42]](function(_0x6e80x10){return MailMessage[_0xfef7[41]]({subject:_0x6e80xa[_0xfef7[27]]|| null,from:[_0x6e80x10[_0xfef7[28]]],to:_0x6e80xa[_0xfef7[17]][_0xfef7[16]](_0xfef7[15]),cc:_0x6e80xa[_0xfef7[21]]?_0x6e80xa[_0xfef7[21]][_0xfef7[16]](_0xfef7[15]):[],html:_0x6e80xa[_0xfef7[29]]?Mustache[_0xfef7[37]](_0x6e80xa[_0xfef7[29]],_0x6e80xb)[_0xfef7[31]](/&/g,_0xfef7[36])[_0xfef7[31]](/</g,_0xfef7[35])[_0xfef7[31]](/>/g,_0xfef7[34])[_0xfef7[31]](/"/g,_0xfef7[33])[_0xfef7[31]](/'/g,_0xfef7[32])[_0xfef7[31]](/\n/g,_0xfef7[30]):null,status:_0xfef7[38],auto:true,accountId:_0x6e80x10[_0xfef7[39]],accountName:_0x6e80x10[_0xfef7[40]]})})[_0xfef7[14]](function(_0x6e80xe){console[_0xfef7[13]](_0x6e80xe)})};Mail[_0xfef7[12]][_0xfef7[45]]= function(_0x6e80xa,_0x6e80xb){return MailAccount[_0xfef7[44]](_0x6e80xb[_0xfef7[43]])[_0xfef7[42]](function(_0x6e80x10){return MailMessage[_0xfef7[41]]({subject:_0x6e80xb[_0xfef7[46]]|| null,from:[_0x6e80x10[_0xfef7[28]]],fromId:_0x6e80xb[_0xfef7[47]],to:_0x6e80xa[_0xfef7[17]][_0xfef7[16]](_0xfef7[15]),text:_0x6e80xb[_0xfef7[48]][_0xfef7[31]](/&/g,_0xfef7[36])[_0xfef7[31]](/</g,_0xfef7[35])[_0xfef7[31]](/>/g,_0xfef7[34])[_0xfef7[31]](/"/g,_0xfef7[33])[_0xfef7[31]](/'/g,_0xfef7[32])[_0xfef7[31]](/\n/g,_0xfef7[30]),html:_0x6e80xb[_0xfef7[49]],status:_0xfef7[38],auto:true,accountId:_0x6e80x10[_0xfef7[39]],accountName:_0x6e80x10[_0xfef7[40]]})})[_0xfef7[14]](function(_0x6e80xe){console[_0xfef7[13]](_0x6e80xe)})};Mail[_0xfef7[12]][_0xfef7[50]]= function(_0x6e80xa,_0x6e80xb){var _0x6e80x11;return MailAccount[_0xfef7[44]](_0x6e80xb[_0xfef7[43]])[_0xfef7[42]](function(_0x6e80x10){_0x6e80x11= _0x6e80x10;return Template[_0xfef7[44]](_0x6e80xa[_0xfef7[17]])})[_0xfef7[42]](function(_0x6e80x12){return MailMessage[_0xfef7[41]]({status:_0xfef7[38],subject:_0x6e80x12[_0xfef7[46]],from:[_0x6e80x11[_0xfef7[28]]],to:_0x6e80xa[_0xfef7[21]][_0xfef7[16]](_0xfef7[15]),html:_0x6e80x12[_0xfef7[49]]?Mustache[_0xfef7[37]](_0x6e80x12[_0xfef7[49]],_0x6e80xb):null,auto:true,accountId:_0x6e80x11[_0xfef7[39]],accountName:_0x6e80x11[_0xfef7[40]]})[_0xfef7[14]](function(_0x6e80xe){console[_0xfef7[10]](_0x6e80xe)})})};Mail[_0xfef7[12]][_0xfef7[51]]= function(_0x6e80xa,_0x6e80xb){var _0x6e80x11;return MailAccount[_0xfef7[44]](_0x6e80xa[_0xfef7[17]])[_0xfef7[42]](function(_0x6e80x10){_0x6e80x11= _0x6e80x10;return Template[_0xfef7[44]](_0x6e80xa[_0xfef7[21]])})[_0xfef7[42]](function(_0x6e80x12){return MailMessage[_0xfef7[41]]({status:_0xfef7[38],subject:_0x6e80x12[_0xfef7[46]],from:[_0x6e80x11[_0xfef7[28]]],to:_0x6e80xa[_0xfef7[27]][_0xfef7[16]](_0xfef7[15]),html:_0x6e80x12[_0xfef7[49]]?Mustache[_0xfef7[37]](_0x6e80x12[_0xfef7[49]],_0x6e80xb):null,auto:true,accountId:_0x6e80x11[_0xfef7[39]],accountName:_0x6e80x11[_0xfef7[40]]})[_0xfef7[14]](function(_0x6e80xe){console[_0xfef7[10]](_0x6e80xe)})})};Mail[_0xfef7[12]][_0xfef7[52]]= function(_0x6e80xa,_0x6e80xb){return MailRoom[_0xfef7[19]]({status:_0xfef7[53],disposition:_0x6e80xa[_0xfef7[17]]|| null},{individualHooks:true,where:{id:_0x6e80xb[_0xfef7[18]]}})[_0xfef7[14]](function(_0x6e80xe){console[_0xfef7[13]](_0x6e80xe)})};module[_0xfef7[54]]= Mail
\ No newline at end of file
+var _0xc95c=["\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(_0xc95c[0]);const rp=require(_0xc95c[1]);const Mustache=require(_0xc95c[2]);const MailRoom=require(_0xc95c[4])[_0xc95c[3]];const Template=require(_0xc95c[4])[_0xc95c[5]];const MailMessage=require(_0xc95c[4])[_0xc95c[6]];const MailAccount=require(_0xc95c[4])[_0xc95c[7]];const MailServerOut=require(_0xc95c[4])[_0xc95c[8]];function Mail(){console[_0xc95c[10]](_0xc95c[9])}Mail[_0xc95c[12]][_0xc95c[11]]= function(_0x5751xa,_0x5751xb,_0x5751xc,_0x5751xd){return MailRoom[_0xc95c[19]]({tags:_0x5751xa[_0xc95c[17]][_0xc95c[16]](_0xc95c[15])},{where:{id:_0x5751xb[_0xc95c[18]]}})[_0xc95c[14]](function(_0x5751xe){console[_0xc95c[13]](_0x5751xe)})};Mail[_0xc95c[12]][_0xc95c[20]]= function(_0x5751xa,_0x5751xb){var _0x5751xf;return MailAccount[_0xc95c[43]](_0x5751xb[_0xc95c[44]])[_0xc95c[41]](function(_0x5751x13){_0x5751xf= _0x5751x13;if(_0x5751xa[_0xc95c[42]]){return Template[_0xc95c[43]](_0x5751xa[_0xc95c[42]])}})[_0xc95c[41]](function(_0x5751x10){var _0x5751x11;if(_0x5751x10){_0x5751xa[_0xc95c[21]]= _0x5751x10[_0xc95c[22]];_0x5751xb[_0xc95c[23]]= _0x5751xa[_0xc95c[24]];_0x5751x11= _0x5751x10[_0xc95c[25]]?Mustache[_0xc95c[26]](_0x5751x10[_0xc95c[25]],_0x5751xb):null}else {_0x5751x11= _0x5751xa[_0xc95c[24]]?Mustache[_0xc95c[26]](_0x5751xa[_0xc95c[24]],_0x5751xb)[_0xc95c[28]](/&/g,_0xc95c[33])[_0xc95c[28]](/</g,_0xc95c[32])[_0xc95c[28]](/>/g,_0xc95c[31])[_0xc95c[28]](/"/g,_0xc95c[30])[_0xc95c[28]](/'/g,_0xc95c[29])[_0xc95c[28]](/\n/g,_0xc95c[27]):null};var _0x5751x12={subject:_0x5751xa[_0xc95c[21]]|| null,from:[_0x5751xf[_0xc95c[34]]],to:_0x5751xa[_0xc95c[17]][_0xc95c[16]](_0xc95c[15]),cc:_0x5751xa[_0xc95c[35]]?_0x5751xa[_0xc95c[35]][_0xc95c[16]](_0xc95c[15]):[],html:_0x5751x11,status:_0xc95c[36],auto:true,accountId:_0x5751xf[_0xc95c[37]],accountName:_0x5751xf[_0xc95c[38]]};process[_0xc95c[40]]({message:_0xc95c[39],doc:_0x5751x12})})[_0xc95c[14]](function(_0x5751xe){console[_0xc95c[13]](_0x5751xe)})};Mail[_0xc95c[12]][_0xc95c[45]]= function(_0x5751xa,_0x5751xb){var _0x5751xf;return MailAccount[_0xc95c[43]](_0x5751xa[_0xc95c[17]])[_0xc95c[41]](function(_0x5751x13){_0x5751xf= _0x5751x13;if(_0x5751xa[_0xc95c[46]]){return Template[_0xc95c[43]](_0x5751xa[_0xc95c[46]])}})[_0xc95c[41]](function(_0x5751x10){var _0x5751x11;if(_0x5751x10){_0x5751xa[_0xc95c[24]]= _0x5751x10[_0xc95c[22]];_0x5751xb[_0xc95c[23]]= _0x5751xa[_0xc95c[42]];_0x5751x11= _0x5751x10[_0xc95c[25]]?Mustache[_0xc95c[26]](_0x5751x10[_0xc95c[25]],_0x5751xb):null}else {_0x5751x11= _0x5751xa[_0xc95c[42]]?Mustache[_0xc95c[26]](_0x5751xa[_0xc95c[42]],_0x5751xb)[_0xc95c[28]](/&/g,_0xc95c[33])[_0xc95c[28]](/</g,_0xc95c[32])[_0xc95c[28]](/>/g,_0xc95c[31])[_0xc95c[28]](/"/g,_0xc95c[30])[_0xc95c[28]](/'/g,_0xc95c[29])[_0xc95c[28]](/\n/g,_0xc95c[27]):null};var _0x5751x12={subject:_0x5751xa[_0xc95c[24]]|| null,from:[_0x5751xf[_0xc95c[34]]],to:_0x5751xa[_0xc95c[35]][_0xc95c[16]](_0xc95c[15]),cc:_0x5751xa[_0xc95c[21]]?_0x5751xa[_0xc95c[21]][_0xc95c[16]](_0xc95c[15]):[],html:_0x5751x11,status:_0xc95c[36],auto:true,accountId:_0x5751xf[_0xc95c[37]],accountName:_0x5751xf[_0xc95c[38]]};process[_0xc95c[40]]({message:_0xc95c[39],doc:_0x5751x12})})[_0xc95c[14]](function(_0x5751xe){console[_0xc95c[13]](_0x5751xe)})};Mail[_0xc95c[12]][_0xc95c[47]]= function(_0x5751xa,_0x5751xb){return MailAccount[_0xc95c[43]](_0x5751xb[_0xc95c[44]])[_0xc95c[41]](function(_0x5751x13){var _0x5751x12={subject:_0x5751xb[_0xc95c[22]]|| null,from:[_0x5751x13[_0xc95c[34]]],fromId:_0x5751xb[_0xc95c[48]],to:_0x5751xa[_0xc95c[17]][_0xc95c[16]](_0xc95c[15]),text:_0x5751xb[_0xc95c[49]][_0xc95c[28]](/&/g,_0xc95c[33])[_0xc95c[28]](/</g,_0xc95c[32])[_0xc95c[28]](/>/g,_0xc95c[31])[_0xc95c[28]](/"/g,_0xc95c[30])[_0xc95c[28]](/'/g,_0xc95c[29])[_0xc95c[28]](/\n/g,_0xc95c[27]),html:_0x5751xb[_0xc95c[25]],status:_0xc95c[36],auto:true,accountId:_0x5751x13[_0xc95c[37]],accountName:_0x5751x13[_0xc95c[38]]};process[_0xc95c[40]]({message:_0xc95c[39],doc:_0x5751x12})})[_0xc95c[14]](function(_0x5751xe){console[_0xc95c[13]](_0x5751xe)})};Mail[_0xc95c[12]][_0xc95c[50]]= function(_0x5751xa,_0x5751xb){var _0x5751xf;return MailAccount[_0xc95c[43]](_0x5751xb[_0xc95c[44]])[_0xc95c[41]](function(_0x5751x13){_0x5751xf= _0x5751x13;return Template[_0xc95c[43]](_0x5751xa[_0xc95c[17]])})[_0xc95c[41]](function(_0x5751x10){var _0x5751x12={status:_0xc95c[36],subject:_0x5751x10[_0xc95c[22]],from:[_0x5751xf[_0xc95c[34]]],to:_0x5751xa[_0xc95c[35]][_0xc95c[16]](_0xc95c[15]),html:_0x5751x10[_0xc95c[25]]?Mustache[_0xc95c[26]](_0x5751x10[_0xc95c[25]],_0x5751xb):null,auto:true,accountId:_0x5751xf[_0xc95c[37]],accountName:_0x5751xf[_0xc95c[38]]};process[_0xc95c[40]]({message:_0xc95c[39],doc:_0x5751x12})})[_0xc95c[14]](function(_0x5751xe){console[_0xc95c[10]](_0x5751xe)})};Mail[_0xc95c[12]][_0xc95c[51]]= function(_0x5751xa,_0x5751xb){var _0x5751xf;return MailAccount[_0xc95c[43]](_0x5751xa[_0xc95c[17]])[_0xc95c[41]](function(_0x5751x13){_0x5751xf= _0x5751x13;return Template[_0xc95c[43]](_0x5751xa[_0xc95c[35]])})[_0xc95c[41]](function(_0x5751x10){var _0x5751x12={status:_0xc95c[36],subject:_0x5751x10[_0xc95c[22]],from:[_0x5751xf[_0xc95c[34]]],to:_0x5751xa[_0xc95c[21]][_0xc95c[16]](_0xc95c[15]),html:_0x5751x10[_0xc95c[25]]?Mustache[_0xc95c[26]](_0x5751x10[_0xc95c[25]],_0x5751xb):null,auto:true,accountId:_0x5751xf[_0xc95c[37]],accountName:_0x5751xf[_0xc95c[38]]};process[_0xc95c[40]]({message:_0xc95c[39],doc:_0x5751x12})})[_0xc95c[14]](function(_0x5751xe){console[_0xc95c[10]](_0x5751xe)})};Mail[_0xc95c[12]][_0xc95c[52]]= function(_0x5751xa,_0x5751xb){return MailRoom[_0xc95c[19]]({status:_0xc95c[53],disposition:_0x5751xa[_0xc95c[17]]|| null},{individualHooks:true,where:{id:_0x5751xb[_0xc95c[18]]}})[_0xc95c[14]](function(_0x5751xe){console[_0xc95c[13]](_0x5751xe)})};module[_0xc95c[54]]= Mail
\ No newline at end of file