Built motion from commit ec3309576.|1.0.33
[motion.git] / server / api / network_localnet / network_localnet.controller.js
index 88533da..877b164 100644 (file)
@@ -1 +1 @@
-var _0xf520=["\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"];_0xf520[0];var _=require(_0xf520[1]);var Util=require(_0xf520[2]);var logger=require(_0xf520[4])(_0xf520[3]);var NetworkLocalnet=require(_0xf520[6])[_0xf520[5]];function handleError(_0x5ce0x6,_0x5ce0x7){_0x5ce0x7= _0x5ce0x7|| 500;return function(_0x5ce0x8){logger[_0xf520[8]](_0x5ce0x8[_0xf520[7]]);_0x5ce0x6[_0xf520[10]](_0x5ce0x7)[_0xf520[9]](_0x5ce0x8)}}function responseWithResult(_0x5ce0x6,_0x5ce0x7){_0x5ce0x7= _0x5ce0x7|| 200;return function(_0x5ce0xa){if(_0x5ce0xa){_0x5ce0x6[_0xf520[10]](_0x5ce0x7)[_0xf520[11]](_0x5ce0xa)}}}function responseWithoutResult(_0x5ce0x6,_0x5ce0x7){_0x5ce0x7= _0x5ce0x7|| 204;return function(){_0x5ce0x6[_0xf520[12]](_0x5ce0x7)}}function handleEntityNotFound(_0x5ce0x6){return function(_0x5ce0xa){if(!_0x5ce0xa){_0x5ce0x6[_0xf520[10]](404)[_0xf520[13]]();return null};return _0x5ce0xa}}function saveUpdates(_0x5ce0xe){return function(_0x5ce0xa){return _0x5ce0xa[_0xf520[15]](_0x5ce0xe)[_0xf520[14]](function(_0x5ce0xf){return _0x5ce0xf})}}function removeEntity(_0x5ce0x6){return function(_0x5ce0xa){if(_0x5ce0xa){return _0x5ce0xa[_0xf520[16]]()[_0xf520[14]](function(){_0x5ce0x6[_0xf520[10]](204)[_0xf520[13]]()})}}}exports[_0xf520[17]]= function(_0x5ce0x11,_0x5ce0x6){return NetworkLocalnet[_0xf520[23]](_0xf520[22])[_0xf520[21]](Util[_0xf520[20]](_0x5ce0x11[_0xf520[19]]))[_0xf520[14]](responseWithResult(_0x5ce0x6))[_0xf520[18]](handleError(_0x5ce0x6))};exports[_0xf520[24]]= function(_0x5ce0x11,_0x5ce0x6){return NetworkLocalnet[_0xf520[27]](_0x5ce0x11[_0xf520[26]][_0xf520[25]])[_0xf520[14]](handleEntityNotFound(_0x5ce0x6))[_0xf520[14]](responseWithResult(_0x5ce0x6))[_0xf520[18]](handleError(_0x5ce0x6))};exports[_0xf520[28]]= function(_0x5ce0x11,_0x5ce0x6){_0x5ce0x11[_0xf520[30]][_0xf520[29]]= _0xf520[22];return NetworkLocalnet[_0xf520[28]](_0x5ce0x11[_0xf520[30]])[_0xf520[14]](responseWithResult(_0x5ce0x6,201))[_0xf520[18]](handleError(_0x5ce0x6))};exports[_0xf520[31]]= function(_0x5ce0x11,_0x5ce0x6){if(_0x5ce0x11[_0xf520[30]][_0xf520[25]]){delete _0x5ce0x11[_0xf520[30]][_0xf520[25]]};return NetworkLocalnet[_0xf520[27]](_0x5ce0x11[_0xf520[26]][_0xf520[25]])[_0xf520[14]](handleEntityNotFound(_0x5ce0x6))[_0xf520[14]](saveUpdates(_0x5ce0x11[_0xf520[30]]))[_0xf520[14]](responseWithResult(_0x5ce0x6))[_0xf520[18]](handleError(_0x5ce0x6))};exports[_0xf520[16]]= function(_0x5ce0x11,_0x5ce0x6){return NetworkLocalnet[_0xf520[27]](_0x5ce0x11[_0xf520[26]][_0xf520[25]])[_0xf520[14]](handleEntityNotFound(_0x5ce0x6))[_0xf520[14]](removeEntity(_0x5ce0x6))[_0xf520[18]](handleError(_0x5ce0x6))};exports[_0xf520[32]]= function(_0x5ce0x11,_0x5ce0x6){return NetworkLocalnet[_0xf520[16]]({where:{id:_0x5ce0x11[_0xf520[19]][_0xf520[33]]},individualHooks:true})[_0xf520[14]](responseWithoutResult(_0x5ce0x6))[_0xf520[18]](handleError(_0x5ce0x6))}
\ No newline at end of file
+var _0x9d98=["\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"];_0x9d98[0];var _=require(_0x9d98[1]);var Util=require(_0x9d98[2]);var logger=require(_0x9d98[4])(_0x9d98[3]);var NetworkLocalnet=require(_0x9d98[6])[_0x9d98[5]];function handleError(_0x1463x6,_0x1463x7){_0x1463x7= _0x1463x7|| 500;return function(_0x1463x8){logger[_0x9d98[8]](_0x1463x8[_0x9d98[7]]);_0x1463x6[_0x9d98[10]](_0x1463x7)[_0x9d98[9]](_0x1463x8)}}function responseWithResult(_0x1463x6,_0x1463x7){_0x1463x7= _0x1463x7|| 200;return function(_0x1463xa){if(_0x1463xa){_0x1463x6[_0x9d98[10]](_0x1463x7)[_0x9d98[11]](_0x1463xa)}}}function responseWithoutResult(_0x1463x6,_0x1463x7){_0x1463x7= _0x1463x7|| 204;return function(){_0x1463x6[_0x9d98[12]](_0x1463x7)}}function handleEntityNotFound(_0x1463x6){return function(_0x1463xa){if(!_0x1463xa){_0x1463x6[_0x9d98[10]](404)[_0x9d98[13]]();return null};return _0x1463xa}}function saveUpdates(_0x1463xe){return function(_0x1463xa){return _0x1463xa[_0x9d98[15]](_0x1463xe)[_0x9d98[14]](function(_0x1463xf){return _0x1463xf})}}function removeEntity(_0x1463x6){return function(_0x1463xa){if(_0x1463xa){return _0x1463xa[_0x9d98[16]]()[_0x9d98[14]](function(){_0x1463x6[_0x9d98[10]](204)[_0x9d98[13]]()})}}}exports[_0x9d98[17]]= function(_0x1463x11,_0x1463x6){return NetworkLocalnet[_0x9d98[23]](_0x9d98[22])[_0x9d98[21]](Util[_0x9d98[20]](_0x1463x11[_0x9d98[19]]))[_0x9d98[14]](responseWithResult(_0x1463x6))[_0x9d98[18]](handleError(_0x1463x6))};exports[_0x9d98[24]]= function(_0x1463x11,_0x1463x6){return NetworkLocalnet[_0x9d98[27]](_0x1463x11[_0x9d98[26]][_0x9d98[25]])[_0x9d98[14]](handleEntityNotFound(_0x1463x6))[_0x9d98[14]](responseWithResult(_0x1463x6))[_0x9d98[18]](handleError(_0x1463x6))};exports[_0x9d98[28]]= function(_0x1463x11,_0x1463x6){_0x1463x11[_0x9d98[30]][_0x9d98[29]]= _0x9d98[22];return NetworkLocalnet[_0x9d98[28]](_0x1463x11[_0x9d98[30]])[_0x9d98[14]](responseWithResult(_0x1463x6,201))[_0x9d98[18]](handleError(_0x1463x6))};exports[_0x9d98[31]]= function(_0x1463x11,_0x1463x6){if(_0x1463x11[_0x9d98[30]][_0x9d98[25]]){delete _0x1463x11[_0x9d98[30]][_0x9d98[25]]};return NetworkLocalnet[_0x9d98[27]](_0x1463x11[_0x9d98[26]][_0x9d98[25]])[_0x9d98[14]](handleEntityNotFound(_0x1463x6))[_0x9d98[14]](saveUpdates(_0x1463x11[_0x9d98[30]]))[_0x9d98[14]](responseWithResult(_0x1463x6))[_0x9d98[18]](handleError(_0x1463x6))};exports[_0x9d98[16]]= function(_0x1463x11,_0x1463x6){return NetworkLocalnet[_0x9d98[27]](_0x1463x11[_0x9d98[26]][_0x9d98[25]])[_0x9d98[14]](handleEntityNotFound(_0x1463x6))[_0x9d98[14]](removeEntity(_0x1463x6))[_0x9d98[18]](handleError(_0x1463x6))};exports[_0x9d98[32]]= function(_0x1463x11,_0x1463x6){return NetworkLocalnet[_0x9d98[16]]({where:{id:_0x1463x11[_0x9d98[19]][_0x9d98[33]]},individualHooks:true})[_0x9d98[14]](responseWithoutResult(_0x1463x6))[_0x9d98[18]](handleError(_0x1463x6))}
\ No newline at end of file