Built motion from commit 0adc88d.|0.0.117
[motion.git] / server / api / action / action.controller.js
index 33b296c..0389de9 100644 (file)
@@ -1 +1 @@
-var _0xb012=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x41\x63\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x73\x68\x6F\x77","\x63\x72\x65\x61\x74\x65","\x55\x73\x65\x72\x49\x64","\x62\x6F\x64\x79","\x69\x64","\x75\x73\x65\x72","\x6C\x6F\x67","\x6D\x65\x73\x73\x61\x67\x65","\x49\x6E\x74\x65\x72\x66\x61\x63\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x4E\x6F\x20\x71\x75\x65\x75\x65\x73\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x75\x73\x65\x72","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x64\x4D\x65\x73\x73\x61\x67\x65","\x4D\x45\x53\x53\x41\x47\x45\x5F\x4E\x4F\x5F\x55\x53\x45\x52\x5F\x51\x55\x45\x55\x45\x53","\x70\x61\x72\x61\x6D\x73","\x6D\x65\x72\x67\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E","\x75\x70\x64\x61\x74\x65"];_0xb012[0];var _=require(_0xb012[1]);var Action=require(_0xb012[3])[_0xb012[2]];var sequelize=require(_0xb012[3])[_0xb012[4]];function handleError(_0xf128x5,_0xf128x6){return _0xf128x5[_0xb012[6]](500)[_0xb012[5]](_0xf128x6)}function responseWithResult(_0xf128x5,_0xf128x8){_0xf128x8=_0xf128x8||200;return function(_0xf128x9){if(_0xf128x9){_0xf128x5[_0xb012[6]](_0xf128x8)[_0xb012[7]](_0xf128x9)}}}function handleEntityNotFound(_0xf128x5){return function(_0xf128x9){if(!_0xf128x9){_0xf128x5[_0xb012[6]](404)[_0xb012[8]]();return null};return _0xf128x9}}function saveUpdates(_0xf128xc){return function(_0xf128x9){return _0xf128x9[_0xb012[10]](_0xf128xc)[_0xb012[9]](function(_0xf128xd){return _0xf128xd})}}function removeEntity(_0xf128x5){return function(_0xf128x9){if(_0xf128x9){return _0xf128x9[_0xb012[11]]()[_0xb012[9]](function(){_0xf128x5[_0xb012[6]](204)[_0xb012[8]]()})}}}exports[_0xb012[12]]=function(_0xf128xf,_0xf128x5){Action[_0xb012[14]]()[_0xb012[9]](responseWithResult(_0xf128x5))[_0xb012[13]](handleError(_0xf128x5))};exports[_0xb012[15]]=function(_0xf128xf,_0xf128x5){};exports[_0xb012[16]]=function(_0xf128xf,_0xf128x5,_0xf128x10){_0xf128xf[_0xb012[18]][_0xb012[17]]=_0xf128xf[_0xb012[20]][_0xb012[19]];return sequelize[_0xb012[29]](function(_0xf128x12){return Action[_0xb012[16]](_[_0xb012[28]](_0xf128xf[_0xb012[18]],_0xf128xf[_0xb012[27]]),{transaction:_0xf128x12,body:_0xf128xf[_0xb012[18]]})})[_0xb012[9]](function(_0xf128x11){return _0xf128x5[_0xb012[6]](201)[_0xb012[5]](_0xf128x11)})[_0xb012[13]](function(_0xf128x6){console[_0xb012[21]](_0xf128x6);if(_0xf128x6[_0xb012[22]]===_0xb012[23]){_0xf128x6[_0xb012[22]]=_0xb012[24];_0xf128x6[_0xb012[25]]=_0xb012[26]};return handleError(_0xf128x5,_0xf128x6)})};exports[_0xb012[30]]=function(_0xf128xf,_0xf128x5){};exports[_0xb012[11]]=function(_0xf128xf,_0xf128x5){}
\ No newline at end of file
+var _0xd286=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x41\x63\x74\x69\x6F\x6E","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x73\x65\x71\x75\x65\x6C\x69\x7A\x65","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x74\x68\x65\x6E","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x64\x65\x73\x74\x72\x6F\x79","\x69\x6E\x64\x65\x78","\x63\x61\x74\x63\x68","\x66\x69\x6E\x64\x41\x6C\x6C","\x63\x72\x65\x61\x74\x65","\x55\x73\x65\x72\x49\x64","\x62\x6F\x64\x79","\x69\x64","\x75\x73\x65\x72","\x6C\x6F\x67","\x6D\x65\x73\x73\x61\x67\x65","\x49\x6E\x74\x65\x72\x66\x61\x63\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x4E\x6F\x20\x71\x75\x65\x75\x65\x73\x20\x61\x73\x73\x6F\x63\x69\x61\x74\x65\x64\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x75\x73\x65\x72","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65\x64\x4D\x65\x73\x73\x61\x67\x65","\x4D\x45\x53\x53\x41\x47\x45\x5F\x4E\x4F\x5F\x55\x53\x45\x52\x5F\x51\x55\x45\x55\x45\x53","\x70\x61\x72\x61\x6D\x73","\x6D\x65\x72\x67\x65","\x74\x72\x61\x6E\x73\x61\x63\x74\x69\x6F\x6E"];_0xd286[0];var _=require(_0xd286[1]);var Action=require(_0xd286[3])[_0xd286[2]];var sequelize=require(_0xd286[3])[_0xd286[4]];function handleError(_0xf118x5,_0xf118x6){return _0xf118x5[_0xd286[6]](500)[_0xd286[5]](_0xf118x6)}function responseWithResult(_0xf118x5,_0xf118x8){_0xf118x8= _0xf118x8|| 200;return function(_0xf118x9){if(_0xf118x9){_0xf118x5[_0xd286[6]](_0xf118x8)[_0xd286[7]](_0xf118x9)}}}function handleEntityNotFound(_0xf118x5){return function(_0xf118x9){if(!_0xf118x9){_0xf118x5[_0xd286[6]](404)[_0xd286[8]]();return null};return _0xf118x9}}function saveUpdates(_0xf118xc){return function(_0xf118x9){return _0xf118x9[_0xd286[10]](_0xf118xc)[_0xd286[9]](function(_0xf118xd){return _0xf118xd})}}function removeEntity(_0xf118x5){return function(_0xf118x9){if(_0xf118x9){return _0xf118x9[_0xd286[11]]()[_0xd286[9]](function(){_0xf118x5[_0xd286[6]](204)[_0xd286[8]]()})}}}exports[_0xd286[12]]= function(_0xf118xf,_0xf118x5){return Action[_0xd286[14]]()[_0xd286[9]](responseWithResult(_0xf118x5))[_0xd286[13]](handleError(_0xf118x5))};exports[_0xd286[15]]= function(_0xf118xf,_0xf118x5,_0xf118x10){_0xf118xf[_0xd286[17]][_0xd286[16]]= _0xf118xf[_0xd286[19]][_0xd286[18]];return sequelize[_0xd286[28]](function(_0xf118x12){return Action[_0xd286[15]](_[_0xd286[27]](_0xf118xf[_0xd286[17]],_0xf118xf[_0xd286[26]]),{transaction:_0xf118x12,body:_0xf118xf[_0xd286[17]]})})[_0xd286[9]](function(_0xf118x11){return _0xf118x5[_0xd286[6]](201)[_0xd286[5]](_0xf118x11)})[_0xd286[13]](function(_0xf118x6){console[_0xd286[20]](_0xf118x6);if(_0xf118x6[_0xd286[21]]=== _0xd286[22]){_0xf118x6[_0xd286[21]]= _0xd286[23];_0xf118x6[_0xd286[24]]= _0xd286[25]};return handleError(_0xf118x5,_0xf118x6)})}
\ No newline at end of file