Built motion from commit d3a776a.|0.0.126
[motion.git] / server / api / action / action.controller.js
index 1ae6832..3cca25a 100644 (file)
@@ -1 +1 @@
-var _0x98e3=["\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"];_0x98e3[0];var _=require(_0x98e3[1]);var Action=require(_0x98e3[3])[_0x98e3[2]];var sequelize=require(_0x98e3[3])[_0x98e3[4]];function handleError(_0xee2fx5,_0xee2fx6){return _0xee2fx5[_0x98e3[6]](500)[_0x98e3[5]](_0xee2fx6)}function responseWithResult(_0xee2fx5,_0xee2fx8){_0xee2fx8=_0xee2fx8||200;return function(_0xee2fx9){if(_0xee2fx9){_0xee2fx5[_0x98e3[6]](_0xee2fx8)[_0x98e3[7]](_0xee2fx9)}}}function handleEntityNotFound(_0xee2fx5){return function(_0xee2fx9){if(!_0xee2fx9){_0xee2fx5[_0x98e3[6]](404)[_0x98e3[8]]();return null};return _0xee2fx9}}function saveUpdates(_0xee2fxc){return function(_0xee2fx9){return _0xee2fx9[_0x98e3[10]](_0xee2fxc)[_0x98e3[9]](function(_0xee2fxd){return _0xee2fxd})}}function removeEntity(_0xee2fx5){return function(_0xee2fx9){if(_0xee2fx9){return _0xee2fx9[_0x98e3[11]]()[_0x98e3[9]](function(){_0xee2fx5[_0x98e3[6]](204)[_0x98e3[8]]()})}}}exports[_0x98e3[12]]=function(_0xee2fxf,_0xee2fx5){return Action[_0x98e3[14]]()[_0x98e3[9]](responseWithResult(_0xee2fx5))[_0x98e3[13]](handleError(_0xee2fx5))};exports[_0x98e3[15]]=function(_0xee2fxf,_0xee2fx5,_0xee2fx10){_0xee2fxf[_0x98e3[17]][_0x98e3[16]]=_0xee2fxf[_0x98e3[19]][_0x98e3[18]];return sequelize[_0x98e3[28]](function(_0xee2fx12){return Action[_0x98e3[15]](_[_0x98e3[27]](_0xee2fxf[_0x98e3[17]],_0xee2fxf[_0x98e3[26]]),{transaction:_0xee2fx12,body:_0xee2fxf[_0x98e3[17]]})})[_0x98e3[9]](function(_0xee2fx11){return _0xee2fx5[_0x98e3[6]](201)[_0x98e3[5]](_0xee2fx11)})[_0x98e3[13]](function(_0xee2fx6){console[_0x98e3[20]](_0xee2fx6);if(_0xee2fx6[_0x98e3[21]]===_0x98e3[22]){_0xee2fx6[_0x98e3[21]]=_0x98e3[23];_0xee2fx6[_0x98e3[24]]=_0x98e3[25]};return handleError(_0xee2fx5,_0xee2fx6)})}
\ No newline at end of file
+var _0x2edf=["\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"];_0x2edf[0];var _=require(_0x2edf[1]);var Action=require(_0x2edf[3])[_0x2edf[2]];var sequelize=require(_0x2edf[3])[_0x2edf[4]];function handleError(_0xc481x5,_0xc481x6){return _0xc481x5[_0x2edf[6]](500)[_0x2edf[5]](_0xc481x6)}function responseWithResult(_0xc481x5,_0xc481x8){_0xc481x8= _0xc481x8|| 200;return function(_0xc481x9){if(_0xc481x9){_0xc481x5[_0x2edf[6]](_0xc481x8)[_0x2edf[7]](_0xc481x9)}}}function handleEntityNotFound(_0xc481x5){return function(_0xc481x9){if(!_0xc481x9){_0xc481x5[_0x2edf[6]](404)[_0x2edf[8]]();return null};return _0xc481x9}}function saveUpdates(_0xc481xc){return function(_0xc481x9){return _0xc481x9[_0x2edf[10]](_0xc481xc)[_0x2edf[9]](function(_0xc481xd){return _0xc481xd})}}function removeEntity(_0xc481x5){return function(_0xc481x9){if(_0xc481x9){return _0xc481x9[_0x2edf[11]]()[_0x2edf[9]](function(){_0xc481x5[_0x2edf[6]](204)[_0x2edf[8]]()})}}}exports[_0x2edf[12]]= function(_0xc481xf,_0xc481x5){return Action[_0x2edf[14]]()[_0x2edf[9]](responseWithResult(_0xc481x5))[_0x2edf[13]](handleError(_0xc481x5))};exports[_0x2edf[15]]= function(_0xc481xf,_0xc481x5,_0xc481x10){_0xc481xf[_0x2edf[17]][_0x2edf[16]]= _0xc481xf[_0x2edf[19]][_0x2edf[18]];return sequelize[_0x2edf[28]](function(_0xc481x12){return Action[_0x2edf[15]](_[_0x2edf[27]](_0xc481xf[_0x2edf[17]],_0xc481xf[_0x2edf[26]]),{transaction:_0xc481x12,body:_0xc481xf[_0x2edf[17]]})})[_0x2edf[9]](function(_0xc481x11){return _0xc481x5[_0x2edf[6]](201)[_0x2edf[5]](_0xc481x11)})[_0x2edf[13]](function(_0xc481x6){console[_0x2edf[20]](_0xc481x6);if(_0xc481x6[_0x2edf[21]]=== _0x2edf[22]){_0xc481x6[_0x2edf[21]]= _0x2edf[23];_0xc481x6[_0x2edf[24]]= _0x2edf[25]};return handleError(_0xc481x5,_0xc481x6)})}
\ No newline at end of file