Built motion from commit b18b7a808.|1.0.23
[motion.git] / server / api / network_localnet / network_localnet.controller.js
index 6ceab58..ce0db3e 100644 (file)
@@ -1 +1 @@
-var _0x2d4c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\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","\x4E\x65\x74\x77\x6F\x72\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\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","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\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","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x6C\x6F\x63\x61\x6C\x6E\x65\x74","\x73\x63\x6F\x70\x65","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x74\x79\x70\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0x2d4c[0];var _=require(_0x2d4c[1]);var Util=require(_0x2d4c[2]);var logger=require(_0x2d4c[4])(_0x2d4c[3]);var NetworkLocalnet=require(_0x2d4c[6])[_0x2d4c[5]];function handleError(_0xa0cdx6,_0xa0cdx7){_0xa0cdx7= _0xa0cdx7|| 500;return function(_0xa0cdx8){logger[_0x2d4c[8]](_0xa0cdx8[_0x2d4c[7]]);_0xa0cdx6[_0x2d4c[10]](_0xa0cdx7)[_0x2d4c[9]](_0xa0cdx8)}}function responseWithResult(_0xa0cdx6,_0xa0cdx7){_0xa0cdx7= _0xa0cdx7|| 200;return function(_0xa0cdxa){if(_0xa0cdxa){_0xa0cdx6[_0x2d4c[10]](_0xa0cdx7)[_0x2d4c[11]](_0xa0cdxa)}}}function responseWithoutResult(_0xa0cdx6,_0xa0cdx7){_0xa0cdx7= _0xa0cdx7|| 204;return function(){_0xa0cdx6[_0x2d4c[12]](_0xa0cdx7)}}function handleEntityNotFound(_0xa0cdx6){return function(_0xa0cdxa){if(!_0xa0cdxa){_0xa0cdx6[_0x2d4c[10]](404)[_0x2d4c[13]]();return null};return _0xa0cdxa}}function saveUpdates(_0xa0cdxe){return function(_0xa0cdxa){return _0xa0cdxa[_0x2d4c[15]](_0xa0cdxe)[_0x2d4c[14]](function(_0xa0cdxf){return _0xa0cdxf})}}function removeEntity(_0xa0cdx6){return function(_0xa0cdxa){if(_0xa0cdxa){return _0xa0cdxa[_0x2d4c[16]]()[_0x2d4c[14]](function(){_0xa0cdx6[_0x2d4c[10]](204)[_0x2d4c[13]]()})}}}exports[_0x2d4c[17]]= function(_0xa0cdx11,_0xa0cdx6){return NetworkLocalnet[_0x2d4c[23]](_0x2d4c[22])[_0x2d4c[21]](Util[_0x2d4c[20]](_0xa0cdx11[_0x2d4c[19]]))[_0x2d4c[14]](responseWithResult(_0xa0cdx6))[_0x2d4c[18]](handleError(_0xa0cdx6))};exports[_0x2d4c[24]]= function(_0xa0cdx11,_0xa0cdx6){return NetworkLocalnet[_0x2d4c[27]](_0xa0cdx11[_0x2d4c[26]][_0x2d4c[25]])[_0x2d4c[14]](handleEntityNotFound(_0xa0cdx6))[_0x2d4c[14]](responseWithResult(_0xa0cdx6))[_0x2d4c[18]](handleError(_0xa0cdx6))};exports[_0x2d4c[28]]= function(_0xa0cdx11,_0xa0cdx6){_0xa0cdx11[_0x2d4c[30]][_0x2d4c[29]]= _0x2d4c[22];return NetworkLocalnet[_0x2d4c[28]](_0xa0cdx11[_0x2d4c[30]])[_0x2d4c[14]](responseWithResult(_0xa0cdx6,201))[_0x2d4c[18]](handleError(_0xa0cdx6))};exports[_0x2d4c[31]]= function(_0xa0cdx11,_0xa0cdx6){if(_0xa0cdx11[_0x2d4c[30]][_0x2d4c[25]]){delete _0xa0cdx11[_0x2d4c[30]][_0x2d4c[25]]};return NetworkLocalnet[_0x2d4c[27]](_0xa0cdx11[_0x2d4c[26]][_0x2d4c[25]])[_0x2d4c[14]](handleEntityNotFound(_0xa0cdx6))[_0x2d4c[14]](saveUpdates(_0xa0cdx11[_0x2d4c[30]]))[_0x2d4c[14]](responseWithResult(_0xa0cdx6))[_0x2d4c[18]](handleError(_0xa0cdx6))};exports[_0x2d4c[16]]= function(_0xa0cdx11,_0xa0cdx6){return NetworkLocalnet[_0x2d4c[27]](_0xa0cdx11[_0x2d4c[26]][_0x2d4c[25]])[_0x2d4c[14]](handleEntityNotFound(_0xa0cdx6))[_0x2d4c[14]](removeEntity(_0xa0cdx6))[_0x2d4c[18]](handleError(_0xa0cdx6))};exports[_0x2d4c[32]]= function(_0xa0cdx11,_0xa0cdx6){return NetworkLocalnet[_0x2d4c[16]]({where:{id:_0xa0cdx11[_0x2d4c[19]][_0x2d4c[33]]},individualHooks:true})[_0x2d4c[14]](responseWithoutResult(_0xa0cdx6))[_0x2d4c[18]](handleError(_0xa0cdx6))}
\ No newline at end of file
+var _0x48ed=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x75\x74\x69\x6C","\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","\x4E\x65\x74\x77\x6F\x72\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\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","\x73\x65\x6E\x64\x53\x74\x61\x74\x75\x73","\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","\x71\x75\x65\x72\x79","\x67\x65\x74\x51\x75\x65\x72\x79","\x66\x69\x6E\x64\x41\x6E\x64\x43\x6F\x75\x6E\x74\x41\x6C\x6C","\x6C\x6F\x63\x61\x6C\x6E\x65\x74","\x73\x63\x6F\x70\x65","\x73\x68\x6F\x77","\x69\x64","\x70\x61\x72\x61\x6D\x73","\x66\x69\x6E\x64\x42\x79\x49\x64","\x63\x72\x65\x61\x74\x65","\x74\x79\x70\x65","\x62\x6F\x64\x79","\x75\x70\x64\x61\x74\x65","\x62\x75\x6C\x6B\x44\x65\x73\x74\x72\x6F\x79","\x69\x64\x73"];_0x48ed[0];var _=require(_0x48ed[1]);var Util=require(_0x48ed[2]);var logger=require(_0x48ed[4])(_0x48ed[3]);var NetworkLocalnet=require(_0x48ed[6])[_0x48ed[5]];function handleError(_0xb95bx6,_0xb95bx7){_0xb95bx7= _0xb95bx7|| 500;return function(_0xb95bx8){logger[_0x48ed[8]](_0xb95bx8[_0x48ed[7]]);_0xb95bx6[_0x48ed[10]](_0xb95bx7)[_0x48ed[9]](_0xb95bx8)}}function responseWithResult(_0xb95bx6,_0xb95bx7){_0xb95bx7= _0xb95bx7|| 200;return function(_0xb95bxa){if(_0xb95bxa){_0xb95bx6[_0x48ed[10]](_0xb95bx7)[_0x48ed[11]](_0xb95bxa)}}}function responseWithoutResult(_0xb95bx6,_0xb95bx7){_0xb95bx7= _0xb95bx7|| 204;return function(){_0xb95bx6[_0x48ed[12]](_0xb95bx7)}}function handleEntityNotFound(_0xb95bx6){return function(_0xb95bxa){if(!_0xb95bxa){_0xb95bx6[_0x48ed[10]](404)[_0x48ed[13]]();return null};return _0xb95bxa}}function saveUpdates(_0xb95bxe){return function(_0xb95bxa){return _0xb95bxa[_0x48ed[15]](_0xb95bxe)[_0x48ed[14]](function(_0xb95bxf){return _0xb95bxf})}}function removeEntity(_0xb95bx6){return function(_0xb95bxa){if(_0xb95bxa){return _0xb95bxa[_0x48ed[16]]()[_0x48ed[14]](function(){_0xb95bx6[_0x48ed[10]](204)[_0x48ed[13]]()})}}}exports[_0x48ed[17]]= function(_0xb95bx11,_0xb95bx6){return NetworkLocalnet[_0x48ed[23]](_0x48ed[22])[_0x48ed[21]](Util[_0x48ed[20]](_0xb95bx11[_0x48ed[19]]))[_0x48ed[14]](responseWithResult(_0xb95bx6))[_0x48ed[18]](handleError(_0xb95bx6))};exports[_0x48ed[24]]= function(_0xb95bx11,_0xb95bx6){return NetworkLocalnet[_0x48ed[27]](_0xb95bx11[_0x48ed[26]][_0x48ed[25]])[_0x48ed[14]](handleEntityNotFound(_0xb95bx6))[_0x48ed[14]](responseWithResult(_0xb95bx6))[_0x48ed[18]](handleError(_0xb95bx6))};exports[_0x48ed[28]]= function(_0xb95bx11,_0xb95bx6){_0xb95bx11[_0x48ed[30]][_0x48ed[29]]= _0x48ed[22];return NetworkLocalnet[_0x48ed[28]](_0xb95bx11[_0x48ed[30]])[_0x48ed[14]](responseWithResult(_0xb95bx6,201))[_0x48ed[18]](handleError(_0xb95bx6))};exports[_0x48ed[31]]= function(_0xb95bx11,_0xb95bx6){if(_0xb95bx11[_0x48ed[30]][_0x48ed[25]]){delete _0xb95bx11[_0x48ed[30]][_0x48ed[25]]};return NetworkLocalnet[_0x48ed[27]](_0xb95bx11[_0x48ed[26]][_0x48ed[25]])[_0x48ed[14]](handleEntityNotFound(_0xb95bx6))[_0x48ed[14]](saveUpdates(_0xb95bx11[_0x48ed[30]]))[_0x48ed[14]](responseWithResult(_0xb95bx6))[_0x48ed[18]](handleError(_0xb95bx6))};exports[_0x48ed[16]]= function(_0xb95bx11,_0xb95bx6){return NetworkLocalnet[_0x48ed[27]](_0xb95bx11[_0x48ed[26]][_0x48ed[25]])[_0x48ed[14]](handleEntityNotFound(_0xb95bx6))[_0x48ed[14]](removeEntity(_0xb95bx6))[_0x48ed[18]](handleError(_0xb95bx6))};exports[_0x48ed[32]]= function(_0xb95bx11,_0xb95bx6){return NetworkLocalnet[_0x48ed[16]]({where:{id:_0xb95bx11[_0x48ed[19]][_0x48ed[33]]},individualHooks:true})[_0x48ed[14]](responseWithoutResult(_0xb95bx6))[_0x48ed[18]](handleError(_0xb95bx6))}
\ No newline at end of file