1767a520986717d36f7a3fc8f1f3bb07f307e914
[motion.git] / server / config / triggers / mail.js
1 var _0x3b17=["\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(_0x3b17[0]);function Mail(){console[_0x3b17[2]](_0x3b17[1])}Mail[_0x3b17[4]][_0x3b17[3]]= function(_0xfc1cx3){sendTemplate(_0xfc1cx3)};function sendTemplate(_0xfc1cx5){var _0xfc1cx6=require(_0x3b17[6])[_0x3b17[5]];var _0xfc1cx7=require(_0x3b17[6])[_0x3b17[7]];var _0xfc1cx8=require(_0x3b17[6])[_0x3b17[8]];var _0xfc1cx9;return _0xfc1cx8[_0x3b17[23]]({where:{service:true}})[_0x3b17[20]](function(_0xfc1cxc){_0xfc1cx9= _0xfc1cxc;return _0xfc1cx6[_0x3b17[22]](Number(_0xfc1cx5[_0x3b17[21]]),{include:[{all:true}]})})[_0x3b17[20]](function(_0xfc1cxa){return _0xfc1cx7[_0x3b17[19]]({status:_0x3b17[10],subject:_0xfc1cxa[_0x3b17[11]],from:[_0xfc1cx9[_0x3b17[12]]],to:_0xfc1cx5[_0x3b17[15]][_0x3b17[14]](_0x3b17[13]),cc:_0xfc1cx5[_0x3b17[16]]?_0xfc1cx5[_0x3b17[16]][_0x3b17[14]](_0x3b17[13]):[],html:_0xfc1cxa[_0x3b17[17]]|| null,text:_0xfc1cxa[_0x3b17[18]]|| null})[_0x3b17[9]](function(_0xfc1cxb){console[_0x3b17[2]](_0xfc1cxb)})})}module[_0x3b17[24]]= Mail