Built motion from commit 8d1370ff4.|1.0.34
[motion.git] / server / config / automations / mail.js
index 0a29677..68cb379 100644 (file)
@@ -1 +1 @@
-var _0xeafb=["\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","\x4D\x61\x69\x6C\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\x4D\x61\x69\x6C","\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\x4D\x61\x69\x6C\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\x4D\x61\x69\x6C\x20\x73\x65\x72\x76\x69\x63\x65\x20\x73\x74\x61\x72\x74\x65\x64","\x63\x68\x61\x6E\x6E\x65\x6C","\x6D\x61\x69\x6C","\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\x4D\x61\x69\x6C\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\x73\x74\x72\x6F\x79","\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\x69\x6E\x69\x74","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x4D\x61\x69\x6C\x20\x61\x72\x65"];_0xeafb[0];var _=require(_0xeafb[1]);var moment=require(_0xeafb[2]);var logger=require(_0xeafb[4])(_0xeafb[3]);var Automation=require(_0xeafb[6])[_0xeafb[5]];var MailRoom=require(_0xeafb[6])[_0xeafb[7]];var activeMailAutomations={};function executeAutomation(_0x6383x8){logger[_0xeafb[9]](_0xeafb[8],_0x6383x8);var _0x6383x9;return Automation[_0xeafb[35]](_0xeafb[34])[_0xeafb[33]](_0x6383x8)[_0xeafb[23]](function(_0x6383xe){_0x6383x9= _0x6383xe;var _0x6383xf=[];var _0x6383x10=[];var _0x6383x11={where:{}};_0x6383xe[_0xeafb[26]][_0xeafb[21]](function(_0x6383x12){_0x6383x10[_0xeafb[25]](getCondition(_0x6383x12[_0xeafb[24]]))});_0x6383xe[_0xeafb[27]][_0xeafb[21]](function(_0x6383x12){_0x6383xf[_0xeafb[25]](getCondition(_0x6383x12[_0xeafb[24]]))});if(_0x6383x10[_0xeafb[28]]){_0x6383x11[_0xeafb[30]][_0xeafb[29]]= _0x6383x10};if(_0x6383xf[_0xeafb[28]]){_0x6383x11[_0xeafb[30]][_0xeafb[31]]= _0x6383xf};return MailRoom[_0xeafb[32]](_0x6383x11)})[_0xeafb[23]](function(_0x6383xb){_0x6383xb[_0xeafb[21]](function(_0x6383xc){_0x6383x9[_0xeafb[22]][_0xeafb[21]](function(_0x6383xd){switch(_0x6383xd[_0xeafb[20]]){case _0xeafb[19]:setStatus(_0x6383xc[_0xeafb[17]],_0x6383xd[_0xeafb[18]]);break;default:}})})})[_0xeafb[16]](function(_0x6383xa){logger[_0xeafb[11]](_0xeafb[10]);logger[_0xeafb[11]](_0xeafb[12],_0x6383xa[_0xeafb[13]]);logger[_0xeafb[11]](_0xeafb[14],_0x6383xa[_0xeafb[15]])})}function setStatus(_0x6383x14,_0x6383x15){return MailRoom[_0xeafb[37]]({status:_0x6383x15},{where:{id:_0x6383x14}})[_0xeafb[16]](function(_0x6383xa){logger[_0xeafb[11]](_0xeafb[36]);logger[_0xeafb[11]](_0xeafb[12],_0x6383xa[_0xeafb[13]]);logger[_0xeafb[11]](_0xeafb[14],_0x6383xa[_0xeafb[15]])})}function getCondition(_0x6383x12){var _0x6383x17={};switch(_0x6383x12[_0xeafb[38]]){case _0xeafb[19]:switch(_0x6383x12[_0xeafb[42]]){case _0xeafb[40]:_0x6383x17[_0x6383x12[_0xeafb[38]]]= _0x6383x12[_0xeafb[39]];break;case _0xeafb[41]:_0x6383x17[_0x6383x12[_0xeafb[38]]]= {$ne:_0x6383x12[_0xeafb[39]]};break;default:};break;case _0xeafb[51]:var _0x6383x18=moment()[_0xeafb[46]](parseInt(_0x6383x12[_0xeafb[39]],10),_0xeafb[45])[_0xeafb[44]](_0xeafb[43]);switch(_0x6383x12[_0xeafb[42]]){case _0xeafb[47]:_0x6383x17[_0x6383x12[_0xeafb[38]]]= {lt:_0x6383x18};break;case _0xeafb[48]:_0x6383x17[_0x6383x12[_0xeafb[38]]]= {$lte:_0x6383x18};break;case _0xeafb[49]:_0x6383x17[_0x6383x12[_0xeafb[38]]]= {$gt:_0x6383x18};break;case _0xeafb[50]:_0x6383x17[_0x6383x12[_0xeafb[38]]]= {$gte:_0x6383x18};break;default:};break;default:};return _0x6383x17}function createInterval(_0x6383xe){logger[_0xeafb[9]](_0xeafb[52],_0x6383xe[_0xeafb[17]],_0xeafb[53],_0x6383xe[_0xeafb[54]]* 60* 1000);activeMailAutomations[_0xeafb[55]+ _0x6383xe[_0xeafb[17]]]= setInterval(function(){executeAutomation(_0x6383xe[_0xeafb[17]])},_0x6383xe[_0xeafb[54]]* 60* 1000)}module[_0xeafb[56]]= function(){logger[_0xeafb[9]](_0xeafb[57]);Automation[_0xeafb[62]](function(_0x6383x1a,_0x6383x1b){if(_0x6383x1a[_0xeafb[58]]=== _0xeafb[59]){logger[_0xeafb[61]](_0xeafb[52],_0x6383x1a[_0xeafb[17]],_0xeafb[60],_0x6383x1a[_0xeafb[19]]);if(_0x6383x1a[_0xeafb[19]]){createInterval(_0x6383x1a)}}});Automation[_0xeafb[65]](function(_0x6383x1a,_0x6383x1b){if(_0x6383x1a[_0xeafb[58]]=== _0xeafb[59]){logger[_0xeafb[61]](_0xeafb[52],_0x6383x1a[_0xeafb[17]],_0xeafb[63],_0x6383x1a[_0xeafb[19]]);if(activeMailAutomations[_0xeafb[55]+ _0x6383x1a[_0xeafb[17]]]){logger[_0xeafb[61]](_0xeafb[64],_0x6383x1a[_0xeafb[17]]);clearInterval(activeMailAutomations[_0xeafb[55]+ _0x6383x1a[_0xeafb[17]]]);delete activeMailAutomations[_0xeafb[55]+ _0x6383x1a[_0xeafb[17]]]};if(_0x6383x1a[_0xeafb[19]]){createInterval(_0x6383x1a)}}});Automation[_0xeafb[67]](function(_0x6383x1a,_0x6383x1b){if(_0x6383x1a[_0xeafb[58]]=== _0xeafb[59]){logger[_0xeafb[61]](_0xeafb[52],_0x6383x1a[_0xeafb[17]],_0xeafb[66]);if(activeMailAutomations[_0xeafb[55]+ _0x6383x1a[_0xeafb[17]]]){logger[_0xeafb[61]](_0xeafb[64],_0x6383x1a[_0xeafb[17]]);clearInterval(activeMailAutomations[_0xeafb[55]+ _0x6383x1a[_0xeafb[17]]]);delete activeMailAutomations[_0xeafb[55]+ _0x6383x1a[_0xeafb[17]]]}}});return Automation[_0xeafb[35]](_0xeafb[34])[_0xeafb[32]]({where:{status:true,channel:_0xeafb[59]},attributes:[_0xeafb[17],_0xeafb[54]]})[_0xeafb[23]](function(_0x6383x1c){logger[_0xeafb[61]](_0xeafb[69],_0x6383x1c[_0xeafb[28]]);_0x6383x1c[_0xeafb[21]](function(_0x6383xe){createInterval(_0x6383xe)})})[_0xeafb[16]](function(_0x6383xa){logger[_0xeafb[11]](_0xeafb[68]);logger[_0xeafb[11]](_0xeafb[12],_0x6383xa[_0xeafb[13]]);logger[_0xeafb[11]](_0xeafb[14],_0x6383xa[_0xeafb[15]])})}
\ No newline at end of file
+var _0x276c=["\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","\x4D\x61\x69\x6C\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\x4D\x61\x69\x6C","\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\x4D\x61\x69\x6C\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\x4D\x61\x69\x6C\x20\x73\x65\x72\x76\x69\x63\x65\x20\x73\x74\x61\x72\x74\x65\x64","\x63\x68\x61\x6E\x6E\x65\x6C","\x6D\x61\x69\x6C","\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\x4D\x61\x69\x6C\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\x73\x74\x72\x6F\x79","\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\x69\x6E\x69\x74","\x5B\x41\x75\x74\x6F\x6D\x61\x74\x69\x6F\x6E\x5D\x20\x4D\x61\x69\x6C\x20\x61\x72\x65"];_0x276c[0];var _=require(_0x276c[1]);var moment=require(_0x276c[2]);var logger=require(_0x276c[4])(_0x276c[3]);var Automation=require(_0x276c[6])[_0x276c[5]];var MailRoom=require(_0x276c[6])[_0x276c[7]];var activeMailAutomations={};function executeAutomation(_0xdb88x8){logger[_0x276c[9]](_0x276c[8],_0xdb88x8);var _0xdb88x9;return Automation[_0x276c[35]](_0x276c[34])[_0x276c[33]](_0xdb88x8)[_0x276c[23]](function(_0xdb88xe){_0xdb88x9= _0xdb88xe;var _0xdb88xf=[];var _0xdb88x10=[];var _0xdb88x11={where:{}};_0xdb88xe[_0x276c[26]][_0x276c[21]](function(_0xdb88x12){_0xdb88x10[_0x276c[25]](getCondition(_0xdb88x12[_0x276c[24]]))});_0xdb88xe[_0x276c[27]][_0x276c[21]](function(_0xdb88x12){_0xdb88xf[_0x276c[25]](getCondition(_0xdb88x12[_0x276c[24]]))});if(_0xdb88x10[_0x276c[28]]){_0xdb88x11[_0x276c[30]][_0x276c[29]]= _0xdb88x10};if(_0xdb88xf[_0x276c[28]]){_0xdb88x11[_0x276c[30]][_0x276c[31]]= _0xdb88xf};return MailRoom[_0x276c[32]](_0xdb88x11)})[_0x276c[23]](function(_0xdb88xb){_0xdb88xb[_0x276c[21]](function(_0xdb88xc){_0xdb88x9[_0x276c[22]][_0x276c[21]](function(_0xdb88xd){switch(_0xdb88xd[_0x276c[20]]){case _0x276c[19]:setStatus(_0xdb88xc[_0x276c[17]],_0xdb88xd[_0x276c[18]]);break;default:}})})})[_0x276c[16]](function(_0xdb88xa){logger[_0x276c[11]](_0x276c[10]);logger[_0x276c[11]](_0x276c[12],_0xdb88xa[_0x276c[13]]);logger[_0x276c[11]](_0x276c[14],_0xdb88xa[_0x276c[15]])})}function setStatus(_0xdb88x14,_0xdb88x15){return MailRoom[_0x276c[37]]({status:_0xdb88x15},{where:{id:_0xdb88x14}})[_0x276c[16]](function(_0xdb88xa){logger[_0x276c[11]](_0x276c[36]);logger[_0x276c[11]](_0x276c[12],_0xdb88xa[_0x276c[13]]);logger[_0x276c[11]](_0x276c[14],_0xdb88xa[_0x276c[15]])})}function getCondition(_0xdb88x12){var _0xdb88x17={};switch(_0xdb88x12[_0x276c[38]]){case _0x276c[19]:switch(_0xdb88x12[_0x276c[42]]){case _0x276c[40]:_0xdb88x17[_0xdb88x12[_0x276c[38]]]= _0xdb88x12[_0x276c[39]];break;case _0x276c[41]:_0xdb88x17[_0xdb88x12[_0x276c[38]]]= {$ne:_0xdb88x12[_0x276c[39]]};break;default:};break;case _0x276c[51]:var _0xdb88x18=moment()[_0x276c[46]](parseInt(_0xdb88x12[_0x276c[39]],10),_0x276c[45])[_0x276c[44]](_0x276c[43]);switch(_0xdb88x12[_0x276c[42]]){case _0x276c[47]:_0xdb88x17[_0xdb88x12[_0x276c[38]]]= {lt:_0xdb88x18};break;case _0x276c[48]:_0xdb88x17[_0xdb88x12[_0x276c[38]]]= {$lte:_0xdb88x18};break;case _0x276c[49]:_0xdb88x17[_0xdb88x12[_0x276c[38]]]= {$gt:_0xdb88x18};break;case _0x276c[50]:_0xdb88x17[_0xdb88x12[_0x276c[38]]]= {$gte:_0xdb88x18};break;default:};break;default:};return _0xdb88x17}function createInterval(_0xdb88xe){logger[_0x276c[9]](_0x276c[52],_0xdb88xe[_0x276c[17]],_0x276c[53],_0xdb88xe[_0x276c[54]]* 60* 1000);activeMailAutomations[_0x276c[55]+ _0xdb88xe[_0x276c[17]]]= setInterval(function(){executeAutomation(_0xdb88xe[_0x276c[17]])},_0xdb88xe[_0x276c[54]]* 60* 1000)}module[_0x276c[56]]= function(){logger[_0x276c[9]](_0x276c[57]);Automation[_0x276c[62]](function(_0xdb88x1a,_0xdb88x1b){if(_0xdb88x1a[_0x276c[58]]=== _0x276c[59]){logger[_0x276c[61]](_0x276c[52],_0xdb88x1a[_0x276c[17]],_0x276c[60],_0xdb88x1a[_0x276c[19]]);if(_0xdb88x1a[_0x276c[19]]){createInterval(_0xdb88x1a)}}});Automation[_0x276c[65]](function(_0xdb88x1a,_0xdb88x1b){if(_0xdb88x1a[_0x276c[58]]=== _0x276c[59]){logger[_0x276c[61]](_0x276c[52],_0xdb88x1a[_0x276c[17]],_0x276c[63],_0xdb88x1a[_0x276c[19]]);if(activeMailAutomations[_0x276c[55]+ _0xdb88x1a[_0x276c[17]]]){logger[_0x276c[61]](_0x276c[64],_0xdb88x1a[_0x276c[17]]);clearInterval(activeMailAutomations[_0x276c[55]+ _0xdb88x1a[_0x276c[17]]]);delete activeMailAutomations[_0x276c[55]+ _0xdb88x1a[_0x276c[17]]]};if(_0xdb88x1a[_0x276c[19]]){createInterval(_0xdb88x1a)}}});Automation[_0x276c[67]](function(_0xdb88x1a,_0xdb88x1b){if(_0xdb88x1a[_0x276c[58]]=== _0x276c[59]){logger[_0x276c[61]](_0x276c[52],_0xdb88x1a[_0x276c[17]],_0x276c[66]);if(activeMailAutomations[_0x276c[55]+ _0xdb88x1a[_0x276c[17]]]){logger[_0x276c[61]](_0x276c[64],_0xdb88x1a[_0x276c[17]]);clearInterval(activeMailAutomations[_0x276c[55]+ _0xdb88x1a[_0x276c[17]]]);delete activeMailAutomations[_0x276c[55]+ _0xdb88x1a[_0x276c[17]]]}}});return Automation[_0x276c[35]](_0x276c[34])[_0x276c[32]]({where:{status:true,channel:_0x276c[59]},attributes:[_0x276c[17],_0x276c[54]]})[_0x276c[23]](function(_0xdb88x1c){logger[_0x276c[61]](_0x276c[69],_0xdb88x1c[_0x276c[28]]);_0xdb88x1c[_0x276c[21]](function(_0xdb88xe){createInterval(_0xdb88xe)})})[_0x276c[16]](function(_0xdb88xa){logger[_0x276c[11]](_0x276c[68]);logger[_0x276c[11]](_0x276c[12],_0xdb88xa[_0x276c[13]]);logger[_0x276c[11]](_0x276c[14],_0xdb88xa[_0x276c[15]])})}
\ No newline at end of file