Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / config / triggers / index.js
index 4fd4e14..0f81c8c 100644 (file)
@@ -1 +1 @@
-var _0x2977=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2F\x75\x74\x69\x6C","\x2E\x2F\x76\x6F\x69\x63\x65","\x2E\x2F\x6D\x61\x69\x6C","\x2E\x2F\x63\x68\x61\x74","\x2E\x2F\x63\x6D","\x2E\x2F\x6A\x73\x63\x72\x69\x70\x74\x79","\x2E\x2E\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x54\x72\x69\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x6F\x6F\x6C\x73\x41\x63\x74\x69\x6F\x6E","\x54\x6F\x6F\x6C\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x65\x78\x70\x6F\x72\x74\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x6C\x65\x6E\x67\x74\x68","\x6C\x6F\x67","\x76\x6F\x69\x63\x65","\x66\x69\x6C\x74\x65\x72","\x67\x65\x74\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x54\x72\x69\x67\x67\x65\x72\x73","\x41\x66\x74\x65\x72\x20\x61\x67\x65\x6E\x74\x20\x63\x72\x65\x61\x74\x65\x2C\x20\x41\x63\x74\x69\x6F\x6E\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x63\x68\x61\x6E\x67\x65\x64","\x41\x66\x74\x65\x72\x20\x61\x67\x65\x6E\x74\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x41\x63\x74\x69\x6F\x6E\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x52\x45\x43\x45\x49\x56\x45\x44","\x6D\x61\x69\x6C","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x6C\x6C","\x73\x63\x6F\x70\x65","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x61\x63\x74\x69\x6F\x6E\x20\x22","\x61\x63\x74\x69\x6F\x6E","\x22","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x61\x6E\x61\x67\x65\x43\x6F\x6E\x74\x61\x63\x74","\x63\x6F\x6E\x74\x61\x63\x74\x4D\x61\x6E\x61\x67\x65\x72","\x64\x61\x74\x61\x31","\x6D\x61\x6E\x61\x67\x65\x4A\x73\x63\x72\x69\x70\x74\x79","\x6A\x73\x63\x72\x69\x70\x74\x79","\x73\x65\x6E\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x6D\x61\x6E\x61\x67\x65\x45\x76\x65\x6E\x74","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x54\x72\x69\x67\x67\x65\x72\x3A\x20\x41\x63\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x20","\x66\x6F\x72\x45\x61\x63\x68","\x69\x64","\x72\x65\x6D\x6F\x76\x65","\x41\x66\x74\x65\x72\x20\x64\x65\x73\x74\x72\x6F\x79\x2C\x20\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x77\x68\x65\x72\x65","\x66\x69\x6E\x64","\x41\x63\x74\x69\x6F\x6E\x73","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x70\x75\x73\x68","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x54\x72\x69\x67\x67\x65\x72\x41\x6C\x6C\x49\x64","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x41\x6C\x6C","\x54\x72\x69\x67\x67\x65\x72\x41\x6E\x79\x49\x64","\x41\x6E\x79","\x69\x6E\x64\x65\x78\x4F\x66","\x6D\x65\x72\x67\x65","\x75\x6E\x73\x68\x69\x66\x74"];_0x2977[0];var _=require(_0x2977[1]);var Util=require(_0x2977[2]);var Voice=require(_0x2977[3]);var Mail=require(_0x2977[4]);var Chat=require(_0x2977[5]);var Cm=require(_0x2977[6]);var Jscripty=require(_0x2977[7]);var Integration=require(_0x2977[8]);var Trigger=require(_0x2977[10])[_0x2977[9]];var ToolsAction=require(_0x2977[10])[_0x2977[11]];var ToolsCondition=require(_0x2977[10])[_0x2977[12]];var ReportAgent=require(_0x2977[10])[_0x2977[13]];var MailMessage=require(_0x2977[10])[_0x2977[14]];module[_0x2977[15]]=function(_0x3b59xe){var _0x3b59xf= new Util();var _0x3b59x10= new Voice();var _0x3b59x11= new Chat();var _0x3b59x12= new Mail();var _0x3b59x13= new Cm();var _0x3b59x14= new Jscripty();var _0x3b59x15= new Integration(_0x3b59xe);Trigger[_0x2977[36]](_0x2977[35])[_0x2977[34]]()[_0x2977[33]](function(_0x3b59x17){synchTriggers(_0x3b59x17);console[_0x2977[20]](_0x2977[18],_0x3b59x17[_0x2977[19]]);ReportAgent[_0x2977[25]](function(_0x3b59x18){var _0x3b59x19=_0x3b59xf[_0x2977[23]](_0x3b59x18,_[_0x2977[22]](_0x3b59x17,{channel:_0x2977[21]}));console[_0x2977[20]](_0x2977[24],_0x3b59x19[_0x2977[19]]);execActions(_0x3b59x19,_0x3b59x18,_0x2977[21],_0x3b59xf,_0x3b59x10,_0x3b59x12,_0x3b59x13,_0x3b59x14,_0x3b59x15)});ReportAgent[_0x2977[29]](function(_0x3b59x18){if(_0x3b59x18[_0x2977[27]](_0x2977[26])){var _0x3b59x19=_0x3b59xf[_0x2977[23]](_0x3b59x18,_[_0x2977[22]](_0x3b59x17,{channel:_0x2977[21]}));console[_0x2977[20]](_0x2977[28],_0x3b59x19[_0x2977[19]]);execActions(_0x3b59x19,_0x3b59x18,_0x2977[21],_0x3b59xf,_0x3b59x10,_0x3b59x12,_0x3b59x13,_0x3b59x14,_0x3b59x15)}});MailMessage[_0x2977[25]](function(_0x3b59x18){if(_0x3b59x18[_0x2977[30]]===_0x2977[31]){var _0x3b59x19=_0x3b59xf[_0x2977[23]](_0x3b59x18,_[_0x2977[22]](_0x3b59x17,{channel:_0x2977[32]}));execActions(_0x3b59x19,_0x3b59x18,_0x2977[32],_0x3b59xf,_0x3b59x10,_0x3b59x12,_0x3b59x13,_0x3b59x14,_0x3b59x15)}})})[_0x2977[17]](function(_0x3b59x16){console[_0x2977[16]](_0x3b59x16)})};function execActions(_0x3b59x19,_0x3b59x18,_0x3b59x1b,_0x3b59xf,_0x3b59x10,_0x3b59x12,_0x3b59x13,_0x3b59x14,_0x3b59x15){_0x3b59x19[_0x2977[52]](function(_0x3b59x1c){console[_0x2977[20]](_0x2977[37]+_0x3b59x1c[_0x2977[38]]+_0x2977[39]);switch(_0x3b59x1c[_0x2977[38]]){case _0x2977[42]:_0x3b59x13[_0x2977[41]](_0x3b59x18[_0x2977[40]],_0x3b59x1b);break;case _0x2977[45]:_0x3b59x14[_0x2977[44]](_0x3b59x1c[_0x2977[43]],_0x3b59x18[_0x2977[40]],_0x3b59x1b);break;case _0x2977[47]:_0x3b59x12[_0x2977[46]](_0x3b59x1c);break;case _0x2977[48]:;case _0x2977[50]:_0x3b59x15[_0x2977[49]](_0x3b59x1c,_0x3b59x18,_0x3b59x1b);break;default:console[_0x2977[20]](_0x2977[51],_0x3b59x1c[_0x2977[38]])}})}function synchTriggers(_0x3b59x17){Trigger[_0x2977[25]](function(_0x3b59x18,_0x3b59x1e){return Trigger[_0x2977[36]](_0x2977[35])[_0x2977[34]]()[_0x2977[33]](function(_0x3b59x1f){_0x3b59x17=_0x3b59x1f})});Trigger[_0x2977[29]](function(_0x3b59x18,_0x3b59x1e){updateCollection(_0x3b59x17,_0x3b59x18)});Trigger[_0x2977[56]](function(_0x3b59x18){_[_0x2977[54]](_0x3b59x17,{id:_0x3b59x18[_0x2977[53]]});console[_0x2977[20]](_0x2977[55],_0x3b59x17[_0x2977[19]])});ToolsAction[_0x2977[60]](function(_0x3b59x18){var _0x3b59x20=parseInt(_0x3b59x18[_0x2977[57]].TriggerId);var _0x3b59x21=_[_0x2977[58]](_0x3b59x17,function(_0x3b59x22){return _0x3b59x22[_0x2977[53]]===_0x3b59x20});if(_0x3b59x21){_0x3b59x21[_0x2977[59]]=[]}});ToolsAction[_0x2977[62]](function(_0x3b59x18){_[_0x2977[52]](_0x3b59x18,function(_0x3b59x1c){var _0x3b59x21=_[_0x2977[58]](_0x3b59x17,function(_0x3b59x22){return _0x3b59x22[_0x2977[53]]===parseInt(_0x3b59x1c.TriggerId)});if(_0x3b59x21){_0x3b59x21[_0x2977[59]][_0x2977[61]](_0x3b59x1c)}})});ToolsCondition[_0x2977[60]](function(_0x3b59x18){if(_0x3b59x18[_0x2977[57]][_0x2977[64]](_0x2977[63])){var _0x3b59x23=parseInt(_0x3b59x18[_0x2977[57]].TriggerAllId);var _0x3b59x24=_[_0x2977[58]](_0x3b59x17,function(_0x3b59x22){return _0x3b59x22[_0x2977[53]]===_0x3b59x23});if(_0x3b59x24){_0x3b59x24[_0x2977[65]]=[]}}else {if(_0x3b59x18[_0x2977[57]][_0x2977[64]](_0x2977[66])){var _0x3b59x25=parseInt(_0x3b59x18[_0x2977[57]].TriggerAnyId);var _0x3b59x26=_[_0x2977[58]](_0x3b59x17,function(_0x3b59x22){return _0x3b59x22[_0x2977[53]]===_0x3b59x25});if(_0x3b59x26){_0x3b59x26[_0x2977[67]]=[]}}}});ToolsCondition[_0x2977[62]](function(_0x3b59x18){_[_0x2977[52]](_0x3b59x18,function(_0x3b59x27){if(_0x3b59x27[_0x2977[40]][_0x2977[64]](_0x2977[63])){var _0x3b59x23=parseInt(_0x3b59x27[_0x2977[40]].TriggerAllId);var _0x3b59x24=_[_0x2977[58]](_0x3b59x17,function(_0x3b59x22){return _0x3b59x22[_0x2977[53]]===_0x3b59x23});if(_0x3b59x24){_0x3b59x24[_0x2977[65]][_0x2977[61]](_0x3b59x27)}}else {if(_0x3b59x27[_0x2977[40]][_0x2977[64]](_0x2977[66])){var _0x3b59x25=parseInt(_0x3b59x27[_0x2977[40]].TriggerAnyId);var _0x3b59x26=_[_0x2977[58]](_0x3b59x17,function(_0x3b59x22){return _0x3b59x22[_0x2977[53]]===_0x3b59x25});if(_0x3b59x26){_0x3b59x26[_0x2977[67]][_0x2977[61]](_0x3b59x27)}}}})})}function updateCollection(_0x3b59x29,_0x3b59x18){var _0x3b59x2a=_[_0x2977[58]](_0x3b59x29,{id:_0x3b59x18[_0x2977[53]]});var _0x3b59x2b=_0x3b59x29[_0x2977[68]](_0x3b59x2a);if(_0x3b59x2a){_0x3b59x29[_0x3b59x2b]=_[_0x2977[69]](_0x3b59x29[_0x3b59x2b],_0x3b59x18)}else {_0x3b59x29[_0x2977[70]](_0x3b59x18)}}
\ No newline at end of file
+var _0x26c0=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x75\x73\x74\x61\x63\x68\x65","\x2E\x2F\x75\x74\x69\x6C","\x2E\x2F\x76\x6F\x69\x63\x65","\x2E\x2F\x6D\x61\x69\x6C","\x2E\x2F\x63\x68\x61\x74","\x2E\x2F\x73\x6D\x73","\x2E\x2F\x63\x6D","\x2E\x2F\x75\x72\x6C\x46\x6F\x72\x77\x61\x72\x64","\x2E\x2F\x6A\x73\x63\x72\x69\x70\x74\x79","\x2E\x2E\x2F\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E\x73","\x54\x72\x69\x67\x67\x65\x72","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x54\x6F\x6F\x6C\x73\x41\x63\x74\x69\x6F\x6E","\x54\x6F\x6F\x6C\x73\x43\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C","\x4D\x61\x69\x6C\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x52\x6F\x6F\x6D","\x53\x6D\x73\x4D\x65\x73\x73\x61\x67\x65","\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x43\x68\x61\x74\x45\x6E\x71\x75\x69\x72\x79","\x56\x61\x72\x69\x61\x62\x6C\x65","\x65\x78\x70\x6F\x72\x74\x73","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x6C\x65\x6E\x67\x74\x68","\x6C\x6F\x67","\x6D\x65\x73\x73\x61\x67\x65","\x76\x61\x72\x69\x61\x62\x6C\x65","\x68\x61\x73\x4F\x77\x6E\x50\x72\x6F\x70\x65\x72\x74\x79","\x76\x61\x6C\x75\x65","\x6E\x61\x6D\x65","\x6B\x65\x79\x73","\x68\x65\x61\x64","\x74\x6F\x4C\x6F\x77\x65\x72","\x66\x69\x6E\x64","\x75\x6E\x69\x71\x75\x65\x69\x64","\x76\x61\x72\x69\x61\x62\x6C\x65\x73","\x73\x68\x69\x66\x74","\x70\x75\x73\x68","\x56\x61\x72\x53\x65\x74","\x63\x68\x61\x6E\x6E\x65\x6C","\x76\x6F\x69\x63\x65","\x66\x69\x6C\x74\x65\x72","\x67\x65\x74\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x54\x72\x69\x67\x67\x65\x72\x73","\x6D\x65\x6D\x62\x65\x72\x6E\x61\x6D\x65","\x73\x70\x6C\x69\x74","\x41\x66\x74\x65\x72\x20\x64\x69\x61\x6C\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x41\x63\x74\x69\x6F\x6E\x73\x20\x61\x72\x65\x20","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x52\x65\x70\x6F\x72\x74\x44\x69\x61\x6C\x2E\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x41\x66\x74\x65\x72\x20\x61\x67\x65\x6E\x74\x20\x63\x72\x65\x61\x74\x65\x2C\x20\x41\x63\x74\x69\x6F\x6E\x73\x20\x61\x72\x65\x20","\x71\x75\x65\x75\x65","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x2E\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x6C\x61\x73\x74\x65\x76\x65\x6E\x74","\x63\x68\x61\x6E\x67\x65\x64","\x41\x66\x74\x65\x72\x20\x61\x67\x65\x6E\x74\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x41\x63\x74\x69\x6F\x6E\x73\x20\x61\x72\x65\x20","\x52\x65\x70\x6F\x72\x74\x41\x67\x65\x6E\x74\x2E\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x65\x76\x74","\x6F\x6E","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x68\x61\x74","\x6D\x65\x72\x67\x65","\x74\x68\x65\x6E","\x67\x65\x74\x43\x68\x61\x74\x56\x69\x73\x69\x74\x6F\x72","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x52\x45\x43\x45\x49\x56\x45\x44","\x73\x6D\x73","\x6D\x61\x69\x6C","\x66\x69\x6E\x64\x41\x6C\x6C","\x61\x6C\x6C","\x73\x63\x6F\x70\x65","\x45\x72\x72\x6F\x72\x20\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x69\x6E\x67\x20\x6C\x6F\x63\x61\x6C\x20\x76\x61\x72\x69\x61\x62\x6C\x65\x73\x20\x66\x6F\x72\x20\x74\x72\x69\x67\x67\x65\x72\x73\x3A","\x41\x66\x74\x65\x72\x20\x63\x72\x65\x61\x74\x65\x2C\x20\x56\x61\x72\x69\x61\x62\x6C\x65\x73\x20\x61\x72\x65\x20","\x41\x66\x74\x65\x72\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x56\x61\x72\x69\x61\x62\x6C\x65\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x69\x64","\x72\x65\x6D\x6F\x76\x65","\x41\x66\x74\x65\x72\x20\x64\x65\x73\x74\x72\x6F\x79\x2C\x20\x56\x61\x72\x69\x61\x62\x6C\x65\x73\x20\x61\x72\x65\x20","\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x63\x6C\x6F\x6E\x65","\x65\x78\x65\x63\x41\x63\x74\x69\x6F\x6E\x73","\x45\x78\x65\x63\x75\x74\x69\x6E\x67\x20\x61\x63\x74\x69\x6F\x6E\x20\x22","\x61\x63\x74\x69\x6F\x6E","\x22","\x6D\x61\x6E\x61\x67\x65\x43\x6F\x6E\x74\x61\x63\x74","\x63\x6F\x6E\x74\x61\x63\x74\x4D\x61\x6E\x61\x67\x65\x72","\x75\x72\x6C\x46\x6F\x72\x77\x61\x72\x64","\x73\x65\x6E\x64\x52\x65\x71\x75\x65\x73\x74","\x68\x74\x74\x70","\x64\x61\x74\x61\x31","\x6D\x61\x6E\x61\x67\x65\x4A\x73\x63\x72\x69\x70\x74\x79","\x6A\x73\x63\x72\x69\x70\x74\x79","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x6D\x61\x6E\x61\x67\x65\x45\x76\x65\x6E\x74","\x6D\x6F\x74\x69\x6F\x6E\x62\x61\x72","\x74\x61\x67","\x65\x6D\x61\x69\x6C","\x61\x63\x63\x6F\x75\x6E\x74\x53\x6D\x73","\x61\x63\x63\x6F\x75\x6E\x74\x45\x6D\x61\x69\x6C","\x66\x6F\x72\x77\x61\x72\x64","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x61\x63\x63\x6F\x75\x6E\x74\x54\x65\x6D\x70\x6C\x61\x74\x65","\x63\x6C\x6F\x73\x65","\x54\x72\x69\x67\x67\x65\x72\x3A\x20\x41\x63\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x20","\x66\x6F\x72\x45\x61\x63\x68","\x6E\x65\x77\x54\x72\x69\x67\x67\x65\x72","\x77\x68\x65\x72\x65","\x41\x63\x74\x69\x6F\x6E\x73","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x61\x66\x74\x65\x72\x42\x75\x6C\x6B\x43\x72\x65\x61\x74\x65","\x54\x72\x69\x67\x67\x65\x72\x41\x6C\x6C\x49\x64","\x41\x6C\x6C","\x54\x72\x69\x67\x67\x65\x72\x41\x6E\x79\x49\x64","\x41\x6E\x79","\x69\x6E\x64\x65\x78\x4F\x66","\x75\x6E\x73\x68\x69\x66\x74"];_0x26c0[0];var _=require(_0x26c0[1]);var Mustache=require(_0x26c0[2]);var Util=require(_0x26c0[3]);var Voice=require(_0x26c0[4]);var Mail=require(_0x26c0[5]);var Chat=require(_0x26c0[6]);var Sms=require(_0x26c0[7]);var Cm=require(_0x26c0[8]);var UrlForward=require(_0x26c0[9]);var Jscripty=require(_0x26c0[10]);var Integration=require(_0x26c0[11]);var Trigger=require(_0x26c0[13])[_0x26c0[12]];var ToolsAction=require(_0x26c0[13])[_0x26c0[14]];var ToolsCondition=require(_0x26c0[13])[_0x26c0[15]];var ReportAgent=require(_0x26c0[13])[_0x26c0[16]];var ReportDial=require(_0x26c0[13])[_0x26c0[17]];var MailMessage=require(_0x26c0[13])[_0x26c0[18]];var ChatRoom=require(_0x26c0[13])[_0x26c0[19]];var SmsMessage=require(_0x26c0[13])[_0x26c0[20]];var ChatVisitor=require(_0x26c0[13])[_0x26c0[21]];var ChatEnquiry=require(_0x26c0[13])[_0x26c0[22]];var Variable=require(_0x26c0[13])[_0x26c0[23]];var MAX_CALLS=200;var callChannels=[];var localVariables=[];module[_0x26c0[24]]= function(_0xc2d7x1a){var _0xc2d7x1b= new Util();var _0xc2d7x1c= new Voice();var _0xc2d7x1d= new Chat();var _0xc2d7x1e= new Mail();var _0xc2d7x1f= new Sms();var _0xc2d7x20= new Cm();var _0xc2d7x21= new Jscripty();var _0xc2d7x22= new Integration();var _0xc2d7x23= new UrlForward();var _0xc2d7x24=[];Trigger[_0x26c0[74]](_0x26c0[73])[_0x26c0[72]]()[_0x26c0[65]](function(_0xc2d7x30){_0xc2d7x24= _0xc2d7x30;return synchTriggers(_0xc2d7x24)})[_0x26c0[65]](function(){return synchVars()})[_0x26c0[65]](function(){console[_0x26c0[29]](_0x26c0[27],_0xc2d7x24[_0x26c0[28]]);_0xc2d7x1a[_0x26c0[61]](_0x26c0[30],function(_0xc2d7x26){var _0xc2d7x27=[];switch(_0xc2d7x26[_0x26c0[60]]){case _0x26c0[43]:if(_0xc2d7x26[_0x26c0[32]](_0x26c0[31])&& _0xc2d7x26[_0x26c0[32]](_0x26c0[33])){var _0xc2d7x28=_[_0x26c0[38]](localVariables,function(_0xc2d7x29){return (_0xc2d7x29[_0x26c0[34]]=== _[_0x26c0[36]](_[_0x26c0[35]](_0xc2d7x26[_0x26c0[31]])))|| (_[_0x26c0[37]](_0xc2d7x29[_0x26c0[34]])=== _[_0x26c0[36]](_[_0x26c0[35]](_0xc2d7x26[_0x26c0[31]])))});if(_0xc2d7x28){var _0xc2d7x2a=_[_0x26c0[38]](callChannels,{uniqueid:_0xc2d7x26[_0x26c0[39]]});if(_0xc2d7x2a){_0xc2d7x2a[_0x26c0[40]][_0xc2d7x28[_0x26c0[34]]]= _0xc2d7x26[_0x26c0[33]]}else {if(callChannels[_0x26c0[28]]>= MAX_CALLS){callChannels[_0x26c0[41]]()};var _0xc2d7x2b={uniqueid:_0xc2d7x26[_0x26c0[39]],variables:{}};_0xc2d7x2b[_0x26c0[40]][_0xc2d7x28[_0x26c0[34]]]= _0xc2d7x26[_0x26c0[33]];callChannels[_0x26c0[42]](_0xc2d7x2b)}}};break;case _0x26c0[52]:if(_0xc2d7x26[_0x26c0[44]]){_0xc2d7x27= _0xc2d7x1b[_0x26c0[47]](_0xc2d7x26,_[_0x26c0[46]](_0xc2d7x24,{channel:_0x26c0[45]}));_0xc2d7x26[_0x26c0[48]]= _0xc2d7x26[_0x26c0[44]][_0x26c0[49]](/\/|-/)[1];console[_0x26c0[29]](_0x26c0[50],_0xc2d7x27[_0x26c0[28]]);execActions(_0xc2d7x27,_0xc2d7x26,_0x26c0[45],_0x26c0[51],_0xc2d7x1b,_0xc2d7x1c,_0xc2d7x1e,_0xc2d7x20,_0xc2d7x21,_0xc2d7x22,_0xc2d7x23)};break;case _0x26c0[55]:_0xc2d7x27= _0xc2d7x1b[_0x26c0[47]](_0xc2d7x26,_[_0x26c0[46]](_0xc2d7x24,{channel:_0x26c0[45]}));console[_0x26c0[29]](_0x26c0[53],_0xc2d7x27[_0x26c0[28]]);execActions(_0xc2d7x27,_0xc2d7x26,_0x26c0[45],_0x26c0[54],_0xc2d7x1b,_0xc2d7x1c,_0xc2d7x1e,_0xc2d7x20,_0xc2d7x21,_0xc2d7x22,_0xc2d7x23);break;case _0x26c0[59]:if(_0xc2d7x26[_0x26c0[57]][_0x26c0[56]]){_0xc2d7x27= _0xc2d7x1b[_0x26c0[47]](_0xc2d7x26,_[_0x26c0[46]](_0xc2d7x24,{channel:_0x26c0[45]}));console[_0x26c0[29]](_0x26c0[58],_0xc2d7x27[_0x26c0[28]]);execActions(_0xc2d7x27,_0xc2d7x26,_0x26c0[45],_0x26c0[54],_0xc2d7x1b,_0xc2d7x1c,_0xc2d7x1e,_0xc2d7x20,_0xc2d7x21,_0xc2d7x22,_0xc2d7x23)};break;default:}});ChatRoom[_0x26c0[67]](function(_0xc2d7x2c){return _0xc2d7x2c[_0x26c0[66]]()[_0x26c0[65]](function(_0xc2d7x2d){var _0xc2d7x27=_0xc2d7x1b[_0x26c0[47]](_0xc2d7x2d[_0x26c0[62]],_[_0x26c0[46]](_0xc2d7x24,{channel:_0x26c0[63]}));execActions(_0xc2d7x27,_[_0x26c0[64]](_0xc2d7x2d[_0x26c0[62]],_0xc2d7x2c[_0x26c0[62]]),_0x26c0[63],null,_0xc2d7x1b,_0xc2d7x1c,_0xc2d7x1e,_0xc2d7x20,_0xc2d7x21,_0xc2d7x22,_0xc2d7x23,_0xc2d7x1d)})[_0x26c0[26]](function(_0xc2d7x25){console[_0x26c0[25]](_0xc2d7x25)})});SmsMessage[_0x26c0[67]](function(_0xc2d7x2e){if(_0xc2d7x2e[_0x26c0[68]]=== _0x26c0[69]){var _0xc2d7x27=_0xc2d7x1b[_0x26c0[47]](_0xc2d7x2e[_0x26c0[62]],_[_0x26c0[46]](_0xc2d7x24,{channel:_0x26c0[70]}));execActions(_0xc2d7x27,_0xc2d7x2e[_0x26c0[62]],_0x26c0[70],null,_0xc2d7x1b,_0xc2d7x1c,_0xc2d7x1e,_0xc2d7x20,_0xc2d7x21,_0xc2d7x22,_0xc2d7x23,_0xc2d7x1d,_0xc2d7x1f)}});MailMessage[_0x26c0[67]](function(_0xc2d7x2f){if(_0xc2d7x2f[_0x26c0[68]]=== _0x26c0[69]){var _0xc2d7x27=_0xc2d7x1b[_0x26c0[47]](_0xc2d7x2f[_0x26c0[62]],_[_0x26c0[46]](_0xc2d7x24,{channel:_0x26c0[71],status:true}));execActions(_0xc2d7x27,_0xc2d7x2f[_0x26c0[62]],_0x26c0[71],null,_0xc2d7x1b,_0xc2d7x1c,_0xc2d7x1e,_0xc2d7x20,_0xc2d7x21,_0xc2d7x22,_0xc2d7x23)}})})[_0x26c0[26]](function(_0xc2d7x25){console[_0x26c0[25]](_0xc2d7x25)})};function synchVars(){return Variable[_0x26c0[72]]()[_0x26c0[65]](function(_0xc2d7x32){localVariables= _0xc2d7x32;return synchVariables(localVariables)})[_0x26c0[26]](function(_0xc2d7x25){console[_0x26c0[29]](_0x26c0[75],_0xc2d7x25)})}function synchVariables(_0xc2d7x34){Variable[_0x26c0[67]](function(_0xc2d7x2f){updateCollection(_0xc2d7x34,_0xc2d7x2f);console[_0x26c0[29]](_0x26c0[76],_0xc2d7x34[_0x26c0[28]])});Variable[_0x26c0[78]](function(_0xc2d7x2f){updateCollection(_0xc2d7x34,_0xc2d7x2f);console[_0x26c0[29]](_0x26c0[77],_0xc2d7x34[_0x26c0[28]])});Variable[_0x26c0[82]](function(_0xc2d7x2f){_[_0x26c0[80]](_0xc2d7x34,{id:_0xc2d7x2f[_0x26c0[79]]});console[_0x26c0[29]](_0x26c0[81],_0xc2d7x34[_0x26c0[28]])})}function getActionVariables(_0xc2d7x2f,_0xc2d7x36){if(_0xc2d7x36=== _0x26c0[45]){var _0xc2d7x37=_[_0x26c0[38]](callChannels,{uniqueid:_0xc2d7x2f[_0x26c0[39]]});return _0xc2d7x37?_[_0x26c0[64]](_[_0x26c0[83]](_0xc2d7x2f),_0xc2d7x37[_0x26c0[40]]):_[_0x26c0[83]](_0xc2d7x2f)}else {return _[_0x26c0[83]](_0xc2d7x2f)}}function execActions(_0xc2d7x27,_0xc2d7x2f,_0xc2d7x36,_0xc2d7x39,_0xc2d7x1b,_0xc2d7x1c,_0xc2d7x1e,_0xc2d7x20,_0xc2d7x21,_0xc2d7x22,_0xc2d7x23,_0xc2d7x1d,_0xc2d7x1f){console[_0x26c0[29]](_0x26c0[84]);_0xc2d7x27[_0x26c0[108]](function(_0xc2d7x3a){console[_0x26c0[29]](_0x26c0[85]+ _0xc2d7x3a[_0x26c0[86]]+ _0x26c0[87]);switch(_0xc2d7x3a[_0x26c0[86]]){case _0x26c0[89]:_0xc2d7x20[_0x26c0[88]](_0xc2d7x2f,_0xc2d7x36);break;case _0x26c0[90]:;case _0x26c0[92]:_0xc2d7x23[_0x26c0[91]](_0xc2d7x2f,_0xc2d7x36,_0xc2d7x3a,getActionVariables(_0xc2d7x2f,_0xc2d7x36));break;case _0x26c0[95]:_0xc2d7x21[_0x26c0[94]](_0xc2d7x3a[_0x26c0[93]],_0xc2d7x2f,_0xc2d7x36);break;case _0x26c0[96]:;case _0x26c0[98]:_0xc2d7x22[_0x26c0[97]](_0xc2d7x3a,_0xc2d7x2f,_0xc2d7x36,_0xc2d7x39,getActionVariables(_0xc2d7x2f,_0xc2d7x36));break;case _0x26c0[99]:switch(_0xc2d7x36){case _0x26c0[71]:_0xc2d7x1e[_0x26c0[99]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[63]:_0xc2d7x1d[_0x26c0[99]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[70]:_0xc2d7x1f[_0x26c0[99]](_0xc2d7x3a,_0xc2d7x2f);break;default:};break;case _0x26c0[100]:_0xc2d7x1e[_0x26c0[100]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[101]:_0xc2d7x1f[_0x26c0[101]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[102]:_0xc2d7x1e[_0x26c0[102]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[103]:_0xc2d7x1e[_0x26c0[103]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[104]:_0xc2d7x1e[_0x26c0[104]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[105]:_0xc2d7x1e[_0x26c0[105]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[106]:switch(_0xc2d7x36){case _0x26c0[71]:_0xc2d7x1e[_0x26c0[106]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[63]:_0xc2d7x1d[_0x26c0[106]](_0xc2d7x3a,_0xc2d7x2f);break;case _0x26c0[70]:_0xc2d7x1f[_0x26c0[106]](_0xc2d7x3a,_0xc2d7x2f);break;default:};break;default:console[_0x26c0[29]](_0x26c0[107],_0xc2d7x3a[_0x26c0[86]])}})}function synchTriggers(_0xc2d7x30){Trigger[_0x26c0[67]](function(_0xc2d7x2f,_0xc2d7x3c){_0xc2d7x3c[_0x26c0[109]][_0x26c0[79]]= _0xc2d7x2f[_0x26c0[79]];_0xc2d7x30[_0x26c0[42]](_0xc2d7x3c[_0x26c0[109]])});Trigger[_0x26c0[78]](function(_0xc2d7x2f,_0xc2d7x3c){updateCollection(_0xc2d7x30,_0xc2d7x2f)});Trigger[_0x26c0[82]](function(_0xc2d7x2f){_[_0x26c0[80]](_0xc2d7x30,{id:_0xc2d7x2f[_0x26c0[79]]})});ToolsAction[_0x26c0[112]](function(_0xc2d7x2f){var _0xc2d7x3d=parseInt(_0xc2d7x2f[_0x26c0[110]].TriggerId);var _0xc2d7x3e=_[_0x26c0[38]](_0xc2d7x30,function(_0xc2d7x3f){return _0xc2d7x3f[_0x26c0[79]]=== _0xc2d7x3d});if(_0xc2d7x3e){_0xc2d7x3e[_0x26c0[111]]= []}});ToolsAction[_0x26c0[113]](function(_0xc2d7x2f){_[_0x26c0[108]](_0xc2d7x2f,function(_0xc2d7x3a){var _0xc2d7x3e=_[_0x26c0[38]](_0xc2d7x30,function(_0xc2d7x3f){return _0xc2d7x3f[_0x26c0[79]]=== parseInt(_0xc2d7x3a.TriggerId)});if(_0xc2d7x3e){_0xc2d7x3e[_0x26c0[111]][_0x26c0[42]](_0xc2d7x3a)}})});ToolsCondition[_0x26c0[112]](function(_0xc2d7x2f){if(_0xc2d7x2f[_0x26c0[110]][_0x26c0[32]](_0x26c0[114])){var _0xc2d7x40=parseInt(_0xc2d7x2f[_0x26c0[110]].TriggerAllId);var _0xc2d7x41=_[_0x26c0[38]](_0xc2d7x30,function(_0xc2d7x3f){return _0xc2d7x3f[_0x26c0[79]]=== _0xc2d7x40});if(_0xc2d7x41){_0xc2d7x41[_0x26c0[115]]= []}}else {if(_0xc2d7x2f[_0x26c0[110]][_0x26c0[32]](_0x26c0[116])){var _0xc2d7x42=parseInt(_0xc2d7x2f[_0x26c0[110]].TriggerAnyId);var _0xc2d7x43=_[_0x26c0[38]](_0xc2d7x30,function(_0xc2d7x3f){return _0xc2d7x3f[_0x26c0[79]]=== _0xc2d7x42});if(_0xc2d7x43){_0xc2d7x43[_0x26c0[117]]= []}}}});ToolsCondition[_0x26c0[113]](function(_0xc2d7x2f){_[_0x26c0[108]](_0xc2d7x2f,function(_0xc2d7x44){if(_0xc2d7x44[_0x26c0[62]][_0x26c0[32]](_0x26c0[114])){var _0xc2d7x40=parseInt(_0xc2d7x44[_0x26c0[62]].TriggerAllId);var _0xc2d7x41=_[_0x26c0[38]](_0xc2d7x30,function(_0xc2d7x3f){return _0xc2d7x3f[_0x26c0[79]]=== _0xc2d7x40});if(_0xc2d7x41){_0xc2d7x41[_0x26c0[115]][_0x26c0[42]](_0xc2d7x44)}}else {if(_0xc2d7x44[_0x26c0[62]][_0x26c0[32]](_0x26c0[116])){var _0xc2d7x42=parseInt(_0xc2d7x44[_0x26c0[62]].TriggerAnyId);var _0xc2d7x43=_[_0x26c0[38]](_0xc2d7x30,function(_0xc2d7x3f){return _0xc2d7x3f[_0x26c0[79]]=== _0xc2d7x42});if(_0xc2d7x43){_0xc2d7x43[_0x26c0[117]][_0x26c0[42]](_0xc2d7x44)}}}})})}function updateCollection(_0xc2d7x46,_0xc2d7x2f){var _0xc2d7x47=_[_0x26c0[38]](_0xc2d7x46,{id:_0xc2d7x2f[_0x26c0[79]]});var _0xc2d7x48=_0xc2d7x46[_0x26c0[118]](_0xc2d7x47);if(_0xc2d7x47){_0xc2d7x46[_0xc2d7x48]= _[_0x26c0[64]](_0xc2d7x46[_0xc2d7x48],_0xc2d7x2f)}else {_0xc2d7x46[_0x26c0[119]](_0xc2d7x2f)}}
\ No newline at end of file