Built motion from commit b387bb7c7.|1.0.28
[motion.git] / server / api / network_localnet / network_localnet.controller.js
index 61b5ec8..569a13b 100644 (file)
@@ -1 +1 @@
-var _0xac5e=["\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"];_0xac5e[0];var _=require(_0xac5e[1]);var Util=require(_0xac5e[2]);var logger=require(_0xac5e[4])(_0xac5e[3]);var NetworkLocalnet=require(_0xac5e[6])[_0xac5e[5]];function handleError(_0xbf46x6,_0xbf46x7){_0xbf46x7= _0xbf46x7|| 500;return function(_0xbf46x8){logger[_0xac5e[8]](_0xbf46x8[_0xac5e[7]]);_0xbf46x6[_0xac5e[10]](_0xbf46x7)[_0xac5e[9]](_0xbf46x8)}}function responseWithResult(_0xbf46x6,_0xbf46x7){_0xbf46x7= _0xbf46x7|| 200;return function(_0xbf46xa){if(_0xbf46xa){_0xbf46x6[_0xac5e[10]](_0xbf46x7)[_0xac5e[11]](_0xbf46xa)}}}function responseWithoutResult(_0xbf46x6,_0xbf46x7){_0xbf46x7= _0xbf46x7|| 204;return function(){_0xbf46x6[_0xac5e[12]](_0xbf46x7)}}function handleEntityNotFound(_0xbf46x6){return function(_0xbf46xa){if(!_0xbf46xa){_0xbf46x6[_0xac5e[10]](404)[_0xac5e[13]]();return null};return _0xbf46xa}}function saveUpdates(_0xbf46xe){return function(_0xbf46xa){return _0xbf46xa[_0xac5e[15]](_0xbf46xe)[_0xac5e[14]](function(_0xbf46xf){return _0xbf46xf})}}function removeEntity(_0xbf46x6){return function(_0xbf46xa){if(_0xbf46xa){return _0xbf46xa[_0xac5e[16]]()[_0xac5e[14]](function(){_0xbf46x6[_0xac5e[10]](204)[_0xac5e[13]]()})}}}exports[_0xac5e[17]]= function(_0xbf46x11,_0xbf46x6){return NetworkLocalnet[_0xac5e[23]](_0xac5e[22])[_0xac5e[21]](Util[_0xac5e[20]](_0xbf46x11[_0xac5e[19]]))[_0xac5e[14]](responseWithResult(_0xbf46x6))[_0xac5e[18]](handleError(_0xbf46x6))};exports[_0xac5e[24]]= function(_0xbf46x11,_0xbf46x6){return NetworkLocalnet[_0xac5e[27]](_0xbf46x11[_0xac5e[26]][_0xac5e[25]])[_0xac5e[14]](handleEntityNotFound(_0xbf46x6))[_0xac5e[14]](responseWithResult(_0xbf46x6))[_0xac5e[18]](handleError(_0xbf46x6))};exports[_0xac5e[28]]= function(_0xbf46x11,_0xbf46x6){_0xbf46x11[_0xac5e[30]][_0xac5e[29]]= _0xac5e[22];return NetworkLocalnet[_0xac5e[28]](_0xbf46x11[_0xac5e[30]])[_0xac5e[14]](responseWithResult(_0xbf46x6,201))[_0xac5e[18]](handleError(_0xbf46x6))};exports[_0xac5e[31]]= function(_0xbf46x11,_0xbf46x6){if(_0xbf46x11[_0xac5e[30]][_0xac5e[25]]){delete _0xbf46x11[_0xac5e[30]][_0xac5e[25]]};return NetworkLocalnet[_0xac5e[27]](_0xbf46x11[_0xac5e[26]][_0xac5e[25]])[_0xac5e[14]](handleEntityNotFound(_0xbf46x6))[_0xac5e[14]](saveUpdates(_0xbf46x11[_0xac5e[30]]))[_0xac5e[14]](responseWithResult(_0xbf46x6))[_0xac5e[18]](handleError(_0xbf46x6))};exports[_0xac5e[16]]= function(_0xbf46x11,_0xbf46x6){return NetworkLocalnet[_0xac5e[27]](_0xbf46x11[_0xac5e[26]][_0xac5e[25]])[_0xac5e[14]](handleEntityNotFound(_0xbf46x6))[_0xac5e[14]](removeEntity(_0xbf46x6))[_0xac5e[18]](handleError(_0xbf46x6))};exports[_0xac5e[32]]= function(_0xbf46x11,_0xbf46x6){return NetworkLocalnet[_0xac5e[16]]({where:{id:_0xbf46x11[_0xac5e[19]][_0xac5e[33]]},individualHooks:true})[_0xac5e[14]](responseWithoutResult(_0xbf46x6))[_0xac5e[18]](handleError(_0xbf46x6))}
\ No newline at end of file
+var _0xbe6a=["\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"];_0xbe6a[0];var _=require(_0xbe6a[1]);var Util=require(_0xbe6a[2]);var logger=require(_0xbe6a[4])(_0xbe6a[3]);var NetworkLocalnet=require(_0xbe6a[6])[_0xbe6a[5]];function handleError(_0x37edx6,_0x37edx7){_0x37edx7= _0x37edx7|| 500;return function(_0x37edx8){logger[_0xbe6a[8]](_0x37edx8[_0xbe6a[7]]);_0x37edx6[_0xbe6a[10]](_0x37edx7)[_0xbe6a[9]](_0x37edx8)}}function responseWithResult(_0x37edx6,_0x37edx7){_0x37edx7= _0x37edx7|| 200;return function(_0x37edxa){if(_0x37edxa){_0x37edx6[_0xbe6a[10]](_0x37edx7)[_0xbe6a[11]](_0x37edxa)}}}function responseWithoutResult(_0x37edx6,_0x37edx7){_0x37edx7= _0x37edx7|| 204;return function(){_0x37edx6[_0xbe6a[12]](_0x37edx7)}}function handleEntityNotFound(_0x37edx6){return function(_0x37edxa){if(!_0x37edxa){_0x37edx6[_0xbe6a[10]](404)[_0xbe6a[13]]();return null};return _0x37edxa}}function saveUpdates(_0x37edxe){return function(_0x37edxa){return _0x37edxa[_0xbe6a[15]](_0x37edxe)[_0xbe6a[14]](function(_0x37edxf){return _0x37edxf})}}function removeEntity(_0x37edx6){return function(_0x37edxa){if(_0x37edxa){return _0x37edxa[_0xbe6a[16]]()[_0xbe6a[14]](function(){_0x37edx6[_0xbe6a[10]](204)[_0xbe6a[13]]()})}}}exports[_0xbe6a[17]]= function(_0x37edx11,_0x37edx6){return NetworkLocalnet[_0xbe6a[23]](_0xbe6a[22])[_0xbe6a[21]](Util[_0xbe6a[20]](_0x37edx11[_0xbe6a[19]]))[_0xbe6a[14]](responseWithResult(_0x37edx6))[_0xbe6a[18]](handleError(_0x37edx6))};exports[_0xbe6a[24]]= function(_0x37edx11,_0x37edx6){return NetworkLocalnet[_0xbe6a[27]](_0x37edx11[_0xbe6a[26]][_0xbe6a[25]])[_0xbe6a[14]](handleEntityNotFound(_0x37edx6))[_0xbe6a[14]](responseWithResult(_0x37edx6))[_0xbe6a[18]](handleError(_0x37edx6))};exports[_0xbe6a[28]]= function(_0x37edx11,_0x37edx6){_0x37edx11[_0xbe6a[30]][_0xbe6a[29]]= _0xbe6a[22];return NetworkLocalnet[_0xbe6a[28]](_0x37edx11[_0xbe6a[30]])[_0xbe6a[14]](responseWithResult(_0x37edx6,201))[_0xbe6a[18]](handleError(_0x37edx6))};exports[_0xbe6a[31]]= function(_0x37edx11,_0x37edx6){if(_0x37edx11[_0xbe6a[30]][_0xbe6a[25]]){delete _0x37edx11[_0xbe6a[30]][_0xbe6a[25]]};return NetworkLocalnet[_0xbe6a[27]](_0x37edx11[_0xbe6a[26]][_0xbe6a[25]])[_0xbe6a[14]](handleEntityNotFound(_0x37edx6))[_0xbe6a[14]](saveUpdates(_0x37edx11[_0xbe6a[30]]))[_0xbe6a[14]](responseWithResult(_0x37edx6))[_0xbe6a[18]](handleError(_0x37edx6))};exports[_0xbe6a[16]]= function(_0x37edx11,_0x37edx6){return NetworkLocalnet[_0xbe6a[27]](_0x37edx11[_0xbe6a[26]][_0xbe6a[25]])[_0xbe6a[14]](handleEntityNotFound(_0x37edx6))[_0xbe6a[14]](removeEntity(_0x37edx6))[_0xbe6a[18]](handleError(_0x37edx6))};exports[_0xbe6a[32]]= function(_0x37edx11,_0x37edx6){return NetworkLocalnet[_0xbe6a[16]]({where:{id:_0x37edx11[_0xbe6a[19]][_0xbe6a[33]]},individualHooks:true})[_0xbe6a[14]](responseWithoutResult(_0x37edx6))[_0xbe6a[18]](handleError(_0x37edx6))}
\ No newline at end of file