56c1a817e77fdda0e4198d80b45a94488f3f2560
[motion.git] / server / config / ami / utils.js
1 var _0x6d0f=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\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","\x72\x6F\x6C\x65","\x61\x67\x65\x6E\x74","\x74\x65\x6C\x65\x70\x68\x6F\x6E\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","\x6C\x6F\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"];_0x6d0f[0];module[_0x6d0f[1]]= {isWaiting:function(_0x5eabx1){return !_0x5eabx1[_0x6d0f[2]]},isActive:function(_0x5eabx1){return _0x5eabx1[_0x6d0f[3]]=== 0&& _0x5eabx1[_0x6d0f[4]]=== 0&& _0x5eabx1[_0x6d0f[5]]=== 0&& _0x5eabx1[_0x6d0f[2]]},isCompleted:function(_0x5eabx1){return _0x5eabx1[_0x6d0f[5]]=== 1},isAbandoned:function(_0x5eabx1){return _0x5eabx1[_0x6d0f[4]]=== 1},isUnmanaged:function(_0x5eabx1){return _0x5eabx1[_0x6d0f[3]]=== 1},prune:function(_0x5eabx2,_0x5eabx3){if(_0x5eabx3[_0x6d0f[6]]=== _0x6d0f[7]|| _0x5eabx3[_0x6d0f[6]]=== _0x6d0f[8]){return _0x5eabx2({action:_0x6d0f[17],command:_0x6d0f[18]+ _0x5eabx3[_0x6d0f[13]]})[_0x6d0f[16]](function(_0x5eabx5){_0x5eabx5&& console[_0x6d0f[15]](_0x6d0f[12]+ _0x5eabx3[_0x6d0f[13]]+ _0x6d0f[14])})[_0x6d0f[11]](function(_0x5eabx4){console[_0x6d0f[10]](_0x6d0f[9],_0x5eabx4)})}}}