Built motion from commit 1038d87.|0.0.141
[motion.git] / server / config / triggers / chat.js
index 8122f87..0fda774 100644 (file)
@@ -1 +1 @@
-var _0xff4b=["\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","\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","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65","\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","\x67\x65\x74\x4F\x66\x66\x6C\x69\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x68\x74\x74\x70","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x64\x61\x74\x61\x31","\x64\x61\x74\x61\x32","\x71\x73","\x47\x45\x54","\x66\x6F\x72\x6D","\x50\x4F\x53\x54","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x74\x61\x67","\x3B","\x73\x70\x6C\x69\x74","\x69\x64","\x75\x70\x64\x61\x74\x65","\x61\x63\x63\x6F\x75\x6E\x74\x45\x6D\x61\x69\x6C","\x64\x61\x74\x61\x34","\x61\x64\x64\x72\x65\x73\x73","\x64\x61\x74\x61\x33","\x64\x61\x74\x61\x35","\x3C\x62\x72\x3E","\x72\x65\x70\x6C\x61\x63\x65","\x26\x23\x30\x33\x39\x3B","\x26\x71\x75\x6F\x74\x3B","\x26\x67\x74\x3B","\x26\x6C\x74\x3B","\x26\x61\x6D\x70\x3B","\x53\x45\x4E\x44\x49\x4E\x47","\x63\x6C\x6F\x73\x65","\x43\x4C\x4F\x53\x45\x44","\x65\x78\x70\x6F\x72\x74\x73"];_0xff4b[0];const _=require(_0xff4b[1]);const rp=require(_0xff4b[2]);const Mustache=require(_0xff4b[3]);const Template=require(_0xff4b[5])[_0xff4b[4]];const ChatRoom=require(_0xff4b[5])[_0xff4b[6]];const ChatEnquiry=require(_0xff4b[5])[_0xff4b[7]];const ChatWebsite=require(_0xff4b[5])[_0xff4b[8]];const MailMessage=require(_0xff4b[5])[_0xff4b[9]];const MailAccount=require(_0xff4b[5])[_0xff4b[10]];const MailServerOut=require(_0xff4b[5])[_0xff4b[11]];function Chat(){console[_0xff4b[13]](_0xff4b[12]);ChatEnquiry[_0xff4b[28]](function(_0x69f4xc,_0x69f4xd){var _0x69f4xe=_0x69f4xc;var _0x69f4xf;var _0x69f4x10;var _0x69f4x11;return ChatWebsite[_0xff4b[27]](_0x69f4xc.ChatWebsiteId)[_0xff4b[20]](function(_0x69f4x14){_0x69f4xf= _0x69f4x14;_0x69f4xe[_0xff4b[23]]= _0x69f4xf[_0xff4b[24]];if(_0x69f4xf[_0xff4b[25]]&& _0x69f4xf[_0xff4b[15]]){return _0x69f4xf[_0xff4b[26]]()}else {return null}})[_0xff4b[20]](function(_0x69f4x13){_0x69f4x11= _0x69f4x13;if(_0x69f4x11){_0x69f4x11[_0xff4b[17]]= Mustache[_0xff4b[21]](_0x69f4x11[_0xff4b[17]],_0x69f4xe);_0x69f4x11[_0xff4b[16]]= Mustache[_0xff4b[21]](_0x69f4x11[_0xff4b[16]],_0x69f4xe);return MailServerOut[_0xff4b[22]]({where:{service:true}})}else {return null}})[_0xff4b[20]](function(_0x69f4x12){_0x69f4x10= _0x69f4x12;if(_0x69f4x10){return MailMessage[_0xff4b[19]]({from:[_0x69f4x10[_0xff4b[14]]],to:[_0x69f4xf[_0xff4b[15]]],subject:_0x69f4x11[_0xff4b[16]],html:_0x69f4x11[_0xff4b[17]]},{transaction:_0x69f4xd?_0x69f4xd[_0xff4b[18]]:null})}})})}Chat[_0xff4b[30]][_0xff4b[29]]= function(_0x69f4x15,_0x69f4x16){var _0x69f4xd={method:_0x69f4x15[_0xff4b[31]],uri:_0x69f4x15[_0xff4b[32]],json:true};switch(_0x69f4x15[_0xff4b[31]]){case _0xff4b[34]:_0x69f4xd[_0xff4b[33]]= _0x69f4x16;break;case _0xff4b[36]:_0x69f4xd[_0xff4b[35]]= _0x69f4x16;break;default:};return rp(_0x69f4xd)[_0xff4b[38]](function(_0x69f4x17){console[_0xff4b[37]](_0x69f4x17)})};Chat[_0xff4b[30]][_0xff4b[39]]= function(_0x69f4x15,_0x69f4x16){return ChatRoom[_0xff4b[43]]({tags:_0x69f4x15[_0xff4b[31]][_0xff4b[41]](_0xff4b[40])},{where:{id:_0x69f4x16[_0xff4b[42]]}})[_0xff4b[38]](function(_0x69f4x17){console[_0xff4b[37]](_0x69f4x17)})};Chat[_0xff4b[30]][_0xff4b[44]]= function(_0x69f4x15,_0x69f4x16){return MailAccount[_0xff4b[27]](_0x69f4x15[_0xff4b[31]])[_0xff4b[20]](function(_0x69f4x18){return MailMessage[_0xff4b[19]]({subject:_0x69f4x15[_0xff4b[45]]|| null,from:[_0x69f4x18[_0xff4b[46]]],to:_0x69f4x15[_0xff4b[32]][_0xff4b[41]](_0xff4b[40]),cc:_0x69f4x15[_0xff4b[47]]?_0x69f4x15[_0xff4b[47]][_0xff4b[41]](_0xff4b[40]):[],html:_0x69f4x15[_0xff4b[48]]?Mustache[_0xff4b[21]](_0x69f4x15[_0xff4b[48]],_0x69f4x16)[_0xff4b[50]](/&/g,_0xff4b[55])[_0xff4b[50]](/</g,_0xff4b[54])[_0xff4b[50]](/>/g,_0xff4b[53])[_0xff4b[50]](/"/g,_0xff4b[52])[_0xff4b[50]](/'/g,_0xff4b[51])[_0xff4b[50]](/\n/g,_0xff4b[49]):null,status:_0xff4b[56],auto:true,accountId:_0x69f4x18[_0xff4b[42]],accountName:_0x69f4x18[_0xff4b[24]]})})[_0xff4b[38]](function(_0x69f4x17){console[_0xff4b[37]](_0x69f4x17)})};Chat[_0xff4b[30]][_0xff4b[57]]= function(_0x69f4x15,_0x69f4x16){return ChatRoom[_0xff4b[43]]({status:_0xff4b[58],disposition:_0x69f4x15[_0xff4b[31]]|| null},{individualHooks:true,where:{id:_0x69f4x16[_0xff4b[42]]}})[_0xff4b[38]](function(_0x69f4x17){console[_0xff4b[37]](_0x69f4x17)})};module[_0xff4b[59]]= Chat
\ No newline at end of file
+var _0x64fa=["\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","\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","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x63\x72\x65\x61\x74\x65","\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","\x67\x65\x74\x4F\x66\x66\x6C\x69\x6E\x65\x54\x65\x6D\x70\x6C\x61\x74\x65","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x74\x61\x67","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x3B","\x73\x70\x6C\x69\x74","\x64\x61\x74\x61\x31","\x69\x64","\x75\x70\x64\x61\x74\x65","\x61\x63\x63\x6F\x75\x6E\x74\x45\x6D\x61\x69\x6C","\x64\x61\x74\x61\x34","\x61\x64\x64\x72\x65\x73\x73","\x64\x61\x74\x61\x32","\x64\x61\x74\x61\x33","\x64\x61\x74\x61\x35","\x3C\x62\x72\x3E","\x72\x65\x70\x6C\x61\x63\x65","\x26\x23\x30\x33\x39\x3B","\x26\x71\x75\x6F\x74\x3B","\x26\x67\x74\x3B","\x26\x6C\x74\x3B","\x26\x61\x6D\x70\x3B","\x53\x45\x4E\x44\x49\x4E\x47","\x63\x6C\x6F\x73\x65","\x43\x4C\x4F\x53\x45\x44","\x65\x78\x70\x6F\x72\x74\x73"];_0x64fa[0];const _=require(_0x64fa[1]);const rp=require(_0x64fa[2]);const Mustache=require(_0x64fa[3]);const Template=require(_0x64fa[5])[_0x64fa[4]];const ChatRoom=require(_0x64fa[5])[_0x64fa[6]];const ChatEnquiry=require(_0x64fa[5])[_0x64fa[7]];const ChatWebsite=require(_0x64fa[5])[_0x64fa[8]];const MailMessage=require(_0x64fa[5])[_0x64fa[9]];const MailAccount=require(_0x64fa[5])[_0x64fa[10]];const MailServerOut=require(_0x64fa[5])[_0x64fa[11]];function Chat(){console[_0x64fa[13]](_0x64fa[12]);ChatEnquiry[_0x64fa[28]](function(_0x3ed5xc,_0x3ed5xd){var _0x3ed5xe=_0x3ed5xc;var _0x3ed5xf;var _0x3ed5x10;var _0x3ed5x11;return ChatWebsite[_0x64fa[27]](_0x3ed5xc.ChatWebsiteId)[_0x64fa[20]](function(_0x3ed5x14){_0x3ed5xf= _0x3ed5x14;_0x3ed5xe[_0x64fa[23]]= _0x3ed5xf[_0x64fa[24]];if(_0x3ed5xf[_0x64fa[25]]&& _0x3ed5xf[_0x64fa[15]]){return _0x3ed5xf[_0x64fa[26]]()}else {return null}})[_0x64fa[20]](function(_0x3ed5x13){_0x3ed5x11= _0x3ed5x13;if(_0x3ed5x11){_0x3ed5x11[_0x64fa[17]]= Mustache[_0x64fa[21]](_0x3ed5x11[_0x64fa[17]],_0x3ed5xe);_0x3ed5x11[_0x64fa[16]]= Mustache[_0x64fa[21]](_0x3ed5x11[_0x64fa[16]],_0x3ed5xe);return MailServerOut[_0x64fa[22]]({where:{service:true}})}else {return null}})[_0x64fa[20]](function(_0x3ed5x12){_0x3ed5x10= _0x3ed5x12;if(_0x3ed5x10){return MailMessage[_0x64fa[19]]({from:[_0x3ed5x10[_0x64fa[14]]],to:[_0x3ed5xf[_0x64fa[15]]],subject:_0x3ed5x11[_0x64fa[16]],html:_0x3ed5x11[_0x64fa[17]]},{transaction:_0x3ed5xd?_0x3ed5xd[_0x64fa[18]]:null})}})})}Chat[_0x64fa[30]][_0x64fa[29]]= function(_0x3ed5x15,_0x3ed5x16){return ChatRoom[_0x64fa[37]]({tags:_0x3ed5x15[_0x64fa[35]][_0x64fa[34]](_0x64fa[33])},{where:{id:_0x3ed5x16[_0x64fa[36]]}})[_0x64fa[32]](function(_0x3ed5x17){console[_0x64fa[31]](_0x3ed5x17)})};Chat[_0x64fa[30]][_0x64fa[38]]= function(_0x3ed5x15,_0x3ed5x16){return MailAccount[_0x64fa[27]](_0x3ed5x15[_0x64fa[35]])[_0x64fa[20]](function(_0x3ed5x18){return MailMessage[_0x64fa[19]]({subject:_0x3ed5x15[_0x64fa[39]]|| null,from:[_0x3ed5x18[_0x64fa[40]]],to:_0x3ed5x15[_0x64fa[41]][_0x64fa[34]](_0x64fa[33]),cc:_0x3ed5x15[_0x64fa[42]]?_0x3ed5x15[_0x64fa[42]][_0x64fa[34]](_0x64fa[33]):[],html:_0x3ed5x15[_0x64fa[43]]?Mustache[_0x64fa[21]](_0x3ed5x15[_0x64fa[43]],_0x3ed5x16)[_0x64fa[45]](/&/g,_0x64fa[50])[_0x64fa[45]](/</g,_0x64fa[49])[_0x64fa[45]](/>/g,_0x64fa[48])[_0x64fa[45]](/"/g,_0x64fa[47])[_0x64fa[45]](/'/g,_0x64fa[46])[_0x64fa[45]](/\n/g,_0x64fa[44]):null,status:_0x64fa[51],auto:true,accountId:_0x3ed5x18[_0x64fa[36]],accountName:_0x3ed5x18[_0x64fa[24]]})})[_0x64fa[32]](function(_0x3ed5x17){console[_0x64fa[31]](_0x3ed5x17)})};Chat[_0x64fa[30]][_0x64fa[52]]= function(_0x3ed5x15,_0x3ed5x16){return ChatRoom[_0x64fa[37]]({status:_0x64fa[53],disposition:_0x3ed5x15[_0x64fa[35]]|| null},{individualHooks:true,where:{id:_0x3ed5x16[_0x64fa[36]]}})[_0x64fa[32]](function(_0x3ed5x17){console[_0x64fa[31]](_0x3ed5x17)})};module[_0x64fa[54]]= Chat
\ No newline at end of file