Built motion from commit b5b971d.|0.0.97
[motion.git] / server / config / triggers / index.js
index 6ba0e2a..f8e7b7a 100644 (file)
@@ -1 +1 @@
-var _0x336c=["\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\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","\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","\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","\x73\x65\x6E\x64\x54\x65\x6D\x70\x6C\x61\x74\x65","\x74\x65\x6D\x70\x6C\x61\x74\x65","\x6D\x61\x6E\x61\x67\x65\x45\x76\x65\x6E\x74","\x69\x6E\x74\x65\x67\x72\x61\x74\x69\x6F\x6E","\x66\x6F\x72\x45\x61\x63\x68","\x41\x66\x74\x65\x72\x20\x63\x72\x65\x61\x74\x65\x2C\x20\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\x41\x66\x74\x65\x72\x20\x75\x70\x64\x61\x74\x65\x2C\x20\x54\x72\x69\x67\x67\x65\x72\x73\x20\x61\x72\x65\x20","\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","\x66\x69\x6E\x64","\x69\x6E\x64\x65\x78\x4F\x66","\x6D\x65\x72\x67\x65","\x75\x6E\x73\x68\x69\x66\x74"];_0x336c[0];var _=require(_0x336c[1]);var Util=require(_0x336c[2]);var Voice=require(_0x336c[3]);var Mail=require(_0x336c[4]);var Chat=require(_0x336c[5]);var Cm=require(_0x336c[6]);var Integration=require(_0x336c[7]);var Trigger=require(_0x336c[9])[_0x336c[8]];var ReportAgent=require(_0x336c[9])[_0x336c[10]];var MailMessage=require(_0x336c[9])[_0x336c[11]];module[_0x336c[12]]=function(_0x5c65xb){var _0x5c65xc= new Util();var _0x5c65xd= new Voice();var _0x5c65xe= new Chat();var _0x5c65xf= new Mail();var _0x5c65x10= new Cm();var _0x5c65x11= new Integration(_0x5c65xb);Trigger[_0x336c[31]](_0x336c[30])[_0x336c[29]]()[_0x336c[28]](function(_0x5c65x13){synchTriggers(_0x5c65x13);console[_0x336c[17]](_0x336c[15],_0x5c65x13[_0x336c[16]]);ReportAgent[_0x336c[22]](function(_0x5c65x14){var _0x5c65x15=_0x5c65xc[_0x336c[20]](_0x5c65x14,_[_0x336c[19]](_0x5c65x13,{channel:_0x336c[18]}));console[_0x336c[17]](_0x336c[21],_0x5c65x15[_0x336c[16]]);execActions(_0x5c65x15,_0x5c65x14,_0x336c[18],_0x5c65xc,_0x5c65xd,_0x5c65xf,_0x5c65x10,_0x5c65x11)});ReportAgent[_0x336c[24]](function(_0x5c65x14){var _0x5c65x15=_0x5c65xc[_0x336c[20]](_0x5c65x14,_[_0x336c[19]](_0x5c65x13,{channel:_0x336c[18]}));console[_0x336c[17]](_0x336c[23],_0x5c65x15[_0x336c[16]]);execActions(_0x5c65x15,_0x5c65x14,_0x336c[18],_0x5c65xc,_0x5c65xd,_0x5c65xf,_0x5c65x10,_0x5c65x11)});MailMessage[_0x336c[22]](function(_0x5c65x14){if(_0x5c65x14[_0x336c[25]]===_0x336c[26]){var _0x5c65x15=_0x5c65xc[_0x336c[20]](_0x5c65x14,_[_0x336c[19]](_0x5c65x13,{channel:_0x336c[27]}));execActions(_0x5c65x15,_0x5c65x14,_0x336c[27],_0x5c65xc,_0x5c65xd,_0x5c65xf,_0x5c65x10,_0x5c65x11)}})})[_0x336c[14]](function(_0x5c65x12){console[_0x336c[13]](_0x5c65x12)})};function execActions(_0x5c65x15,_0x5c65x14,_0x5c65x17,_0x5c65xc,_0x5c65xd,_0x5c65xf,_0x5c65x10,_0x5c65x11){_0x5c65x15[_0x336c[42]](function(_0x5c65x18){console[_0x336c[17]](_0x336c[32]+_0x5c65x18[_0x336c[33]]+_0x336c[34]);switch(_0x5c65x18[_0x336c[33]]){case _0x336c[37]:_0x5c65x10[_0x336c[36]](_0x5c65x14[_0x336c[35]],_0x5c65x17);break;case _0x336c[39]:_0x5c65xf[_0x336c[38]](_0x5c65x18);break;case _0x336c[41]:_0x5c65x11[_0x336c[40]](_0x5c65x18,_0x5c65x14,_0x5c65x17);break;default:}})}function synchTriggers(_0x5c65x13){Trigger[_0x336c[22]](function(_0x5c65x14){updateCollection(_0x5c65x13,_0x5c65x14);console[_0x336c[17]](_0x336c[43],_0x5c65x13[_0x336c[16]])});Trigger[_0x336c[24]](function(_0x5c65x14){updateCollection(_0x5c65x13,_0x5c65x14);console[_0x336c[17]](_0x336c[44],_0x5c65x13[_0x336c[16]])});Trigger[_0x336c[48]](function(_0x5c65x14){_[_0x336c[46]](_0x5c65x13,{id:_0x5c65x14[_0x336c[45]]});console[_0x336c[17]](_0x336c[47],_0x5c65x13[_0x336c[16]])})}function updateCollection(_0x5c65x1b,_0x5c65x14){var _0x5c65x1c=_[_0x336c[49]](_0x5c65x1b,{id:_0x5c65x14[_0x336c[45]]});var _0x5c65x1d=_0x5c65x1b[_0x336c[50]](_0x5c65x1c);if(_0x5c65x1c){_[_0x336c[51]](_0x5c65x1b[_0x5c65x1d],_0x5c65x14)}else {_0x5c65x1b[_0x336c[52]](_0x5c65x14)}}
\ No newline at end of file
+var _0x1eb7=["\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","\x6E\x65\x77\x54\x72\x69\x67\x67\x65\x72","\x70\x75\x73\x68","\x72\x65\x6D\x6F\x76\x65","\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","\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"];_0x1eb7[0];var _=require(_0x1eb7[1]);var Util=require(_0x1eb7[2]);var Voice=require(_0x1eb7[3]);var Mail=require(_0x1eb7[4]);var Chat=require(_0x1eb7[5]);var Cm=require(_0x1eb7[6]);var Jscripty=require(_0x1eb7[7]);var Integration=require(_0x1eb7[8]);var Trigger=require(_0x1eb7[10])[_0x1eb7[9]];var ToolsAction=require(_0x1eb7[10])[_0x1eb7[11]];var ToolsCondition=require(_0x1eb7[10])[_0x1eb7[12]];var ReportAgent=require(_0x1eb7[10])[_0x1eb7[13]];var MailMessage=require(_0x1eb7[10])[_0x1eb7[14]];module[_0x1eb7[15]]=function(_0xb6c7xe){var _0xb6c7xf= new Util();var _0xb6c7x10= new Voice();var _0xb6c7x11= new Chat();var _0xb6c7x12= new Mail();var _0xb6c7x13= new Cm();var _0xb6c7x14= new Jscripty();var _0xb6c7x15= new Integration(_0xb6c7xe);Trigger[_0x1eb7[36]](_0x1eb7[35])[_0x1eb7[34]]()[_0x1eb7[33]](function(_0xb6c7x17){synchTriggers(_0xb6c7x17);console[_0x1eb7[20]](_0x1eb7[18],_0xb6c7x17[_0x1eb7[19]]);ReportAgent[_0x1eb7[25]](function(_0xb6c7x18){var _0xb6c7x19=_0xb6c7xf[_0x1eb7[23]](_0xb6c7x18,_[_0x1eb7[22]](_0xb6c7x17,{channel:_0x1eb7[21]}));console[_0x1eb7[20]](_0x1eb7[24],_0xb6c7x19[_0x1eb7[19]]);execActions(_0xb6c7x19,_0xb6c7x18,_0x1eb7[21],_0xb6c7xf,_0xb6c7x10,_0xb6c7x12,_0xb6c7x13,_0xb6c7x14,_0xb6c7x15)});ReportAgent[_0x1eb7[29]](function(_0xb6c7x18){if(_0xb6c7x18[_0x1eb7[27]](_0x1eb7[26])){var _0xb6c7x19=_0xb6c7xf[_0x1eb7[23]](_0xb6c7x18,_[_0x1eb7[22]](_0xb6c7x17,{channel:_0x1eb7[21]}));console[_0x1eb7[20]](_0x1eb7[28],_0xb6c7x19[_0x1eb7[19]]);execActions(_0xb6c7x19,_0xb6c7x18,_0x1eb7[21],_0xb6c7xf,_0xb6c7x10,_0xb6c7x12,_0xb6c7x13,_0xb6c7x14,_0xb6c7x15)}});MailMessage[_0x1eb7[25]](function(_0xb6c7x18){if(_0xb6c7x18[_0x1eb7[30]]===_0x1eb7[31]){var _0xb6c7x19=_0xb6c7xf[_0x1eb7[23]](_0xb6c7x18,_[_0x1eb7[22]](_0xb6c7x17,{channel:_0x1eb7[32]}));execActions(_0xb6c7x19,_0xb6c7x18,_0x1eb7[32],_0xb6c7xf,_0xb6c7x10,_0xb6c7x12,_0xb6c7x13,_0xb6c7x14,_0xb6c7x15)}})})[_0x1eb7[17]](function(_0xb6c7x16){console[_0x1eb7[16]](_0xb6c7x16)})};function execActions(_0xb6c7x19,_0xb6c7x18,_0xb6c7x1b,_0xb6c7xf,_0xb6c7x10,_0xb6c7x12,_0xb6c7x13,_0xb6c7x14,_0xb6c7x15){_0xb6c7x19[_0x1eb7[52]](function(_0xb6c7x1c){console[_0x1eb7[20]](_0x1eb7[37]+_0xb6c7x1c[_0x1eb7[38]]+_0x1eb7[39]);switch(_0xb6c7x1c[_0x1eb7[38]]){case _0x1eb7[42]:_0xb6c7x13[_0x1eb7[41]](_0xb6c7x18[_0x1eb7[40]],_0xb6c7x1b);break;case _0x1eb7[45]:_0xb6c7x14[_0x1eb7[44]](_0xb6c7x1c[_0x1eb7[43]],_0xb6c7x18[_0x1eb7[40]],_0xb6c7x1b);break;case _0x1eb7[47]:_0xb6c7x12[_0x1eb7[46]](_0xb6c7x1c);break;case _0x1eb7[48]:;case _0x1eb7[50]:_0xb6c7x15[_0x1eb7[49]](_0xb6c7x1c,_0xb6c7x18,_0xb6c7x1b);break;default:console[_0x1eb7[20]](_0x1eb7[51],_0xb6c7x1c[_0x1eb7[38]])}})}function synchTriggers(_0xb6c7x17){Trigger[_0x1eb7[25]](function(_0xb6c7x18,_0xb6c7x1e){_0xb6c7x1e[_0x1eb7[54]][_0x1eb7[53]]=_0xb6c7x18[_0x1eb7[53]];_0xb6c7x17[_0x1eb7[55]](_0xb6c7x1e[_0x1eb7[54]])});Trigger[_0x1eb7[29]](function(_0xb6c7x18,_0xb6c7x1e){updateCollection(_0xb6c7x17,_0xb6c7x18)});Trigger[_0x1eb7[57]](function(_0xb6c7x18){_[_0x1eb7[56]](_0xb6c7x17,{id:_0xb6c7x18[_0x1eb7[53]]})});ToolsAction[_0x1eb7[61]](function(_0xb6c7x18){var _0xb6c7x1f=parseInt(_0xb6c7x18[_0x1eb7[58]].TriggerId);var _0xb6c7x20=_[_0x1eb7[59]](_0xb6c7x17,function(_0xb6c7x21){return _0xb6c7x21[_0x1eb7[53]]===_0xb6c7x1f});if(_0xb6c7x20){_0xb6c7x20[_0x1eb7[60]]=[]}});ToolsAction[_0x1eb7[62]](function(_0xb6c7x18){_[_0x1eb7[52]](_0xb6c7x18,function(_0xb6c7x1c){var _0xb6c7x20=_[_0x1eb7[59]](_0xb6c7x17,function(_0xb6c7x21){return _0xb6c7x21[_0x1eb7[53]]===parseInt(_0xb6c7x1c.TriggerId)});if(_0xb6c7x20){_0xb6c7x20[_0x1eb7[60]][_0x1eb7[55]](_0xb6c7x1c)}})});ToolsCondition[_0x1eb7[61]](function(_0xb6c7x18){if(_0xb6c7x18[_0x1eb7[58]][_0x1eb7[64]](_0x1eb7[63])){var _0xb6c7x22=parseInt(_0xb6c7x18[_0x1eb7[58]].TriggerAllId);var _0xb6c7x23=_[_0x1eb7[59]](_0xb6c7x17,function(_0xb6c7x21){return _0xb6c7x21[_0x1eb7[53]]===_0xb6c7x22});if(_0xb6c7x23){_0xb6c7x23[_0x1eb7[65]]=[]}}else {if(_0xb6c7x18[_0x1eb7[58]][_0x1eb7[64]](_0x1eb7[66])){var _0xb6c7x24=parseInt(_0xb6c7x18[_0x1eb7[58]].TriggerAnyId);var _0xb6c7x25=_[_0x1eb7[59]](_0xb6c7x17,function(_0xb6c7x21){return _0xb6c7x21[_0x1eb7[53]]===_0xb6c7x24});if(_0xb6c7x25){_0xb6c7x25[_0x1eb7[67]]=[]}}}});ToolsCondition[_0x1eb7[62]](function(_0xb6c7x18){_[_0x1eb7[52]](_0xb6c7x18,function(_0xb6c7x26){if(_0xb6c7x26[_0x1eb7[40]][_0x1eb7[64]](_0x1eb7[63])){var _0xb6c7x22=parseInt(_0xb6c7x26[_0x1eb7[40]].TriggerAllId);var _0xb6c7x23=_[_0x1eb7[59]](_0xb6c7x17,function(_0xb6c7x21){return _0xb6c7x21[_0x1eb7[53]]===_0xb6c7x22});if(_0xb6c7x23){_0xb6c7x23[_0x1eb7[65]][_0x1eb7[55]](_0xb6c7x26)}}else {if(_0xb6c7x26[_0x1eb7[40]][_0x1eb7[64]](_0x1eb7[66])){var _0xb6c7x24=parseInt(_0xb6c7x26[_0x1eb7[40]].TriggerAnyId);var _0xb6c7x25=_[_0x1eb7[59]](_0xb6c7x17,function(_0xb6c7x21){return _0xb6c7x21[_0x1eb7[53]]===_0xb6c7x24});if(_0xb6c7x25){_0xb6c7x25[_0x1eb7[67]][_0x1eb7[55]](_0xb6c7x26)}}}})})}function updateCollection(_0xb6c7x28,_0xb6c7x18){var _0xb6c7x29=_[_0x1eb7[59]](_0xb6c7x28,{id:_0xb6c7x18[_0x1eb7[53]]});var _0xb6c7x2a=_0xb6c7x28[_0x1eb7[68]](_0xb6c7x29);if(_0xb6c7x29){_0xb6c7x28[_0xb6c7x2a]=_[_0x1eb7[69]](_0xb6c7x28[_0xb6c7x2a],_0xb6c7x18)}else {_0xb6c7x28[_0x1eb7[70]](_0xb6c7x18)}}
\ No newline at end of file