b4760bf2d89fe2f2f3e4a10f4fcf0e4ecadc14a8
[motion.git] / server / config / triggers / util.js
1 var _0xbbb7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x6D\x6F\x74\x69\x6F\x6E","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x54\x72\x69\x67\x67\x65\x72\x20\x55\x74\x69\x6C\x73\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x69\x6E\x66\x6F","\x67\x65\x74\x41\x63\x74\x69\x6F\x6E\x73\x42\x79\x54\x72\x69\x67\x67\x65\x72\x73","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x64\x61\x74\x61\x76\x61\x6C\x75\x65\x73","\x66\x72\x6F\x6D","\x69\x73\x41\x72\x72\x61\x79","\x3B","\x73\x70\x6C\x69\x74","\x63\x63","\x74\x6F","\x73\x74\x61\x74\x75\x73","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x41\x6C\x6C","\x41\x6E\x79","\x6C\x65\x6E\x67\x74\x68","\x72\x65\x64\x75\x63\x65","\x63\x6F\x6E\x63\x61\x74","\x6A\x6F\x69\x6E","\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","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x63\x6F\x6E\x74\x61\x69\x6E\x73","\x6E\x6F\x74\x5F\x63\x6F\x6E\x74\x61\x69\x6E\x73","\x67\x72\x65\x61\x74\x65\x72\x5F\x6F\x72\x5F\x65\x71\x75\x61\x6C","\x6C\x65\x73\x73\x5F\x6F\x72\x5F\x65\x71\x75\x61\x6C","\x67\x72\x65\x61\x74\x65\x72","\x6C\x65\x73\x73","\x6F\x70\x65\x72\x61\x74\x6F\x72","\x65\x78\x70\x6F\x72\x74\x73"];_0xbbb7[0];var _=require(_0xbbb7[1]);var logger=require(_0xbbb7[3])(_0xbbb7[2]);function Util(){logger[_0xbbb7[5]](_0xbbb7[4])}Util[_0xbbb7[7]][_0xbbb7[6]]= function(_0xdd6bx4,_0xdd6bx5){var _0xdd6bx6=[];_0xdd6bx4= _0xdd6bx4[_0xbbb7[8]]|| _0xdd6bx4;_0xdd6bx4[_0xbbb7[9]]= _0xdd6bx4[_0xbbb7[9]]?(_[_0xbbb7[10]](_0xdd6bx4[_0xbbb7[9]])?_0xdd6bx4[_0xbbb7[9]]:_0xdd6bx4[_0xbbb7[9]][_0xbbb7[12]](_0xbbb7[11])):[];_0xdd6bx4[_0xbbb7[13]]= _0xdd6bx4[_0xbbb7[13]]?(_[_0xbbb7[10]](_0xdd6bx4[_0xbbb7[13]])?_0xdd6bx4[_0xbbb7[13]]:_0xdd6bx4[_0xbbb7[13]][_0xbbb7[12]](_0xbbb7[11])):[];_0xdd6bx4[_0xbbb7[14]]= _0xdd6bx4[_0xbbb7[14]]?(_[_0xbbb7[10]](_0xdd6bx4[_0xbbb7[14]])?_0xdd6bx4[_0xbbb7[14]]:_0xdd6bx4[_0xbbb7[14]][_0xbbb7[12]](_0xbbb7[11])):[];_0xdd6bx5[_0xbbb7[17]](function(_0xdd6bx7){if(_0xdd6bx7[_0xbbb7[15]]){var _0xdd6bx8=[];var _0xdd6bx9=[];_0xdd6bx7[_0xbbb7[18]][_0xbbb7[17]](function(_0xdd6bxa){_0xdd6bx8[_0xbbb7[16]](checkCondition(_0xdd6bxa,_0xdd6bx4))});_0xdd6bx7[_0xbbb7[19]][_0xbbb7[17]](function(_0xdd6bxa){_0xdd6bx9[_0xbbb7[16]](checkCondition(_0xdd6bxa,_0xdd6bx4))});var _0xdd6bxb=[],_0xdd6bxc=[];_0xdd6bxb[_0xbbb7[16]](_[_0xbbb7[21]](_0xdd6bx8[_0xbbb7[20]]?_0xdd6bx8:[true],function(_0xdd6bxd,_0xdd6bxe){return _0xdd6bxd&& _0xdd6bxe}));_0xdd6bxc[_0xbbb7[16]](_[_0xbbb7[21]](_0xdd6bx9[_0xbbb7[20]]?_0xdd6bx9:[true],function(_0xdd6bxd,_0xdd6bxe){return _0xdd6bxd|| _0xdd6bxe}));var _0xdd6bxf=_0xdd6bxb[_0xbbb7[22]](_0xdd6bxc);var _0xdd6bx10=_[_0xbbb7[21]](_0xdd6bxf[_0xbbb7[20]]?_0xdd6bxf:[true],function(_0xdd6bxd,_0xdd6bxe){return _0xdd6bxd&& _0xdd6bxe});if(_0xdd6bx10){_0xdd6bx6= _0xdd6bx6[_0xbbb7[22]](_0xdd6bx7.Actions)}}});_0xdd6bx4[_0xbbb7[9]]= _0xdd6bx4[_0xbbb7[9]][_0xbbb7[23]](_0xbbb7[11]);_0xdd6bx4[_0xbbb7[13]]= _0xdd6bx4[_0xbbb7[13]][_0xbbb7[23]](_0xbbb7[11]);_0xdd6bx4[_0xbbb7[14]]= _0xdd6bx4[_0xbbb7[14]][_0xbbb7[23]](_0xbbb7[11]);return _0xdd6bx6};function checkCondition(_0xdd6bxa,_0xdd6bx4){var _0xdd6bx12=false;var _0xdd6bx13=0;if(_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]]){switch(_0xdd6bxa[_0xbbb7[35]]){case _0xbbb7[26]:_0xdd6bx12= (_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]]== _0xdd6bxa[_0xbbb7[25]]);break;case _0xbbb7[27]:_0xdd6bx12= (_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]]!= _0xdd6bxa[_0xbbb7[25]]);break;case _0xbbb7[29]:_0xdd6bx12= false;if(_[_0xbbb7[10]](_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]])){for(_0xdd6bx13= 0;_0xdd6bx13< _0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]][_0xbbb7[20]];_0xdd6bx13++){if(_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]][_0xdd6bx13][_0xbbb7[28]](_0xdd6bxa[_0xbbb7[25]])){_0xdd6bx12= true;break}}}else {_0xdd6bx12= _0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]][_0xbbb7[28]](_0xdd6bxa[_0xbbb7[25]])};break;case _0xbbb7[30]:_0xdd6bx12= true;if(_[_0xbbb7[10]](_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]])){for(_0xdd6bx13= 0;_0xdd6bx13< _0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]][_0xbbb7[20]];_0xdd6bx13++){if(_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]][_0xdd6bx13][_0xbbb7[28]](_0xdd6bxa[_0xbbb7[25]])){_0xdd6bx12= false;break}}}else {_0xdd6bx12=  !(_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]][_0xbbb7[28]](_0xdd6bxa[_0xbbb7[25]]))};break;case _0xbbb7[31]:_0xdd6bx12= (_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]]>= Number(_0xdd6bxa[_0xbbb7[25]]));break;case _0xbbb7[32]:_0xdd6bx12= (_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]]<= Number(_0xdd6bxa[_0xbbb7[25]]));break;case _0xbbb7[33]:_0xdd6bx12= (_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]]> Number(_0xdd6bxa[_0xbbb7[25]]));break;case _0xbbb7[34]:_0xdd6bx12= (_0xdd6bx4[_0xdd6bxa[_0xbbb7[24]]]< Number(_0xdd6bxa[_0xbbb7[25]]));break;default:}};return _0xdd6bx12}module[_0xbbb7[36]]= Util