Built motion from commit 420f8c692.|1.0.30
[motion.git] / server / config / triggers / chat.js
index 3e74cd1..c744c53 100644 (file)
@@ -1 +1 @@
-var _0x35ae=["\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","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x63\x68\x61\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","\x69\x6E\x66\x6F","\x65\x6E\x71\x75\x69\x72\x79\x46\x6F\x72\x77\x61\x72\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\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","\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","\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","\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","\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","\x54\x61\x67\x20\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\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"];_0x35ae[0];const _=require(_0x35ae[1]);const rp=require(_0x35ae[2]);const Mustache=require(_0x35ae[3]);const Template=require(_0x35ae[5])[_0x35ae[4]];const ChatRoom=require(_0x35ae[5])[_0x35ae[6]];const ChatEnquiry=require(_0x35ae[5])[_0x35ae[7]];const ChatWebsite=require(_0x35ae[5])[_0x35ae[8]];const MailMessage=require(_0x35ae[5])[_0x35ae[9]];const MailAccount=require(_0x35ae[5])[_0x35ae[10]];const MailServerOut=require(_0x35ae[5])[_0x35ae[11]];var logger=require(_0x35ae[13])(_0x35ae[12]);var chatLogger=require(_0x35ae[13])(_0x35ae[14]);function Chat(){logger[_0x35ae[16]](_0x35ae[15])}Chat[_0x35ae[18]][_0x35ae[17]]= function(_0x4e20xe){var _0x4e20xf=_0x4e20xe;var _0x4e20x10;var _0x4e20x11;var _0x4e20x12;logger[_0x35ae[16]](_0x35ae[19],_0x4e20xe[_0x35ae[20]]);return ChatWebsite[_0x35ae[40]](_0x4e20xe.ChatWebsiteId)[_0x35ae[30]](function(_0x4e20x16){_0x4e20x10= _0x4e20x16;_0x4e20xf[_0x35ae[34]]= _0x4e20x10[_0x35ae[35]];if(_0x4e20x10[_0x35ae[36]]&& _0x4e20x10[_0x35ae[22]]){chatLogger[_0x35ae[16]](_0x35ae[37],_0x4e20x10[_0x35ae[35]]);return _0x4e20x10[_0x35ae[38]]()}else {chatLogger[_0x35ae[16]](_0x35ae[39],_0x4e20x10[_0x35ae[35]]);return null}})[_0x35ae[30]](function(_0x4e20x15){_0x4e20x12= _0x4e20x15;if(_0x4e20x12){_0x4e20x12[_0x35ae[24]]= _0x4e20x12[_0x35ae[24]]?Mustache[_0x35ae[31]](_0x4e20x12[_0x35ae[24]],_0x4e20xf):_0x35ae[32];_0x4e20x12[_0x35ae[23]]= _0x4e20x12[_0x35ae[23]]?Mustache[_0x35ae[31]](_0x4e20x12[_0x35ae[23]],_0x4e20xf):_0x35ae[32];return MailAccount[_0x35ae[33]]({where:{service:true},include:[{model:MailServerOut}]})}})[_0x35ae[30]](function(_0x4e20x13){if(_0x4e20x13){if(_0x4e20x13[_0x35ae[11]]&& _0x4e20x13[_0x35ae[11]][_0x35ae[21]]){var _0x4e20x14={from:[_0x4e20x13[_0x35ae[11]][_0x35ae[21]]],to:[_0x4e20x10[_0x35ae[22]]],subject:_0x4e20x12[_0x35ae[23]],html:_0x4e20x12[_0x35ae[24]]};process[_0x35ae[26]]({message:_0x35ae[25],doc:_0x4e20x14})}else {chatLogger[_0x35ae[28]](_0x35ae[27])}}else {chatLogger[_0x35ae[28]](_0x35ae[29])};return})};Chat[_0x35ae[18]][_0x35ae[41]]= function(_0x4e20x17,_0x4e20x18){return ChatRoom[_0x35ae[48]]({tags:_0x4e20x17[_0x35ae[47]][_0x35ae[46]](_0x35ae[45])},{where:{id:_0x4e20x18[_0x35ae[20]]}})[_0x35ae[44]](function(_0x4e20x19){logger[_0x35ae[28]](_0x35ae[42],_0x4e20x19[_0x35ae[43]])})};Chat[_0x35ae[18]][_0x35ae[49]]= function(_0x4e20x17,_0x4e20x18){process[_0x35ae[26]]({message:_0x35ae[50],doc:{status:_0x35ae[51],disposition:_0x4e20x17[_0x35ae[47]]|| null},condition:{id:_0x4e20x18[_0x35ae[20]]}})};module[_0x35ae[52]]= Chat
\ No newline at end of file
+var _0xe7b6=["\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","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x63\x68\x61\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","\x69\x6E\x66\x6F","\x65\x6E\x71\x75\x69\x72\x79\x46\x6F\x72\x77\x61\x72\x64","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\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","\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","\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","\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","\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","\x54\x61\x67\x20\x65\x72\x72\x6F\x72","\x73\x74\x61\x63\x6B","\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"];_0xe7b6[0];const _=require(_0xe7b6[1]);const rp=require(_0xe7b6[2]);const Mustache=require(_0xe7b6[3]);const Template=require(_0xe7b6[5])[_0xe7b6[4]];const ChatRoom=require(_0xe7b6[5])[_0xe7b6[6]];const ChatEnquiry=require(_0xe7b6[5])[_0xe7b6[7]];const ChatWebsite=require(_0xe7b6[5])[_0xe7b6[8]];const MailMessage=require(_0xe7b6[5])[_0xe7b6[9]];const MailAccount=require(_0xe7b6[5])[_0xe7b6[10]];const MailServerOut=require(_0xe7b6[5])[_0xe7b6[11]];var logger=require(_0xe7b6[13])(_0xe7b6[12]);var chatLogger=require(_0xe7b6[13])(_0xe7b6[14]);function Chat(){logger[_0xe7b6[16]](_0xe7b6[15])}Chat[_0xe7b6[18]][_0xe7b6[17]]= function(_0x2c19xe){var _0x2c19xf=_0x2c19xe;var _0x2c19x10;var _0x2c19x11;var _0x2c19x12;logger[_0xe7b6[16]](_0xe7b6[19],_0x2c19xe[_0xe7b6[20]]);return ChatWebsite[_0xe7b6[40]](_0x2c19xe.ChatWebsiteId)[_0xe7b6[30]](function(_0x2c19x16){_0x2c19x10= _0x2c19x16;_0x2c19xf[_0xe7b6[34]]= _0x2c19x10[_0xe7b6[35]];if(_0x2c19x10[_0xe7b6[36]]&& _0x2c19x10[_0xe7b6[22]]){chatLogger[_0xe7b6[16]](_0xe7b6[37],_0x2c19x10[_0xe7b6[35]]);return _0x2c19x10[_0xe7b6[38]]()}else {chatLogger[_0xe7b6[16]](_0xe7b6[39],_0x2c19x10[_0xe7b6[35]]);return null}})[_0xe7b6[30]](function(_0x2c19x15){_0x2c19x12= _0x2c19x15;if(_0x2c19x12){_0x2c19x12[_0xe7b6[24]]= _0x2c19x12[_0xe7b6[24]]?Mustache[_0xe7b6[31]](_0x2c19x12[_0xe7b6[24]],_0x2c19xf):_0xe7b6[32];_0x2c19x12[_0xe7b6[23]]= _0x2c19x12[_0xe7b6[23]]?Mustache[_0xe7b6[31]](_0x2c19x12[_0xe7b6[23]],_0x2c19xf):_0xe7b6[32];return MailAccount[_0xe7b6[33]]({where:{service:true},include:[{model:MailServerOut}]})}})[_0xe7b6[30]](function(_0x2c19x13){if(_0x2c19x13){if(_0x2c19x13[_0xe7b6[11]]&& _0x2c19x13[_0xe7b6[11]][_0xe7b6[21]]){var _0x2c19x14={from:[_0x2c19x13[_0xe7b6[11]][_0xe7b6[21]]],to:[_0x2c19x10[_0xe7b6[22]]],subject:_0x2c19x12[_0xe7b6[23]],html:_0x2c19x12[_0xe7b6[24]]};process[_0xe7b6[26]]({message:_0xe7b6[25],doc:_0x2c19x14})}else {chatLogger[_0xe7b6[28]](_0xe7b6[27])}}else {chatLogger[_0xe7b6[28]](_0xe7b6[29])};return})};Chat[_0xe7b6[18]][_0xe7b6[41]]= function(_0x2c19x17,_0x2c19x18){return ChatRoom[_0xe7b6[48]]({tags:_0x2c19x17[_0xe7b6[47]][_0xe7b6[46]](_0xe7b6[45])},{where:{id:_0x2c19x18[_0xe7b6[20]]}})[_0xe7b6[44]](function(_0x2c19x19){logger[_0xe7b6[28]](_0xe7b6[42],_0x2c19x19[_0xe7b6[43]])})};Chat[_0xe7b6[18]][_0xe7b6[49]]= function(_0x2c19x17,_0x2c19x18){process[_0xe7b6[26]]({message:_0xe7b6[50],doc:{status:_0xe7b6[51],disposition:_0x2c19x17[_0xe7b6[47]]|| null},condition:{id:_0x2c19x18[_0xe7b6[20]]}})};module[_0xe7b6[52]]= Chat
\ No newline at end of file