9a3aac6eeb52575d60fba47c78114a74b3ba22d9
[motion.git] / server / config / triggers / chat.js
1 var _0xc3c2=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\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","\x54\x65\x6D\x70\x6C\x61\x74\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x43\x68\x61\x74\x57\x65\x62\x73\x69\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\x43\x68\x61\x74\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x65\x6E\x71\x75\x69\x72\x79\x46\x6F\x72\x77\x61\x72\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x5B\x43\x68\x61\x74\x5D\x20\x4E\x65\x77\x20\x45\x6E\x71\x75\x69\x72\x79","\x69\x64","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x66\x6F\x72\x77\x61\x72\x64\x69\x6E\x67\x5F\x61\x64\x64\x72\x65\x73\x73","\x73\x75\x62\x6A\x65\x63\x74","\x68\x74\x6D\x6C","\x63\x72\x65\x61\x74\x65\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x73\x65\x6E\x64","\x5B\x43\x68\x61\x74\x5D\x20\x45\x6E\x71\x75\x69\x72\x79\x20\x66\x6F\x72\x77\x61\x72\x64\x20\x66\x61\x69\x6C\x65\x64\x3A\x20\x53\x4D\x54\x50\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E\x20\x77\x72\x6F\x6E\x67\x20\x66\x6F\x72\x20\x73\x65\x72\x76\x69\x63\x65\x20\x6D\x61\x69\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x2E\x20\x50\x6C\x65\x61\x73\x65\x20\x63\x68\x65\x63\x6B\x20\x79\x6F\x75\x72\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x65\x72\x72\x6F\x72","\x5B\x43\x68\x61\x74\x5D\x20\x45\x6E\x71\x75\x69\x72\x79\x20\x66\x6F\x72\x77\x61\x72\x64\x20\x66\x61\x69\x6C\x65\x64\x3A\x20\x4E\x6F\x20\x73\x65\x72\x76\x69\x63\x65\x20\x6D\x61\x69\x6C\x20\x61\x63\x63\x6F\x75\x6E\x74\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x65\x64\x2E\x20\x50\x6C\x65\x61\x73\x65\x20\x63\x68\x65\x63\x6B\x20\x79\x6F\x75\x72\x20\x63\x6F\x6E\x66\x69\x67\x75\x72\x61\x74\x69\x6F\x6E","\x74\x68\x65\x6E","\x72\x65\x6E\x64\x65\x72","","\x66\x69\x6E\x64\x4F\x6E\x65","\x63\x68\x61\x74\x57\x65\x62\x73\x69\x74\x65","\x6E\x61\x6D\x65","\x65\x6E\x71\x75\x69\x72\x79\x5F\x66\x6F\x72\x77\x61\x72\x64\x69\x6E\x67","\x5B\x43\x68\x61\x74\x5D\x20\x45\x6E\x71\x75\x69\x72\x79\x20\x66\x6F\x72\x77\x61\x72\x64\x20\x69\x73\x20\x73\x65\x74\x20\x66\x6F\x72\x20\x74\x68\x69\x73\x20\x77\x65\x62\x73\x69\x74\x65","\x67\x65\x74\x4F\x66\x66\x6C\x69\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x5B\x43\x68\x61\x74\x5D\x20\x45\x6E\x71\x75\x69\x72\x79\x20\x66\x6F\x72\x77\x61\x72\x64\x20\x69\x73\x20\x6E\x6F\x74\x20\x73\x65\x74\x20\x66\x6F\x72\x20\x74\x68\x69\x73\x20\x77\x65\x62\x73\x69\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x74\x61\x67","\x63\x61\x74\x63\x68","\x3B","\x73\x70\x6C\x69\x74","\x64\x61\x74\x61\x31","\x75\x70\x64\x61\x74\x65","\x63\x6C\x6F\x73\x65","\x75\x70\x64\x61\x74\x65\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x43\x4C\x4F\x53\x45\x44","\x65\x78\x70\x6F\x72\x74\x73"];_0xc3c2[0];const _=require(_0xc3c2[1]);const rp=require(_0xc3c2[2]);const Mustache=require(_0xc3c2[3]);const Template=require(_0xc3c2[5])[_0xc3c2[4]];const ChatRoom=require(_0xc3c2[5])[_0xc3c2[6]];const ChatEnquiry=require(_0xc3c2[5])[_0xc3c2[7]];const ChatWebsite=require(_0xc3c2[5])[_0xc3c2[8]];const MailMessage=require(_0xc3c2[5])[_0xc3c2[9]];const MailAccount=require(_0xc3c2[5])[_0xc3c2[10]];const MailServerOut=require(_0xc3c2[5])[_0xc3c2[11]];function Chat(){console[_0xc3c2[13]](_0xc3c2[12])}Chat[_0xc3c2[15]][_0xc3c2[14]]= function(_0x788dxc){var _0x788dxd=_0x788dxc;var _0x788dxe;var _0x788dxf;var _0x788dx10;console[_0xc3c2[13]](_0xc3c2[16],_0x788dxc[_0xc3c2[17]]);return ChatWebsite[_0xc3c2[37]](_0x788dxc.ChatWebsiteId)[_0xc3c2[27]](function(_0x788dx14){_0x788dxe= _0x788dx14;_0x788dxd[_0xc3c2[31]]= _0x788dxe[_0xc3c2[32]];if(_0x788dxe[_0xc3c2[33]]&& _0x788dxe[_0xc3c2[19]]){console[_0xc3c2[13]](_0xc3c2[34],_0x788dxe[_0xc3c2[32]]);return _0x788dxe[_0xc3c2[35]]()}else {console[_0xc3c2[13]](_0xc3c2[36],_0x788dxe[_0xc3c2[32]]);return null}})[_0xc3c2[27]](function(_0x788dx13){_0x788dx10= _0x788dx13;if(_0x788dx10){_0x788dx10[_0xc3c2[21]]= _0x788dx10[_0xc3c2[21]]?Mustache[_0xc3c2[28]](_0x788dx10[_0xc3c2[21]],_0x788dxd):_0xc3c2[29];_0x788dx10[_0xc3c2[20]]= _0x788dx10[_0xc3c2[20]]?Mustache[_0xc3c2[28]](_0x788dx10[_0xc3c2[20]],_0x788dxd):_0xc3c2[29];return MailAccount[_0xc3c2[30]]({where:{service:true},include:[{model:MailServerOut}]})}else {return null}})[_0xc3c2[27]](function(_0x788dx11){if(_0x788dx11){if(_0x788dx11[_0xc3c2[11]]&& _0x788dx11[_0xc3c2[11]][_0xc3c2[18]]){var _0x788dx12={from:[_0x788dx11[_0xc3c2[11]][_0xc3c2[18]]],to:[_0x788dxe[_0xc3c2[19]]],subject:_0x788dx10[_0xc3c2[20]],html:_0x788dx10[_0xc3c2[21]]};process[_0xc3c2[23]]({message:_0xc3c2[22],doc:_0x788dx12})}else {console[_0xc3c2[25]](_0xc3c2[24])}}else {console[_0xc3c2[25]](_0xc3c2[26])};return})};Chat[_0xc3c2[15]][_0xc3c2[38]]= function(_0x788dx15,_0x788dx16){return ChatRoom[_0xc3c2[43]]({tags:_0x788dx15[_0xc3c2[42]][_0xc3c2[41]](_0xc3c2[40])},{where:{id:_0x788dx16[_0xc3c2[17]]}})[_0xc3c2[39]](function(_0x788dx17){console[_0xc3c2[25]](_0x788dx17)})};Chat[_0xc3c2[15]][_0xc3c2[44]]= function(_0x788dx15,_0x788dx16){process[_0xc3c2[23]]({message:_0xc3c2[45],doc:{status:_0xc3c2[46],disposition:_0x788dx15[_0xc3c2[42]]|| null},condition:{id:_0x788dx16[_0xc3c2[17]]}})};module[_0xc3c2[47]]= Chat