ae7bd2ae284caf5f5f4cd28d373e88aec22be1f7
[motion.git] / server / config / ami / utils.js
1 var _0xa482=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x61\x6D\x69","\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x65\x78\x70\x6F\x72\x74\x73","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x6C\x65\x61\x76\x65\x41\x74","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x65\x78\x69\x74","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x61\x62\x61\x6E\x64\x6F\x6E","\x71\x75\x65\x75\x65\x63\x61\x6C\x6C\x65\x72\x63\x6F\x6D\x70\x6C\x65\x74\x65","\x41\x4D\x49\x55\x54\x49\x4C\x20\x50\x72\x75\x6E\x65\x20\x65\x72\x72\x6F\x72\x3A","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x41\x67\x65\x6E\x74\x20","\x6E\x61\x6D\x65","\x20\x70\x72\x75\x6E\x65\x64\x20\x66\x72\x6F\x6D\x20\x72\x65\x61\x6C\x74\x69\x6D\x65\x20\x63\x61\x63\x68\x65\x21","\x64\x65\x62\x75\x67","\x74\x68\x65\x6E","\x43\x6F\x6D\x6D\x61\x6E\x64","\x73\x69\x70\x20\x70\x72\x75\x6E\x65\x20\x72\x65\x61\x6C\x74\x69\x6D\x65\x20"];_0xa482[0];var logger=require(_0xa482[2])(_0xa482[1]);module[_0xa482[3]]= {isWaiting:function(_0x3629x2){return !_0x3629x2[_0xa482[4]]},isActive:function(_0x3629x2){return _0x3629x2[_0xa482[5]]=== 0&& _0x3629x2[_0xa482[6]]=== 0&& _0x3629x2[_0xa482[7]]=== 0&& _0x3629x2[_0xa482[4]]},isCompleted:function(_0x3629x2){return _0x3629x2[_0xa482[7]]=== 1},isAbandoned:function(_0x3629x2){return _0x3629x2[_0xa482[6]]=== 1},isUnmanaged:function(_0x3629x2){return _0x3629x2[_0xa482[5]]=== 1},prune:function(_0x3629x3,_0x3629x4){return _0x3629x3({action:_0xa482[16],command:_0xa482[17]+ _0x3629x4[_0xa482[12]]})[_0xa482[15]](function(_0x3629x6){_0x3629x6&& logger[_0xa482[14]](_0xa482[11]+ _0x3629x4[_0xa482[12]]+ _0xa482[13])})[_0xa482[10]](function(_0x3629x5){logger[_0xa482[9]](_0xa482[8],_0x3629x5)})}}