Built motion from commit 1038d87.|0.0.141
[motion.git] / server / config / triggers / chat.js
index a891f0c..0fda774 100644 (file)
@@ -1 +1 @@
-var _0x671d=["\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"];_0x671d[0];const _=require(_0x671d[1]);const rp=require(_0x671d[2]);const Mustache=require(_0x671d[3]);const Template=require(_0x671d[5])[_0x671d[4]];const ChatRoom=require(_0x671d[5])[_0x671d[6]];const ChatEnquiry=require(_0x671d[5])[_0x671d[7]];const ChatWebsite=require(_0x671d[5])[_0x671d[8]];const MailMessage=require(_0x671d[5])[_0x671d[9]];const MailAccount=require(_0x671d[5])[_0x671d[10]];const MailServerOut=require(_0x671d[5])[_0x671d[11]];function Chat(){console[_0x671d[13]](_0x671d[12]);ChatEnquiry[_0x671d[28]](function(_0x2f32xc,_0x2f32xd){var _0x2f32xe=_0x2f32xc;var _0x2f32xf;var _0x2f32x10;var _0x2f32x11;return ChatWebsite[_0x671d[27]](_0x2f32xc.ChatWebsiteId)[_0x671d[20]](function(_0x2f32x14){_0x2f32xf= _0x2f32x14;_0x2f32xe[_0x671d[23]]= _0x2f32xf[_0x671d[24]];if(_0x2f32xf[_0x671d[25]]&& _0x2f32xf[_0x671d[15]]){return _0x2f32xf[_0x671d[26]]()}else {return null}})[_0x671d[20]](function(_0x2f32x13){_0x2f32x11= _0x2f32x13;if(_0x2f32x11){_0x2f32x11[_0x671d[17]]= Mustache[_0x671d[21]](_0x2f32x11[_0x671d[17]],_0x2f32xe);_0x2f32x11[_0x671d[16]]= Mustache[_0x671d[21]](_0x2f32x11[_0x671d[16]],_0x2f32xe);return MailServerOut[_0x671d[22]]({where:{service:true}})}else {return null}})[_0x671d[20]](function(_0x2f32x12){_0x2f32x10= _0x2f32x12;if(_0x2f32x10){return MailMessage[_0x671d[19]]({from:[_0x2f32x10[_0x671d[14]]],to:[_0x2f32xf[_0x671d[15]]],subject:_0x2f32x11[_0x671d[16]],html:_0x2f32x11[_0x671d[17]]},{transaction:_0x2f32xd?_0x2f32xd[_0x671d[18]]:null})}})})}Chat[_0x671d[30]][_0x671d[29]]= function(_0x2f32x15,_0x2f32x16){var _0x2f32xd={method:_0x2f32x15[_0x671d[31]],uri:_0x2f32x15[_0x671d[32]],json:true};switch(_0x2f32x15[_0x671d[31]]){case _0x671d[34]:_0x2f32xd[_0x671d[33]]= _0x2f32x16;break;case _0x671d[36]:_0x2f32xd[_0x671d[35]]= _0x2f32x16;break;default:};return rp(_0x2f32xd)[_0x671d[38]](function(_0x2f32x17){console[_0x671d[37]](_0x2f32x17)})};Chat[_0x671d[30]][_0x671d[39]]= function(_0x2f32x15,_0x2f32x16){return ChatRoom[_0x671d[43]]({tags:_0x2f32x15[_0x671d[31]][_0x671d[41]](_0x671d[40])},{where:{id:_0x2f32x16[_0x671d[42]]}})[_0x671d[38]](function(_0x2f32x17){console[_0x671d[37]](_0x2f32x17)})};Chat[_0x671d[30]][_0x671d[44]]= function(_0x2f32x15,_0x2f32x16){return MailAccount[_0x671d[27]](_0x2f32x15[_0x671d[31]])[_0x671d[20]](function(_0x2f32x18){return MailMessage[_0x671d[19]]({subject:_0x2f32x15[_0x671d[45]]|| null,from:[_0x2f32x18[_0x671d[46]]],to:_0x2f32x15[_0x671d[32]][_0x671d[41]](_0x671d[40]),cc:_0x2f32x15[_0x671d[47]]?_0x2f32x15[_0x671d[47]][_0x671d[41]](_0x671d[40]):[],html:_0x2f32x15[_0x671d[48]]?Mustache[_0x671d[21]](_0x2f32x15[_0x671d[48]],_0x2f32x16)[_0x671d[50]](/&/g,_0x671d[55])[_0x671d[50]](/</g,_0x671d[54])[_0x671d[50]](/>/g,_0x671d[53])[_0x671d[50]](/"/g,_0x671d[52])[_0x671d[50]](/'/g,_0x671d[51])[_0x671d[50]](/\n/g,_0x671d[49]):null,status:_0x671d[56],auto:true,accountId:_0x2f32x18[_0x671d[42]],accountName:_0x2f32x18[_0x671d[24]]})})[_0x671d[38]](function(_0x2f32x17){console[_0x671d[37]](_0x2f32x17)})};Chat[_0x671d[30]][_0x671d[57]]= function(_0x2f32x15,_0x2f32x16){return ChatRoom[_0x671d[43]]({status:_0x671d[58],disposition:_0x2f32x15[_0x671d[31]]|| null},{individualHooks:true,where:{id:_0x2f32x16[_0x671d[42]]}})[_0x671d[38]](function(_0x2f32x17){console[_0x671d[37]](_0x2f32x17)})};module[_0x671d[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