Built motion from commit 1038d87.|0.0.141
[motion.git] / server / api / action / action.controller.js
index b2d2218..e32c07f 100644 (file)
@@ -1 +1 @@
-var _0xbd0f=["\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","\x72\x6F\x6C\x6C\x62\x61\x63\x6B","\x63\x6F\x6D\x6D\x69\x74","\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"];_0xbd0f[0];var _=require(_0xbd0f[1]);var Action=require(_0xbd0f[3])[_0xbd0f[2]];var sequelize=require(_0xbd0f[3])[_0xbd0f[4]];function handleError(_0x86cdx5,_0x86cdx6){return _0x86cdx5[_0xbd0f[6]](500)[_0xbd0f[5]](_0x86cdx6)}function responseWithResult(_0x86cdx5,_0x86cdx8){_0x86cdx8=_0x86cdx8||200;return function(_0x86cdx9){if(_0x86cdx9){_0x86cdx5[_0xbd0f[6]](_0x86cdx8)[_0xbd0f[7]](_0x86cdx9)}}}function handleEntityNotFound(_0x86cdx5){return function(_0x86cdx9){if(!_0x86cdx9){_0x86cdx5[_0xbd0f[6]](404)[_0xbd0f[8]]();return null};return _0x86cdx9}}function saveUpdates(_0x86cdxc){return function(_0x86cdx9){return _0x86cdx9[_0xbd0f[10]](_0x86cdxc)[_0xbd0f[9]](function(_0x86cdxd){return _0x86cdxd})}}function removeEntity(_0x86cdx5){return function(_0x86cdx9){if(_0x86cdx9){return _0x86cdx9[_0xbd0f[11]]()[_0xbd0f[9]](function(){_0x86cdx5[_0xbd0f[6]](204)[_0xbd0f[8]]()})}}}exports[_0xbd0f[12]]=function(_0x86cdxf,_0x86cdx5){Action[_0xbd0f[14]]()[_0xbd0f[9]](responseWithResult(_0x86cdx5))[_0xbd0f[13]](handleError(_0x86cdx5))};exports[_0xbd0f[15]]=function(_0x86cdxf,_0x86cdx5){};exports[_0xbd0f[16]]=function(_0x86cdxf,_0x86cdx5,_0x86cdx10){_0x86cdxf[_0xbd0f[18]][_0xbd0f[17]]=_0x86cdxf[_0xbd0f[20]][_0xbd0f[19]];return sequelize[_0xbd0f[25]]()[_0xbd0f[9]](function(_0x86cdx11){return Action[_0xbd0f[16]](_[_0xbd0f[24]](_0x86cdxf[_0xbd0f[18]],_0x86cdxf[_0xbd0f[23]]),{transaction:_0x86cdx11})[_0xbd0f[9]](function(_0x86cdx12){_0x86cdx11[_0xbd0f[22]]();return _0x86cdx5[_0xbd0f[6]](201)[_0xbd0f[5]](_0x86cdx12)})[_0xbd0f[13]](function(_0x86cdx6){_0x86cdx11[_0xbd0f[21]]();return handleError(_0x86cdx5,_0x86cdx6)})})};exports[_0xbd0f[26]]=function(_0x86cdxf,_0x86cdx5){};exports[_0xbd0f[11]]=function(_0x86cdxf,_0x86cdx5){}
\ No newline at end of file
+var _0x406f=["\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"];_0x406f[0];var _=require(_0x406f[1]);var Action=require(_0x406f[3])[_0x406f[2]];var sequelize=require(_0x406f[3])[_0x406f[4]];function handleError(_0xe47ex5,_0xe47ex6){return _0xe47ex5[_0x406f[6]](500)[_0x406f[5]](_0xe47ex6)}function responseWithResult(_0xe47ex5,_0xe47ex8){_0xe47ex8= _0xe47ex8|| 200;return function(_0xe47ex9){if(_0xe47ex9){_0xe47ex5[_0x406f[6]](_0xe47ex8)[_0x406f[7]](_0xe47ex9)}}}function handleEntityNotFound(_0xe47ex5){return function(_0xe47ex9){if(!_0xe47ex9){_0xe47ex5[_0x406f[6]](404)[_0x406f[8]]();return null};return _0xe47ex9}}function saveUpdates(_0xe47exc){return function(_0xe47ex9){return _0xe47ex9[_0x406f[10]](_0xe47exc)[_0x406f[9]](function(_0xe47exd){return _0xe47exd})}}function removeEntity(_0xe47ex5){return function(_0xe47ex9){if(_0xe47ex9){return _0xe47ex9[_0x406f[11]]()[_0x406f[9]](function(){_0xe47ex5[_0x406f[6]](204)[_0x406f[8]]()})}}}exports[_0x406f[12]]= function(_0xe47exf,_0xe47ex5){return Action[_0x406f[14]]()[_0x406f[9]](responseWithResult(_0xe47ex5))[_0x406f[13]](handleError(_0xe47ex5))};exports[_0x406f[15]]= function(_0xe47exf,_0xe47ex5,_0xe47ex10){_0xe47exf[_0x406f[17]][_0x406f[16]]= _0xe47exf[_0x406f[19]][_0x406f[18]];return sequelize[_0x406f[28]](function(_0xe47ex12){return Action[_0x406f[15]](_[_0x406f[27]](_0xe47exf[_0x406f[17]],_0xe47exf[_0x406f[26]]),{transaction:_0xe47ex12,body:_0xe47exf[_0x406f[17]]})})[_0x406f[9]](function(_0xe47ex11){return _0xe47ex5[_0x406f[6]](201)[_0x406f[5]](_0xe47ex11)})[_0x406f[13]](function(_0xe47ex6){console[_0x406f[20]](_0xe47ex6);if(_0xe47ex6[_0x406f[21]]=== _0x406f[22]){_0xe47ex6[_0x406f[21]]= _0x406f[23];_0xe47ex6[_0x406f[24]]= _0x406f[25]};return handleError(_0xe47ex5,_0xe47ex6)})}
\ No newline at end of file