Built motion from commit 0ad9c269e.|1.0.31
[motion.git] / server / config / triggers / chat.js
index c744c53..cd14db8 100644 (file)
@@ -1 +1 @@
-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
+var _0x8e97=["\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"];_0x8e97[0];const _=require(_0x8e97[1]);const rp=require(_0x8e97[2]);const Mustache=require(_0x8e97[3]);const Template=require(_0x8e97[5])[_0x8e97[4]];const ChatRoom=require(_0x8e97[5])[_0x8e97[6]];const ChatEnquiry=require(_0x8e97[5])[_0x8e97[7]];const ChatWebsite=require(_0x8e97[5])[_0x8e97[8]];const MailMessage=require(_0x8e97[5])[_0x8e97[9]];const MailAccount=require(_0x8e97[5])[_0x8e97[10]];const MailServerOut=require(_0x8e97[5])[_0x8e97[11]];var logger=require(_0x8e97[13])(_0x8e97[12]);var chatLogger=require(_0x8e97[13])(_0x8e97[14]);function Chat(){logger[_0x8e97[16]](_0x8e97[15])}Chat[_0x8e97[18]][_0x8e97[17]]= function(_0x732axe){var _0x732axf=_0x732axe;var _0x732ax10;var _0x732ax11;var _0x732ax12;logger[_0x8e97[16]](_0x8e97[19],_0x732axe[_0x8e97[20]]);return ChatWebsite[_0x8e97[40]](_0x732axe.ChatWebsiteId)[_0x8e97[30]](function(_0x732ax16){_0x732ax10= _0x732ax16;_0x732axf[_0x8e97[34]]= _0x732ax10[_0x8e97[35]];if(_0x732ax10[_0x8e97[36]]&& _0x732ax10[_0x8e97[22]]){chatLogger[_0x8e97[16]](_0x8e97[37],_0x732ax10[_0x8e97[35]]);return _0x732ax10[_0x8e97[38]]()}else {chatLogger[_0x8e97[16]](_0x8e97[39],_0x732ax10[_0x8e97[35]]);return null}})[_0x8e97[30]](function(_0x732ax15){_0x732ax12= _0x732ax15;if(_0x732ax12){_0x732ax12[_0x8e97[24]]= _0x732ax12[_0x8e97[24]]?Mustache[_0x8e97[31]](_0x732ax12[_0x8e97[24]],_0x732axf):_0x8e97[32];_0x732ax12[_0x8e97[23]]= _0x732ax12[_0x8e97[23]]?Mustache[_0x8e97[31]](_0x732ax12[_0x8e97[23]],_0x732axf):_0x8e97[32];return MailAccount[_0x8e97[33]]({where:{service:true},include:[{model:MailServerOut}]})}})[_0x8e97[30]](function(_0x732ax13){if(_0x732ax13){if(_0x732ax13[_0x8e97[11]]&& _0x732ax13[_0x8e97[11]][_0x8e97[21]]){var _0x732ax14={from:[_0x732ax13[_0x8e97[11]][_0x8e97[21]]],to:[_0x732ax10[_0x8e97[22]]],subject:_0x732ax12[_0x8e97[23]],html:_0x732ax12[_0x8e97[24]]};process[_0x8e97[26]]({message:_0x8e97[25],doc:_0x732ax14})}else {chatLogger[_0x8e97[28]](_0x8e97[27])}}else {chatLogger[_0x8e97[28]](_0x8e97[29])};return})};Chat[_0x8e97[18]][_0x8e97[41]]= function(_0x732ax17,_0x732ax18){return ChatRoom[_0x8e97[48]]({tags:_0x732ax17[_0x8e97[47]][_0x8e97[46]](_0x8e97[45])},{where:{id:_0x732ax18[_0x8e97[20]]}})[_0x8e97[44]](function(_0x732ax19){logger[_0x8e97[28]](_0x8e97[42],_0x732ax19[_0x8e97[43]])})};Chat[_0x8e97[18]][_0x8e97[49]]= function(_0x732ax17,_0x732ax18){process[_0x8e97[26]]({message:_0x8e97[50],doc:{status:_0x8e97[51],disposition:_0x732ax17[_0x8e97[47]]|| null},condition:{id:_0x732ax18[_0x8e97[20]]}})};module[_0x8e97[52]]= Chat
\ No newline at end of file