Built motion from commit 624f16adc.|1.0.34
[motion.git] / server / api / version / version.controller.js
1 var _0x9b99=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x61\x70\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\x73","\x73\x74\x61\x63\x6B","\x65\x72\x72\x6F\x72","\x73\x65\x6E\x64","\x73\x74\x61\x74\x75\x73","\x6A\x73\x6F\x6E","\x65\x6E\x64","\x75\x70\x64\x61\x74\x65\x41\x74\x74\x72\x69\x62\x75\x74\x65\x73","\x69\x6E\x64\x65\x78"];_0x9b99[0];var logger=require(_0x9b99[2])(_0x9b99[1]);function handleError(_0xaf5cx3){return function(_0xaf5cx4){logger[_0x9b99[4]](_0xaf5cx4[_0x9b99[3]]);return _0xaf5cx3[_0x9b99[6]](500)[_0x9b99[5]](_0xaf5cx4)}}function responseWithResult(_0xaf5cx3,_0xaf5cx6){_0xaf5cx6= _0xaf5cx6|| 200;return function(_0xaf5cx7){if(_0xaf5cx7){_0xaf5cx3[_0x9b99[6]](_0xaf5cx6)[_0x9b99[7]](_0xaf5cx7)}}}function handleEntityNotFound(_0xaf5cx3){return function(_0xaf5cx7){if(!_0xaf5cx7){_0xaf5cx3[_0x9b99[6]](404)[_0x9b99[8]]();return null};return _0xaf5cx7}}function saveUpdates(_0xaf5cxa){return function(_0xaf5cx7){return _0xaf5cx7[_0x9b99[9]](_0xaf5cxa)}}exports[_0x9b99[10]]= function(_0xaf5cxb,_0xaf5cx3){return _0xaf5cx3[_0x9b99[6]](200)[_0x9b99[5]]({phonebar:1})}