Built motion from commit bfa6da2.|0.0.130
[motion.git] / server / config / triggers / chat.js
index 217aa88..8122f87 100644 (file)
@@ -1 +1 @@
-var _0xc72f=["\x6C\x6F\x64\x61\x73\x68","\x6D\x75\x73\x74\x61\x63\x68\x65","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\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\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","\x65\x78\x70\x6F\x72\x74\x73"];var _=require(_0xc72f[0]);var Mustache=require(_0xc72f[1]);var sequelize=require(_0xc72f[3])[_0xc72f[2]];var ChatEnquiry=require(_0xc72f[3])[_0xc72f[4]];var ChatWebsite=require(_0xc72f[3])[_0xc72f[5]];var MailMessage=require(_0xc72f[3])[_0xc72f[6]];var MailServerOut=require(_0xc72f[3])[_0xc72f[7]];function Chat(){console[_0xc72f[9]](_0xc72f[8]);ChatEnquiry[_0xc72f[24]](function(_0x13f4x9,_0x13f4xa){var _0x13f4xb=_0x13f4x9;var _0x13f4xc;var _0x13f4xd;var _0x13f4xe;return ChatWebsite[_0xc72f[23]](_0x13f4x9.ChatWebsiteId)[_0xc72f[16]](function(_0x13f4x11){_0x13f4xc=_0x13f4x11;_0x13f4xb[_0xc72f[19]]=_0x13f4xc[_0xc72f[20]];if(_0x13f4xc[_0xc72f[21]]&&_0x13f4xc[_0xc72f[11]]){return _0x13f4xc[_0xc72f[22]]()}else {return null}})[_0xc72f[16]](function(_0x13f4x10){_0x13f4xe=_0x13f4x10;if(_0x13f4xe){_0x13f4xe[_0xc72f[13]]=Mustache[_0xc72f[17]](_0x13f4xe[_0xc72f[13]],_0x13f4xb);_0x13f4xe[_0xc72f[12]]=Mustache[_0xc72f[17]](_0x13f4xe[_0xc72f[12]],_0x13f4xb);return MailServerOut[_0xc72f[18]]({where:{service:true}})}else {return null}})[_0xc72f[16]](function(_0x13f4xf){_0x13f4xd=_0x13f4xf;if(_0x13f4xd){return MailMessage[_0xc72f[15]]({from:[_0x13f4xd[_0xc72f[10]]],to:[_0x13f4xc[_0xc72f[11]]],subject:_0x13f4xe[_0xc72f[12]],html:_0x13f4xe[_0xc72f[13]]},{transaction:_0x13f4xa?_0x13f4xa[_0xc72f[14]]:null})}})})}module[_0xc72f[25]]=Chat
\ No newline at end of file
+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