Built motion from commit 48095ee.|0.0.102
[motion.git] / server / api / ami / ami.controller.js
index 841555e..5fa980a 100644 (file)
@@ -1 +1 @@
-var _0xefed=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x41\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x64\x61\x74\x61","\x62\x6F\x64\x79","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x55\x73\x65\x72\x49\x64","\x75\x73\x65\x72","\x61\x63\x74\x69\x6F\x6E","\x2E\x2F\x61\x6D\x69\x2E\x61\x6D\x69","\x75\x70\x64\x61\x74\x65","\x6D\x65\x72\x67\x65","\x73\x61\x76\x65","\x64\x65\x73\x74\x72\x6F\x79","\x66\x69\x6E\x64"];_0xefed[0];var _=require(_0xefed[1]);var Ami=require(_0xefed[3])[_0xefed[2]];exports[_0xefed[4]]=function(_0x2139x3,_0x2139x4){Ami[_0xefed[9]]()[_0xefed[8]](function(_0x2139x6){return _0x2139x4[_0xefed[7]](200)[_0xefed[6]](_0x2139x6)})[_0xefed[5]](function(_0x2139x5){return handleError(_0x2139x4,_0x2139x5)})};exports[_0xefed[10]]=function(_0x2139x3,_0x2139x4){Ami[_0xefed[14]](_0x2139x3[_0xefed[13]][_0xefed[12]])[_0xefed[8]](function(_0x2139x7){if(!_0x2139x7){return _0x2139x4[_0xefed[11]](404)};return _0x2139x4[_0xefed[6]](_0x2139x7)})[_0xefed[5]](function(_0x2139x5){return handleError(_0x2139x4,_0x2139x5)})};exports[_0xefed[15]]=function(_0x2139x3,_0x2139x4){_0x2139x3[_0xefed[17]][_0xefed[16]]=JSON[_0xefed[18]](_0x2139x3[_0xefed[17]]);_0x2139x3[_0xefed[17]][_0xefed[19]]=_0x2139x3[_0xefed[20]][_0xefed[12]];require(_0xefed[22])[_0xefed[21]](_0x2139x3[_0xefed[17]],function(_0x2139x5,_0x2139x8){if(_0x2139x5){handleError(_0x2139x4,_0x2139x5)}else {return _0x2139x4[_0xefed[7]](201)[_0xefed[6]](_0x2139x8)}})};exports[_0xefed[23]]=function(_0x2139x3,_0x2139x4){if(_0x2139x3[_0xefed[17]][_0xefed[12]]){delete _0x2139x3[_0xefed[17]][_0xefed[12]]};Ami[_0xefed[14]](_0x2139x3[_0xefed[13]][_0xefed[12]])[_0xefed[8]](function(_0x2139x7){if(!_0x2139x7){return _0x2139x4[_0xefed[11]](404)};var _0x2139x9=_[_0xefed[24]](_0x2139x7,_0x2139x3[_0xefed[17]]);_0x2139x9[_0xefed[25]]()[_0xefed[8]](function(){return _0x2139x4[_0xefed[7]](200)[_0xefed[6]](_0x2139x7)})[_0xefed[5]](function(_0x2139x5){return handleError(_0x2139x4,_0x2139x5)})})[_0xefed[5]](function(_0x2139x5){return handleError(_0x2139x4,_0x2139x5)})};exports[_0xefed[26]]=function(_0x2139x3,_0x2139x4){Ami[_0xefed[27]]({where:{id:_0x2139x3[_0xefed[13]][_0xefed[12]]}})[_0xefed[8]](function(_0x2139x7){if(!_0x2139x7){return _0x2139x4[_0xefed[11]](404)};_0x2139x7[_0xefed[26]]()[_0xefed[8]](function(){return _0x2139x4[_0xefed[11]](204)})[_0xefed[5]](function(_0x2139x5){return handleError(_0x2139x4,_0x2139x5)})})[_0xefed[5]](function(_0x2139x5){return handleError(_0x2139x4,_0x2139x5)})};function handleError(_0x2139x4,_0x2139x5){return _0x2139x4[_0xefed[7]](500)[_0xefed[6]](_0x2139x5)}
\ No newline at end of file
+var _0xc504=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x41\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x74\x68\x65\x6E","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x64\x61\x74\x61","\x62\x6F\x64\x79","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x55\x73\x65\x72\x49\x64","\x69\x64","\x75\x73\x65\x72","\x61\x63\x74\x69\x6F\x6E","\x2E\x2F\x61\x6D\x69\x2E\x61\x6D\x69"];_0xc504[0];var _=require(_0xc504[1]);var Ami=require(_0xc504[3])[_0xc504[2]];var Util=require(_0xc504[4]);exports[_0xc504[5]]=function(_0x4635x4,_0x4635x5,_0x4635x6){return Ami[_0xc504[12]](Util[_0xc504[11]](_0x4635x4[_0xc504[10]]))[_0xc504[9]](function(_0x4635x8){return _0x4635x5[_0xc504[8]](200)[_0xc504[7]](_0x4635x8)})[_0xc504[6]](function(_0x4635x7){return handleError(_0x4635x5,_0x4635x7)})};exports[_0xc504[13]]=function(_0x4635x4,_0x4635x5){_0x4635x4[_0xc504[15]][_0xc504[14]]=JSON[_0xc504[16]](_0x4635x4[_0xc504[15]]);_0x4635x4[_0xc504[15]][_0xc504[17]]=_0x4635x4[_0xc504[19]][_0xc504[18]];require(_0xc504[21])[_0xc504[20]](_0x4635x4[_0xc504[15]],function(_0x4635x7,_0x4635x8){if(_0x4635x7){handleError(_0x4635x5,_0x4635x7)}else {return _0x4635x5[_0xc504[8]](201)[_0xc504[7]](_0x4635x8)}})};function handleError(_0x4635x5,_0x4635x7){return _0x4635x5[_0xc504[8]](500)[_0xc504[7]](_0x4635x7)}
\ No newline at end of file