4a84625fa9ec63bfb5a4f8f7efdb2a067d49915c
[motion.git] / server / config / triggers / chat.js
1 var _0xb82c=["\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"];_0xb82c[0];const _=require(_0xb82c[1]);const rp=require(_0xb82c[2]);const Mustache=require(_0xb82c[3]);const Template=require(_0xb82c[5])[_0xb82c[4]];const ChatRoom=require(_0xb82c[5])[_0xb82c[6]];const ChatEnquiry=require(_0xb82c[5])[_0xb82c[7]];const ChatWebsite=require(_0xb82c[5])[_0xb82c[8]];const MailMessage=require(_0xb82c[5])[_0xb82c[9]];const MailAccount=require(_0xb82c[5])[_0xb82c[10]];const MailServerOut=require(_0xb82c[5])[_0xb82c[11]];function Chat(){console[_0xb82c[13]](_0xb82c[12])}Chat[_0xb82c[15]][_0xb82c[14]]= function(_0xff1dxc){var _0xff1dxd=_0xff1dxc;var _0xff1dxe;var _0xff1dxf;var _0xff1dx10;console[_0xb82c[13]](_0xb82c[16],_0xff1dxc[_0xb82c[17]]);return ChatWebsite[_0xb82c[37]](_0xff1dxc.ChatWebsiteId)[_0xb82c[27]](function(_0xff1dx14){_0xff1dxe= _0xff1dx14;_0xff1dxd[_0xb82c[31]]= _0xff1dxe[_0xb82c[32]];if(_0xff1dxe[_0xb82c[33]]&& _0xff1dxe[_0xb82c[19]]){console[_0xb82c[13]](_0xb82c[34],_0xff1dxe[_0xb82c[32]]);return _0xff1dxe[_0xb82c[35]]()}else {console[_0xb82c[13]](_0xb82c[36],_0xff1dxe[_0xb82c[32]]);return null}})[_0xb82c[27]](function(_0xff1dx13){_0xff1dx10= _0xff1dx13;if(_0xff1dx10){_0xff1dx10[_0xb82c[21]]= _0xff1dx10[_0xb82c[21]]?Mustache[_0xb82c[28]](_0xff1dx10[_0xb82c[21]],_0xff1dxd):_0xb82c[29];_0xff1dx10[_0xb82c[20]]= _0xff1dx10[_0xb82c[20]]?Mustache[_0xb82c[28]](_0xff1dx10[_0xb82c[20]],_0xff1dxd):_0xb82c[29];return MailAccount[_0xb82c[30]]({where:{service:true},include:[{model:MailServerOut}]})}else {return null}})[_0xb82c[27]](function(_0xff1dx11){if(_0xff1dx11){if(_0xff1dx11[_0xb82c[11]]&& _0xff1dx11[_0xb82c[11]][_0xb82c[18]]){var _0xff1dx12={from:[_0xff1dx11[_0xb82c[11]][_0xb82c[18]]],to:[_0xff1dxe[_0xb82c[19]]],subject:_0xff1dx10[_0xb82c[20]],html:_0xff1dx10[_0xb82c[21]]};process[_0xb82c[23]]({message:_0xb82c[22],doc:_0xff1dx12})}else {console[_0xb82c[25]](_0xb82c[24])}}else {console[_0xb82c[25]](_0xb82c[26])};return})};Chat[_0xb82c[15]][_0xb82c[38]]= function(_0xff1dx15,_0xff1dx16){return ChatRoom[_0xb82c[43]]({tags:_0xff1dx15[_0xb82c[42]][_0xb82c[41]](_0xb82c[40])},{where:{id:_0xff1dx16[_0xb82c[17]]}})[_0xb82c[39]](function(_0xff1dx17){console[_0xb82c[25]](_0xff1dx17)})};Chat[_0xb82c[15]][_0xb82c[44]]= function(_0xff1dx15,_0xff1dx16){process[_0xb82c[23]]({message:_0xb82c[45],doc:{status:_0xb82c[46],disposition:_0xff1dx15[_0xb82c[42]]|| null},condition:{id:_0xff1dx16[_0xb82c[17]]}})};module[_0xb82c[47]]= Chat