Built motion from commit 88549cd59.|1.0.20
[motion.git] / server / config / triggers / sms.js
1 var _0xef98=["\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","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x54\x65\x6D\x70\x6C\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x53\x6D\x73\x52\x6F\x6F\x6D","\x4D\x61\x69\x6C\x41\x63\x63\x6F\x75\x6E\x74","\x53\x6D\x73\x41\x63\x63\x6F\x75\x6E\x74","\x53\x6D\x73\x4D\x65\x73\x73\x61\x67\x65","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x54\x72\x69\x67\x67\x65\x72\x20\x53\x6D\x73\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x69\x6E\x66\x6F","\x74\x61\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x53\x6D\x73\x20\x74\x72\x69\x67\x67\x65\x72\x20\x74\x61\x67\x20\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x3B","\x73\x70\x6C\x69\x74","\x64\x61\x74\x61\x31","\x53\x6D\x73\x52\x6F\x6F\x6D\x49\x64","\x75\x70\x64\x61\x74\x65","\x63\x6C\x6F\x73\x65","\x53\x6D\x73\x20\x74\x72\x69\x67\x67\x65\x72\x20\x63\x6C\x6F\x73\x65\x20\x65\x72\x72\x6F\x72","\x43\x4C\x4F\x53\x45\x44","\x61\x63\x63\x6F\x75\x6E\x74\x53\x6D\x73","\x53\x6D\x73\x20\x74\x72\x69\x67\x67\x65\x72\x20\x73\x65\x6E\x64\x20\x73\x6D\x73\x20\x62\x79\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x65\x72\x72\x6F\x72","\x70\x68\x6F\x6E\x65","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x53\x45\x4E\x44\x49\x4E\x47","\x69\x64","\x63\x72\x65\x61\x74\x65\x53\x6D\x73\x4D\x65\x73\x73\x61\x67\x65","\x73\x65\x6E\x64","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x42\x79\x49\x64","\x65\x78\x70\x6F\x72\x74\x73"];const _=require(_0xef98[0]);const rp=require(_0xef98[1]);const Mustache=require(_0xef98[2]);var logger=require(_0xef98[4])(_0xef98[3]);const Template=require(_0xef98[6])[_0xef98[5]];const SmsRoom=require(_0xef98[6])[_0xef98[7]];const MailAccount=require(_0xef98[6])[_0xef98[8]];const SmsAccount=require(_0xef98[6])[_0xef98[9]];const SmsMessage=require(_0xef98[6])[_0xef98[10]];const MailMessage=require(_0xef98[6])[_0xef98[11]];function Sms(){logger[_0xef98[13]](_0xef98[12])}Sms[_0xef98[15]][_0xef98[14]]= function(_0xe857xc,_0xe857xd){return SmsRoom[_0xef98[24]]({tags:_0xe857xc[_0xef98[22]][_0xef98[21]](_0xef98[20])},{where:{id:_0xe857xd[_0xef98[23]]}})[_0xef98[19]](function(_0xe857xe){logger[_0xef98[18]](_0xef98[16],_0xe857xe[_0xef98[17]])})};Sms[_0xef98[15]][_0xef98[25]]= function(_0xe857xc,_0xe857xd){return SmsRoom[_0xef98[24]]({status:_0xef98[27],disposition:_0xe857xc[_0xef98[22]]|| null},{individualHooks:true,where:{id:_0xe857xd[_0xef98[23]]}})[_0xef98[19]](function(_0xe857xe){logger[_0xef98[18]](_0xef98[26],_0xe857xe[_0xef98[17]])})};Sms[_0xef98[15]][_0xef98[28]]= function(_0xe857xc,_0xe857xd){return SmsAccount[_0xef98[38]](_0xe857xc[_0xef98[22]])[_0xef98[37]](function(_0xe857xf){var _0xe857x10={from:_0xe857xf[_0xef98[30]],to:_0xe857xc[_0xef98[31]],body:_0xe857xc[_0xef98[32]],status:_0xef98[33],auto:true,SmsAccountId:_0xe857xf[_0xef98[34]]};process[_0xef98[36]]({message:_0xef98[35],doc:_0xe857x10})})[_0xef98[19]](function(_0xe857xe){logger[_0xef98[18]](_0xef98[29],_0xe857xe[_0xef98[17]])})};module[_0xef98[39]]= Sms