Built motion from commit 67e5df37.|2.0.60
[motion2.git] / server / services / ami / trigger / integration / util.js
1 var _0x17fb=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x67\x65\x74\x53\x74\x72\x69\x6E\x67","\x6C\x65\x6E\x67\x74\x68","\x69\x64","\x73\x6F\x72\x74\x42\x79","\x74\x79\x70\x65","\x73\x74\x72\x69\x6E\x67","\x63\x6F\x6E\x74\x65\x6E\x74","\x70\x75\x73\x68","\x76\x61\x72\x69\x61\x62\x6C\x65","\x76\x61\x72\x69\x61\x62\x6C\x65\x4E\x61\x6D\x65","\x63\x75\x73\x74\x6F\x6D\x56\x61\x72\x69\x61\x62\x6C\x65","\x56\x61\x72\x69\x61\x62\x6C\x65","\x6E\x61\x6D\x65","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x6B\x65\x79\x56\x61\x6C\x75\x65","\x6B\x65\x79\x54\x79\x70\x65","\x6B\x65\x79","\x25\x73\x3A\x20\x25\x73","\x6B\x65\x79\x43\x6F\x6E\x74\x65\x6E\x74","\x66\x6F\x72\x6D\x61\x74","\x6A\x6F\x69\x6E","\x73\x74\x72\x69\x70\x54\x72\x61\x69\x6C\x69\x6E\x67\x53\x6C\x61\x73\x68","\x73\x75\x62\x73\x74\x72","\x2F"];_0x17fb[0];var _=require(_0x17fb[1]);var util=require(_0x17fb[2]);exports[_0x17fb[3]]= function(_0x4e08x3,_0x4e08x4,_0x4e08x5){var _0x4e08x6=[];if(_0x4e08x3[_0x17fb[4]]> 0){var _0x4e08x7=_[_0x17fb[6]](_0x4e08x3,[_0x17fb[5]]);for(var _0x4e08x8=0;_0x4e08x8< _0x4e08x7[_0x17fb[4]];_0x4e08x8++){var _0x4e08x9=_0x4e08x7[_0x4e08x8];if(_0x4e08x9[_0x17fb[7]]=== _0x17fb[8]){_0x4e08x6[_0x17fb[10]](_0x4e08x9[_0x17fb[9]])}else {if(_0x4e08x9[_0x17fb[7]]=== _0x17fb[11]&& _0x4e08x9[_0x17fb[12]]){_0x4e08x4[_0x4e08x9[_0x17fb[12]]]&& _0x4e08x6[_0x17fb[10]](_0x4e08x4[_0x4e08x9[_0x17fb[12]]].toString())}else {if(_0x4e08x9[_0x17fb[7]]=== _0x17fb[13]&& _0x4e08x9[_0x17fb[14]]&& _0x4e08x9[_0x17fb[14]][_0x17fb[15]]){_0x4e08x4[_0x4e08x9[_0x17fb[14]][_0x17fb[15]][_0x17fb[16]]()]&& _0x4e08x6[_0x17fb[10]](_0x4e08x4[_0x4e08x9[_0x17fb[14]][_0x17fb[15]][_0x17fb[16]]()].toString())}else {if(_0x4e08x9[_0x17fb[7]]=== _0x17fb[17]){if(_0x4e08x9[_0x17fb[18]]=== _0x17fb[8]&& _0x4e08x9[_0x17fb[19]]){_0x4e08x6[_0x17fb[10]](util[_0x17fb[22]](_0x17fb[20],_0x4e08x9[_0x17fb[19]],_0x4e08x9[_0x17fb[21]]))}else {if(_0x4e08x9[_0x17fb[18]]=== _0x17fb[11]&& _0x4e08x9[_0x17fb[12]]&& _0x4e08x9[_0x17fb[19]]){_0x4e08x4[_0x4e08x9[_0x17fb[12]]]&& _0x4e08x6[_0x17fb[10]](util[_0x17fb[22]](_0x17fb[20],_0x4e08x9[_0x17fb[19]],_0x4e08x4[_0x4e08x9[_0x17fb[12]]]))}else {if(_0x4e08x9[_0x17fb[18]]=== _0x17fb[13]&& _0x4e08x9[_0x17fb[14]]&& _0x4e08x9[_0x17fb[14]][_0x17fb[15]]&& _0x4e08x9[_0x17fb[19]]){_0x4e08x4[_0x4e08x9[_0x17fb[14]][_0x17fb[15]][_0x17fb[16]]()]&& _0x4e08x6[_0x17fb[10]](util[_0x17fb[22]](_0x17fb[20],_0x4e08x9[_0x17fb[19]],_0x4e08x4[_0x4e08x9[_0x17fb[14]][_0x17fb[15]][_0x17fb[16]]()]))}}}}}}}}};return _0x4e08x6[_0x17fb[23]](_0x4e08x5)};exports[_0x17fb[24]]= function(_0x4e08xa){if(_0x4e08xa&& _0x4e08xa[_0x17fb[25]](-1) === _0x17fb[26]){return _0x4e08xa[_0x17fb[25]](0,_0x4e08xa[_0x17fb[4]]- 1)};return _0x4e08xa}