Built motion from commit ec3309576.|1.0.33
[motion.git] / server / config / automations / chat.js
index df6879f..fbfb819 100644 (file)
@@ -1 +1 @@
-var _0x3692=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x43\x68\x61\x74","\x6C\x6F\x67","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x43\x68\x61\x74\x20\x65\x78\x65\x63","\x65\x72\x72\x6F\x72","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x53\x74\x61\x63\x6B\x3A","\x73\x74\x61\x63\x6B","\x63\x61\x74\x63\x68","\x69\x64","\x64\x61\x74\x61\x31","\x73\x74\x61\x74\x75\x73","\x61\x63\x74\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x41\x63\x74\x69\x6F\x6E\x73","\x74\x68\x65\x6E","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x75\x73\x68","\x41\x6C\x6C","\x41\x6E\x79","\x6C\x65\x6E\x67\x74\x68","\x24\x61\x6E\x64","\x77\x68\x65\x72\x65","\x24\x6F\x72","\x66\x69\x6E\x64\x41\x6C\x6C","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x6C\x6C","\x73\x63\x6F\x70\x65","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x4D\x61\x69\x6C\x20\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x75\x70\x64\x61\x74\x65","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x65\x71\x75\x61\x6C\x73","\x6E\x6F\x74\x5F\x65\x71\x75\x61\x6C\x73","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x68\x6F\x75\x72\x73","\x73\x75\x62\x74\x72\x61\x63\x74","\x67\x72\x65\x61\x74\x65\x72","\x67\x72\x65\x61\x74\x65\x72\x5F\x6F\x72\x5F\x65\x71\x75\x61\x6C","\x6C\x65\x73\x73","\x6C\x65\x73\x73\x5F\x6F\x72\x5F\x65\x71\x75\x61\x6C","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x4D\x61\x69\x6C","\x73\x65\x74\x20\x77\x69\x74\x68\x20\x74\x69\x6D\x65\x6F\x75\x74","\x74\x69\x6D\x65\x6F\x75\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x43\x68\x61\x74\x20\x73\x65\x72\x76\x69\x63\x65\x20\x73\x74\x61\x72\x74\x65\x64","\x63\x68\x61\x6E\x6E\x65\x6C","\x63\x68\x61\x74","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x43\x68\x61\x74","\x63\x72\x65\x61\x74\x65\x64\x2C\x20\x74\x68\x65\x20\x73\x74\x61\x74\x75\x73\x20\x69\x73","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x64\x2C\x20\x74\x68\x65\x20\x73\x74\x61\x74\x75\x73\x20\x69\x73","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x43\x68\x61\x74\x20\x75\x6E\x73\x65\x74\x20","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x20\x64\x65\x6C\x65\x74\x65\x64","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x43\x68\x61\x74\x20\x69\x6E\x69\x74","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x43\x68\x61\x74\x20\x61\x72\x65"];_0x3692[0];var _=require(_0x3692[1]);var moment=require(_0x3692[2]);var Automation=require(_0x3692[4])[_0x3692[3]];var ChatRoom=require(_0x3692[4])[_0x3692[5]];var activeChatAutomations={};function executeAutomation(_0x3576x7){console[_0x3692[7]](_0x3692[6],_0x3576x7);var _0x3576x8;return Automation[_0x3692[33]](_0x3692[32])[_0x3692[31]](_0x3576x7)[_0x3692[21]](function(_0x3576xd){_0x3576x8= _0x3576xd;var _0x3576xe=[];var _0x3576xf=[];var _0x3576x10={where:{}};_0x3576xd[_0x3692[24]][_0x3692[19]](function(_0x3576x11){_0x3576xf[_0x3692[23]](getCondition(_0x3576x11[_0x3692[22]]))});_0x3576xd[_0x3692[25]][_0x3692[19]](function(_0x3576x11){_0x3576xe[_0x3692[23]](getCondition(_0x3576x11[_0x3692[22]]))});if(_0x3576xf[_0x3692[26]]){_0x3576x10[_0x3692[28]][_0x3692[27]]= _0x3576xf};if(_0x3576xe[_0x3692[26]]){_0x3576x10[_0x3692[28]][_0x3692[29]]= _0x3576xe};return ChatRoom[_0x3692[30]](_0x3576x10)})[_0x3692[21]](function(_0x3576xa){_0x3576xa[_0x3692[19]](function(_0x3576xb){_0x3576x8[_0x3692[20]][_0x3692[19]](function(_0x3576xc){switch(_0x3576xc[_0x3692[18]]){case _0x3692[17]:setStatus(_0x3576xb[_0x3692[15]],_0x3576xc[_0x3692[16]]);break;default:}})})})[_0x3692[14]](function(_0x3576x9){console[_0x3692[9]](_0x3692[8]);console[_0x3692[9]](_0x3692[10],_0x3576x9[_0x3692[11]]);console[_0x3692[9]](_0x3692[12],_0x3576x9[_0x3692[13]])})}function setStatus(_0x3576x13,_0x3576x14){return ChatRoom[_0x3692[35]]({status:_0x3576x14},{where:{id:_0x3576x13}})[_0x3692[14]](function(_0x3576x9){console[_0x3692[9]](_0x3692[34]);console[_0x3692[9]](_0x3692[10],_0x3576x9[_0x3692[11]]);console[_0x3692[9]](_0x3692[12],_0x3576x9[_0x3692[13]])})}function getCondition(_0x3576x11){var _0x3576x16={};switch(_0x3576x11[_0x3692[36]]){case _0x3692[17]:switch(_0x3576x11[_0x3692[40]]){case _0x3692[38]:_0x3576x16[_0x3576x11[_0x3692[36]]]= _0x3576x11[_0x3692[37]];break;case _0x3692[39]:_0x3576x16[_0x3576x11[_0x3692[36]]]= {$ne:_0x3576x11[_0x3692[37]]};break;default:};break;case _0x3692[49]:var _0x3576x17=moment()[_0x3692[44]](parseInt(_0x3576x11[_0x3692[37]],10),_0x3692[43])[_0x3692[42]](_0x3692[41]);switch(_0x3576x11[_0x3692[40]]){case _0x3692[45]:_0x3576x16[_0x3576x11[_0x3692[36]]]= {lt:_0x3576x17};break;case _0x3692[46]:_0x3576x16[_0x3576x11[_0x3692[36]]]= {$lte:_0x3576x17};break;case _0x3692[47]:_0x3576x16[_0x3576x11[_0x3692[36]]]= {$gt:_0x3576x17};break;case _0x3692[48]:_0x3576x16[_0x3576x11[_0x3692[36]]]= {$gte:_0x3576x17};break;default:};break;default:};return _0x3576x16}function createInterval(_0x3576xd){console[_0x3692[7]](_0x3692[50],_0x3576xd[_0x3692[15]],_0x3692[51],_0x3576xd[_0x3692[52]]* 60* 1000);activeChatAutomations[_0x3692[53]+ _0x3576xd[_0x3692[15]]]= setInterval(function(){executeAutomation(_0x3576xd[_0x3692[15]])},_0x3576xd[_0x3692[52]]* 60* 1000)}module[_0x3692[54]]= function(){console[_0x3692[7]](_0x3692[55]);Automation[_0x3692[60]](function(_0x3576x19,_0x3576x1a){if(_0x3576x19[_0x3692[56]]=== _0x3692[57]){console[_0x3692[7]](_0x3692[58],_0x3576x19[_0x3692[15]],_0x3692[59],_0x3576x19[_0x3692[17]]);if(_0x3576x19[_0x3692[17]]){createInterval(_0x3576x19)}}});Automation[_0x3692[63]](function(_0x3576x19,_0x3576x1a){if(_0x3576x19[_0x3692[56]]=== _0x3692[57]){console[_0x3692[7]](_0x3692[58],_0x3576x19[_0x3692[15]],_0x3692[61],_0x3576x19[_0x3692[17]]);if(activeChatAutomations[_0x3692[53]+ _0x3576x19[_0x3692[15]]]){console[_0x3692[7]](_0x3692[62],_0x3576x19[_0x3692[15]]);clearInterval(activeChatAutomations[_0x3692[53]+ _0x3576x19[_0x3692[15]]]);delete activeChatAutomations[_0x3692[53]+ _0x3576x19[_0x3692[15]]]};if(_0x3576x19[_0x3692[17]]){createInterval(_0x3576x19)}}});Automation[_0x3692[65]](function(_0x3576x19,_0x3576x1a){if(_0x3576x19[_0x3692[56]]=== _0x3692[57]){console[_0x3692[7]](_0x3692[58],_0x3576x19[_0x3692[15]],_0x3692[64]);if(activeChatAutomations[_0x3692[53]+ _0x3576x19[_0x3692[15]]]){console[_0x3692[7]](_0x3692[62],_0x3576x19[_0x3692[15]]);clearInterval(activeChatAutomations[_0x3692[53]+ _0x3576x19[_0x3692[15]]]);delete activeChatAutomations[_0x3692[53]+ _0x3576x19[_0x3692[15]]]}}});return Automation[_0x3692[33]](_0x3692[32])[_0x3692[30]]({where:{status:true,channel:_0x3692[57]},attributes:[_0x3692[15],_0x3692[52]]})[_0x3692[21]](function(_0x3576x1b){console[_0x3692[7]](_0x3692[67],_0x3576x1b[_0x3692[26]]);_0x3576x1b[_0x3692[19]](function(_0x3576xd){createInterval(_0x3576xd)})})[_0x3692[14]](function(_0x3576x9){console[_0x3692[9]](_0x3692[66]);console[_0x3692[9]](_0x3692[10],_0x3576x9[_0x3692[11]]);console[_0x3692[9]](_0x3692[12],_0x3576x9[_0x3692[13]])})}
\ No newline at end of file
+var _0x2591=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x6D\x65\x6E\x74","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x43\x68\x61\x74","\x69\x6E\x66\x6F","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x43\x68\x61\x74\x20\x65\x78\x65\x63","\x65\x72\x72\x6F\x72","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x6D\x65\x73\x73\x61\x67\x65","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x53\x74\x61\x63\x6B\x3A","\x73\x74\x61\x63\x6B","\x63\x61\x74\x63\x68","\x69\x64","\x64\x61\x74\x61\x31","\x73\x74\x61\x74\x75\x73","\x61\x63\x74\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x41\x63\x74\x69\x6F\x6E\x73","\x74\x68\x65\x6E","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x70\x75\x73\x68","\x41\x6C\x6C","\x41\x6E\x79","\x6C\x65\x6E\x67\x74\x68","\x24\x61\x6E\x64","\x77\x68\x65\x72\x65","\x24\x6F\x72","\x66\x69\x6E\x64\x41\x6C\x6C","\x66\x69\x6E\x64\x42\x79\x49\x64","\x61\x6C\x6C","\x73\x63\x6F\x70\x65","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x4D\x61\x69\x6C\x20\x73\x65\x74\x53\x74\x61\x74\x75\x73","\x75\x70\x64\x61\x74\x65","\x66\x69\x65\x6C\x64","\x76\x61\x6C\x75\x65","\x65\x71\x75\x61\x6C\x73","\x6E\x6F\x74\x5F\x65\x71\x75\x61\x6C\x73","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x59\x59\x59\x59\x2D\x4D\x4D\x2D\x44\x44\x20\x48\x48\x3A\x6D\x6D\x3A\x73\x73","\x66\x6F\x72\x6D\x61\x74","\x68\x6F\x75\x72\x73","\x73\x75\x62\x74\x72\x61\x63\x74","\x67\x72\x65\x61\x74\x65\x72","\x67\x72\x65\x61\x74\x65\x72\x5F\x6F\x72\x5F\x65\x71\x75\x61\x6C","\x6C\x65\x73\x73","\x6C\x65\x73\x73\x5F\x6F\x72\x5F\x65\x71\x75\x61\x6C","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x4D\x61\x69\x6C","\x73\x65\x74\x20\x77\x69\x74\x68\x20\x74\x69\x6D\x65\x6F\x75\x74","\x74\x69\x6D\x65\x6F\x75\x74","\x69\x6E\x74\x65\x72\x76\x61\x6C","\x65\x78\x70\x6F\x72\x74\x73","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x43\x68\x61\x74\x20\x73\x65\x72\x76\x69\x63\x65\x20\x73\x74\x61\x72\x74\x65\x64","\x63\x68\x61\x6E\x6E\x65\x6C","\x63\x68\x61\x74","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x43\x68\x61\x74","\x63\x72\x65\x61\x74\x65\x64\x2C\x20\x74\x68\x65\x20\x73\x74\x61\x74\x75\x73\x20\x69\x73","\x64\x65\x62\x75\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x75\x70\x64\x61\x74\x65\x64\x2C\x20\x74\x68\x65\x20\x73\x74\x61\x74\x75\x73\x20\x69\x73","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x43\x68\x61\x74\x20\x75\x6E\x73\x65\x74\x20","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x20\x64\x65\x6C\x65\x74\x65\x64","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x45\x72\x72\x6F\x72\x20\x69\x6E\x20\x43\x68\x61\x74\x20\x69\x6E\x69\x74","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x43\x68\x61\x74\x20\x61\x72\x65"];_0x2591[0];var _=require(_0x2591[1]);var moment=require(_0x2591[2]);var logger=require(_0x2591[4])(_0x2591[3]);var Automation=require(_0x2591[6])[_0x2591[5]];var ChatRoom=require(_0x2591[6])[_0x2591[7]];var activeChatAutomations={};function executeAutomation(_0x1833x8){logger[_0x2591[9]](_0x2591[8],_0x1833x8);var _0x1833x9;return Automation[_0x2591[35]](_0x2591[34])[_0x2591[33]](_0x1833x8)[_0x2591[23]](function(_0x1833xe){_0x1833x9= _0x1833xe;var _0x1833xf=[];var _0x1833x10=[];var _0x1833x11={where:{}};_0x1833xe[_0x2591[26]][_0x2591[21]](function(_0x1833x12){_0x1833x10[_0x2591[25]](getCondition(_0x1833x12[_0x2591[24]]))});_0x1833xe[_0x2591[27]][_0x2591[21]](function(_0x1833x12){_0x1833xf[_0x2591[25]](getCondition(_0x1833x12[_0x2591[24]]))});if(_0x1833x10[_0x2591[28]]){_0x1833x11[_0x2591[30]][_0x2591[29]]= _0x1833x10};if(_0x1833xf[_0x2591[28]]){_0x1833x11[_0x2591[30]][_0x2591[31]]= _0x1833xf};return ChatRoom[_0x2591[32]](_0x1833x11)})[_0x2591[23]](function(_0x1833xb){_0x1833xb[_0x2591[21]](function(_0x1833xc){_0x1833x9[_0x2591[22]][_0x2591[21]](function(_0x1833xd){switch(_0x1833xd[_0x2591[20]]){case _0x2591[19]:setStatus(_0x1833xc[_0x2591[17]],_0x1833xd[_0x2591[18]]);break;default:}})})})[_0x2591[16]](function(_0x1833xa){logger[_0x2591[11]](_0x2591[10]);logger[_0x2591[11]](_0x2591[12],_0x1833xa[_0x2591[13]]);logger[_0x2591[11]](_0x2591[14],_0x1833xa[_0x2591[15]])})}function setStatus(_0x1833x14,_0x1833x15){return ChatRoom[_0x2591[37]]({status:_0x1833x15},{where:{id:_0x1833x14}})[_0x2591[16]](function(_0x1833xa){logger[_0x2591[11]](_0x2591[36]);logger[_0x2591[11]](_0x2591[12],_0x1833xa[_0x2591[13]]);logger[_0x2591[11]](_0x2591[14],_0x1833xa[_0x2591[15]])})}function getCondition(_0x1833x12){var _0x1833x17={};switch(_0x1833x12[_0x2591[38]]){case _0x2591[19]:switch(_0x1833x12[_0x2591[42]]){case _0x2591[40]:_0x1833x17[_0x1833x12[_0x2591[38]]]= _0x1833x12[_0x2591[39]];break;case _0x2591[41]:_0x1833x17[_0x1833x12[_0x2591[38]]]= {$ne:_0x1833x12[_0x2591[39]]};break;default:};break;case _0x2591[51]:var _0x1833x18=moment()[_0x2591[46]](parseInt(_0x1833x12[_0x2591[39]],10),_0x2591[45])[_0x2591[44]](_0x2591[43]);switch(_0x1833x12[_0x2591[42]]){case _0x2591[47]:_0x1833x17[_0x1833x12[_0x2591[38]]]= {lt:_0x1833x18};break;case _0x2591[48]:_0x1833x17[_0x1833x12[_0x2591[38]]]= {$lte:_0x1833x18};break;case _0x2591[49]:_0x1833x17[_0x1833x12[_0x2591[38]]]= {$gt:_0x1833x18};break;case _0x2591[50]:_0x1833x17[_0x1833x12[_0x2591[38]]]= {$gte:_0x1833x18};break;default:};break;default:};return _0x1833x17}function createInterval(_0x1833xe){logger[_0x2591[9]](_0x2591[52],_0x1833xe[_0x2591[17]],_0x2591[53],_0x1833xe[_0x2591[54]]* 60* 1000);activeChatAutomations[_0x2591[55]+ _0x1833xe[_0x2591[17]]]= setInterval(function(){executeAutomation(_0x1833xe[_0x2591[17]])},_0x1833xe[_0x2591[54]]* 60* 1000)}module[_0x2591[56]]= function(){logger[_0x2591[9]](_0x2591[57]);Automation[_0x2591[63]](function(_0x1833x1a,_0x1833x1b){if(_0x1833x1a[_0x2591[58]]=== _0x2591[59]){logger[_0x2591[62]](_0x2591[60],_0x1833x1a[_0x2591[17]],_0x2591[61],_0x1833x1a[_0x2591[19]]);if(_0x1833x1a[_0x2591[19]]){createInterval(_0x1833x1a)}}});Automation[_0x2591[66]](function(_0x1833x1a,_0x1833x1b){if(_0x1833x1a[_0x2591[58]]=== _0x2591[59]){logger[_0x2591[62]](_0x2591[60],_0x1833x1a[_0x2591[17]],_0x2591[64],_0x1833x1a[_0x2591[19]]);if(activeChatAutomations[_0x2591[55]+ _0x1833x1a[_0x2591[17]]]){logger[_0x2591[62]](_0x2591[65],_0x1833x1a[_0x2591[17]]);clearInterval(activeChatAutomations[_0x2591[55]+ _0x1833x1a[_0x2591[17]]]);delete activeChatAutomations[_0x2591[55]+ _0x1833x1a[_0x2591[17]]]};if(_0x1833x1a[_0x2591[19]]){createInterval(_0x1833x1a)}}});Automation[_0x2591[68]](function(_0x1833x1a,_0x1833x1b){if(_0x1833x1a[_0x2591[58]]=== _0x2591[59]){logger[_0x2591[62]](_0x2591[60],_0x1833x1a[_0x2591[17]],_0x2591[67]);if(activeChatAutomations[_0x2591[55]+ _0x1833x1a[_0x2591[17]]]){logger[_0x2591[62]](_0x2591[65],_0x1833x1a[_0x2591[17]]);clearInterval(activeChatAutomations[_0x2591[55]+ _0x1833x1a[_0x2591[17]]]);delete activeChatAutomations[_0x2591[55]+ _0x1833x1a[_0x2591[17]]]}}});return Automation[_0x2591[35]](_0x2591[34])[_0x2591[32]]({where:{status:true,channel:_0x2591[59]},attributes:[_0x2591[17],_0x2591[54]]})[_0x2591[23]](function(_0x1833x1c){logger[_0x2591[62]](_0x2591[70],_0x1833x1c[_0x2591[28]]);_0x1833x1c[_0x2591[21]](function(_0x1833xe){createInterval(_0x1833xe)})})[_0x2591[16]](function(_0x1833xa){logger[_0x2591[11]](_0x2591[69]);logger[_0x2591[11]](_0x2591[12],_0x1833xa[_0x2591[13]]);logger[_0x2591[11]](_0x2591[14],_0x1833xa[_0x2591[15]])})}
\ No newline at end of file