Built motion from commit 27e0a5d.|1.0.8
[motion.git] / server / api / action / action.controller.js
index ad39084..a7defcf 100644 (file)
@@ -1 +1 @@
-var _0xa076=["\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"];_0xa076[0];var _=require(_0xa076[1]);var Action=require(_0xa076[3])[_0xa076[2]];var sequelize=require(_0xa076[3])[_0xa076[4]];function handleError(_0xabacx5,_0xabacx6){return _0xabacx5[_0xa076[6]](500)[_0xa076[5]](_0xabacx6)}function responseWithResult(_0xabacx5,_0xabacx8){_0xabacx8=_0xabacx8||200;return function(_0xabacx9){if(_0xabacx9){_0xabacx5[_0xa076[6]](_0xabacx8)[_0xa076[7]](_0xabacx9)}}}function handleEntityNotFound(_0xabacx5){return function(_0xabacx9){if(!_0xabacx9){_0xabacx5[_0xa076[6]](404)[_0xa076[8]]();return null};return _0xabacx9}}function saveUpdates(_0xabacxc){return function(_0xabacx9){return _0xabacx9[_0xa076[10]](_0xabacxc)[_0xa076[9]](function(_0xabacxd){return _0xabacxd})}}function removeEntity(_0xabacx5){return function(_0xabacx9){if(_0xabacx9){return _0xabacx9[_0xa076[11]]()[_0xa076[9]](function(){_0xabacx5[_0xa076[6]](204)[_0xa076[8]]()})}}}exports[_0xa076[12]]=function(_0xabacxf,_0xabacx5){return Action[_0xa076[14]]()[_0xa076[9]](responseWithResult(_0xabacx5))[_0xa076[13]](handleError(_0xabacx5))};exports[_0xa076[15]]=function(_0xabacxf,_0xabacx5,_0xabacx10){_0xabacxf[_0xa076[17]][_0xa076[16]]=_0xabacxf[_0xa076[19]][_0xa076[18]];return sequelize[_0xa076[28]](function(_0xabacx12){return Action[_0xa076[15]](_[_0xa076[27]](_0xabacxf[_0xa076[17]],_0xabacxf[_0xa076[26]]),{transaction:_0xabacx12,body:_0xabacxf[_0xa076[17]]})})[_0xa076[9]](function(_0xabacx11){return _0xabacx5[_0xa076[6]](201)[_0xa076[5]](_0xabacx11)})[_0xa076[13]](function(_0xabacx6){console[_0xa076[20]](_0xabacx6);if(_0xabacx6[_0xa076[21]]===_0xa076[22]){_0xabacx6[_0xa076[21]]=_0xa076[23];_0xabacx6[_0xa076[24]]=_0xa076[25]};return handleError(_0xabacx5,_0xabacx6)})}
\ No newline at end of file
+var _0x8ba9=["\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"];_0x8ba9[0];var _=require(_0x8ba9[1]);var Action=require(_0x8ba9[3])[_0x8ba9[2]];var sequelize=require(_0x8ba9[3])[_0x8ba9[4]];function handleError(_0xa73fx5,_0xa73fx6){return _0xa73fx5[_0x8ba9[6]](500)[_0x8ba9[5]](_0xa73fx6)}function responseWithResult(_0xa73fx5,_0xa73fx8){_0xa73fx8= _0xa73fx8|| 200;return function(_0xa73fx9){if(_0xa73fx9){_0xa73fx5[_0x8ba9[6]](_0xa73fx8)[_0x8ba9[7]](_0xa73fx9)}}}function handleEntityNotFound(_0xa73fx5){return function(_0xa73fx9){if(!_0xa73fx9){_0xa73fx5[_0x8ba9[6]](404)[_0x8ba9[8]]();return null};return _0xa73fx9}}function saveUpdates(_0xa73fxc){return function(_0xa73fx9){return _0xa73fx9[_0x8ba9[10]](_0xa73fxc)[_0x8ba9[9]](function(_0xa73fxd){return _0xa73fxd})}}function removeEntity(_0xa73fx5){return function(_0xa73fx9){if(_0xa73fx9){return _0xa73fx9[_0x8ba9[11]]()[_0x8ba9[9]](function(){_0xa73fx5[_0x8ba9[6]](204)[_0x8ba9[8]]()})}}}exports[_0x8ba9[12]]= function(_0xa73fxf,_0xa73fx5){return Action[_0x8ba9[14]]()[_0x8ba9[9]](responseWithResult(_0xa73fx5))[_0x8ba9[13]](handleError(_0xa73fx5))};exports[_0x8ba9[15]]= function(_0xa73fxf,_0xa73fx5,_0xa73fx10){_0xa73fxf[_0x8ba9[17]][_0x8ba9[16]]= _0xa73fxf[_0x8ba9[19]][_0x8ba9[18]];return sequelize[_0x8ba9[28]](function(_0xa73fx12){return Action[_0x8ba9[15]](_[_0x8ba9[27]](_0xa73fxf[_0x8ba9[17]],_0xa73fxf[_0x8ba9[26]]),{transaction:_0xa73fx12,body:_0xa73fxf[_0x8ba9[17]]})})[_0x8ba9[9]](function(_0xa73fx11){return _0xa73fx5[_0x8ba9[6]](201)[_0x8ba9[5]](_0xa73fx11)})[_0x8ba9[13]](function(_0xa73fx6){console[_0x8ba9[20]](_0xa73fx6);if(_0xa73fx6[_0x8ba9[21]]=== _0x8ba9[22]){_0xa73fx6[_0x8ba9[21]]= _0x8ba9[23];_0xa73fx6[_0x8ba9[24]]= _0x8ba9[25]};return handleError(_0xa73fx5,_0xa73fx6)})}
\ No newline at end of file