Built motion from commit ab065936.|2.0.53
[motion2.git] / server / services / ami / trigger / integration / util.js
1 var _0xc387=["\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"];_0xc387[0];var _=require(_0xc387[1]);var util=require(_0xc387[2]);exports[_0xc387[3]]= function(_0x33bbx3,_0x33bbx4,_0x33bbx5){var _0x33bbx6=[];if(_0x33bbx3[_0xc387[4]]> 0){var _0x33bbx7=_[_0xc387[6]](_0x33bbx3,[_0xc387[5]]);for(var _0x33bbx8=0;_0x33bbx8< _0x33bbx7[_0xc387[4]];_0x33bbx8++){var _0x33bbx9=_0x33bbx7[_0x33bbx8];if(_0x33bbx9[_0xc387[7]]=== _0xc387[8]){_0x33bbx6[_0xc387[10]](_0x33bbx9[_0xc387[9]])}else {if(_0x33bbx9[_0xc387[7]]=== _0xc387[11]&& _0x33bbx9[_0xc387[12]]){_0x33bbx4[_0x33bbx9[_0xc387[12]]]&& _0x33bbx6[_0xc387[10]](_0x33bbx4[_0x33bbx9[_0xc387[12]]].toString())}else {if(_0x33bbx9[_0xc387[7]]=== _0xc387[13]&& _0x33bbx9[_0xc387[14]]&& _0x33bbx9[_0xc387[14]][_0xc387[15]]){_0x33bbx4[_0x33bbx9[_0xc387[14]][_0xc387[15]][_0xc387[16]]()]&& _0x33bbx6[_0xc387[10]](_0x33bbx4[_0x33bbx9[_0xc387[14]][_0xc387[15]][_0xc387[16]]()].toString())}else {if(_0x33bbx9[_0xc387[7]]=== _0xc387[17]){if(_0x33bbx9[_0xc387[18]]=== _0xc387[8]&& _0x33bbx9[_0xc387[19]]){_0x33bbx6[_0xc387[10]](util[_0xc387[22]](_0xc387[20],_0x33bbx9[_0xc387[19]],_0x33bbx9[_0xc387[21]]))}else {if(_0x33bbx9[_0xc387[18]]=== _0xc387[11]&& _0x33bbx9[_0xc387[12]]&& _0x33bbx9[_0xc387[19]]){_0x33bbx4[_0x33bbx9[_0xc387[12]]]&& _0x33bbx6[_0xc387[10]](util[_0xc387[22]](_0xc387[20],_0x33bbx9[_0xc387[19]],_0x33bbx4[_0x33bbx9[_0xc387[12]]]))}else {if(_0x33bbx9[_0xc387[18]]=== _0xc387[13]&& _0x33bbx9[_0xc387[14]]&& _0x33bbx9[_0xc387[14]][_0xc387[15]]&& _0x33bbx9[_0xc387[19]]){_0x33bbx4[_0x33bbx9[_0xc387[14]][_0xc387[15]][_0xc387[16]]()]&& _0x33bbx6[_0xc387[10]](util[_0xc387[22]](_0xc387[20],_0x33bbx9[_0xc387[19]],_0x33bbx4[_0x33bbx9[_0xc387[14]][_0xc387[15]][_0xc387[16]]()]))}}}}}}}}};return _0x33bbx6[_0xc387[23]](_0x33bbx5)};exports[_0xc387[24]]= function(_0x33bbxa){if(_0x33bbxa&& _0x33bbxa[_0xc387[25]](-1) === _0xc387[26]){return _0x33bbxa[_0xc387[25]](0,_0x33bbxa[_0xc387[4]]- 1)};return _0x33bbxa}