Built motion from commit 654a660.|0.0.150
[motion.git] / server / api / action / action.controller.js
index 6b25ff5..feb9b75 100644 (file)
@@ -1 +1 @@
-var _0xee8f=["\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"];_0xee8f[0];var _=require(_0xee8f[1]);var Action=require(_0xee8f[3])[_0xee8f[2]];var sequelize=require(_0xee8f[3])[_0xee8f[4]];function handleError(_0x80bfx5,_0x80bfx6){return _0x80bfx5[_0xee8f[6]](500)[_0xee8f[5]](_0x80bfx6)}function responseWithResult(_0x80bfx5,_0x80bfx8){_0x80bfx8= _0x80bfx8|| 200;return function(_0x80bfx9){if(_0x80bfx9){_0x80bfx5[_0xee8f[6]](_0x80bfx8)[_0xee8f[7]](_0x80bfx9)}}}function handleEntityNotFound(_0x80bfx5){return function(_0x80bfx9){if(!_0x80bfx9){_0x80bfx5[_0xee8f[6]](404)[_0xee8f[8]]();return null};return _0x80bfx9}}function saveUpdates(_0x80bfxc){return function(_0x80bfx9){return _0x80bfx9[_0xee8f[10]](_0x80bfxc)[_0xee8f[9]](function(_0x80bfxd){return _0x80bfxd})}}function removeEntity(_0x80bfx5){return function(_0x80bfx9){if(_0x80bfx9){return _0x80bfx9[_0xee8f[11]]()[_0xee8f[9]](function(){_0x80bfx5[_0xee8f[6]](204)[_0xee8f[8]]()})}}}exports[_0xee8f[12]]= function(_0x80bfxf,_0x80bfx5){return Action[_0xee8f[14]]()[_0xee8f[9]](responseWithResult(_0x80bfx5))[_0xee8f[13]](handleError(_0x80bfx5))};exports[_0xee8f[15]]= function(_0x80bfxf,_0x80bfx5,_0x80bfx10){_0x80bfxf[_0xee8f[17]][_0xee8f[16]]= _0x80bfxf[_0xee8f[19]][_0xee8f[18]];return sequelize[_0xee8f[28]](function(_0x80bfx12){return Action[_0xee8f[15]](_[_0xee8f[27]](_0x80bfxf[_0xee8f[17]],_0x80bfxf[_0xee8f[26]]),{transaction:_0x80bfx12,body:_0x80bfxf[_0xee8f[17]]})})[_0xee8f[9]](function(_0x80bfx11){return _0x80bfx5[_0xee8f[6]](201)[_0xee8f[5]](_0x80bfx11)})[_0xee8f[13]](function(_0x80bfx6){console[_0xee8f[20]](_0x80bfx6);if(_0x80bfx6[_0xee8f[21]]=== _0xee8f[22]){_0x80bfx6[_0xee8f[21]]= _0xee8f[23];_0x80bfx6[_0xee8f[24]]= _0xee8f[25]};return handleError(_0x80bfx5,_0x80bfx6)})}
\ No newline at end of file
+var _0xf300=["\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"];_0xf300[0];var _=require(_0xf300[1]);var Action=require(_0xf300[3])[_0xf300[2]];var sequelize=require(_0xf300[3])[_0xf300[4]];function handleError(_0x1f27x5,_0x1f27x6){return _0x1f27x5[_0xf300[6]](500)[_0xf300[5]](_0x1f27x6)}function responseWithResult(_0x1f27x5,_0x1f27x8){_0x1f27x8= _0x1f27x8|| 200;return function(_0x1f27x9){if(_0x1f27x9){_0x1f27x5[_0xf300[6]](_0x1f27x8)[_0xf300[7]](_0x1f27x9)}}}function handleEntityNotFound(_0x1f27x5){return function(_0x1f27x9){if(!_0x1f27x9){_0x1f27x5[_0xf300[6]](404)[_0xf300[8]]();return null};return _0x1f27x9}}function saveUpdates(_0x1f27xc){return function(_0x1f27x9){return _0x1f27x9[_0xf300[10]](_0x1f27xc)[_0xf300[9]](function(_0x1f27xd){return _0x1f27xd})}}function removeEntity(_0x1f27x5){return function(_0x1f27x9){if(_0x1f27x9){return _0x1f27x9[_0xf300[11]]()[_0xf300[9]](function(){_0x1f27x5[_0xf300[6]](204)[_0xf300[8]]()})}}}exports[_0xf300[12]]= function(_0x1f27xf,_0x1f27x5){return Action[_0xf300[14]]()[_0xf300[9]](responseWithResult(_0x1f27x5))[_0xf300[13]](handleError(_0x1f27x5))};exports[_0xf300[15]]= function(_0x1f27xf,_0x1f27x5,_0x1f27x10){_0x1f27xf[_0xf300[17]][_0xf300[16]]= _0x1f27xf[_0xf300[19]][_0xf300[18]];return sequelize[_0xf300[28]](function(_0x1f27x12){return Action[_0xf300[15]](_[_0xf300[27]](_0x1f27xf[_0xf300[17]],_0x1f27xf[_0xf300[26]]),{transaction:_0x1f27x12,body:_0x1f27xf[_0xf300[17]]})})[_0xf300[9]](function(_0x1f27x11){return _0x1f27x5[_0xf300[6]](201)[_0xf300[5]](_0x1f27x11)})[_0xf300[13]](function(_0x1f27x6){console[_0xf300[20]](_0x1f27x6);if(_0x1f27x6[_0xf300[21]]=== _0xf300[22]){_0x1f27x6[_0xf300[21]]= _0xf300[23];_0x1f27x6[_0xf300[24]]= _0xf300[25]};return handleError(_0x1f27x5,_0x1f27x6)})}
\ No newline at end of file