Built motion from commit c8b5f0240.|1.0.26
[motion.git] / server / api / network_localnet / network_localnet.controller.js
index 543cd50..e7b7dc6 100644 (file)
@@ -1 +1 @@
-var _0x4e33=["\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"];_0x4e33[0];var _=require(_0x4e33[1]);var Util=require(_0x4e33[2]);var logger=require(_0x4e33[4])(_0x4e33[3]);var NetworkLocalnet=require(_0x4e33[6])[_0x4e33[5]];function handleError(_0x4edcx6,_0x4edcx7){_0x4edcx7= _0x4edcx7|| 500;return function(_0x4edcx8){logger[_0x4e33[8]](_0x4edcx8[_0x4e33[7]]);_0x4edcx6[_0x4e33[10]](_0x4edcx7)[_0x4e33[9]](_0x4edcx8)}}function responseWithResult(_0x4edcx6,_0x4edcx7){_0x4edcx7= _0x4edcx7|| 200;return function(_0x4edcxa){if(_0x4edcxa){_0x4edcx6[_0x4e33[10]](_0x4edcx7)[_0x4e33[11]](_0x4edcxa)}}}function responseWithoutResult(_0x4edcx6,_0x4edcx7){_0x4edcx7= _0x4edcx7|| 204;return function(){_0x4edcx6[_0x4e33[12]](_0x4edcx7)}}function handleEntityNotFound(_0x4edcx6){return function(_0x4edcxa){if(!_0x4edcxa){_0x4edcx6[_0x4e33[10]](404)[_0x4e33[13]]();return null};return _0x4edcxa}}function saveUpdates(_0x4edcxe){return function(_0x4edcxa){return _0x4edcxa[_0x4e33[15]](_0x4edcxe)[_0x4e33[14]](function(_0x4edcxf){return _0x4edcxf})}}function removeEntity(_0x4edcx6){return function(_0x4edcxa){if(_0x4edcxa){return _0x4edcxa[_0x4e33[16]]()[_0x4e33[14]](function(){_0x4edcx6[_0x4e33[10]](204)[_0x4e33[13]]()})}}}exports[_0x4e33[17]]= function(_0x4edcx11,_0x4edcx6){return NetworkLocalnet[_0x4e33[23]](_0x4e33[22])[_0x4e33[21]](Util[_0x4e33[20]](_0x4edcx11[_0x4e33[19]]))[_0x4e33[14]](responseWithResult(_0x4edcx6))[_0x4e33[18]](handleError(_0x4edcx6))};exports[_0x4e33[24]]= function(_0x4edcx11,_0x4edcx6){return NetworkLocalnet[_0x4e33[27]](_0x4edcx11[_0x4e33[26]][_0x4e33[25]])[_0x4e33[14]](handleEntityNotFound(_0x4edcx6))[_0x4e33[14]](responseWithResult(_0x4edcx6))[_0x4e33[18]](handleError(_0x4edcx6))};exports[_0x4e33[28]]= function(_0x4edcx11,_0x4edcx6){_0x4edcx11[_0x4e33[30]][_0x4e33[29]]= _0x4e33[22];return NetworkLocalnet[_0x4e33[28]](_0x4edcx11[_0x4e33[30]])[_0x4e33[14]](responseWithResult(_0x4edcx6,201))[_0x4e33[18]](handleError(_0x4edcx6))};exports[_0x4e33[31]]= function(_0x4edcx11,_0x4edcx6){if(_0x4edcx11[_0x4e33[30]][_0x4e33[25]]){delete _0x4edcx11[_0x4e33[30]][_0x4e33[25]]};return NetworkLocalnet[_0x4e33[27]](_0x4edcx11[_0x4e33[26]][_0x4e33[25]])[_0x4e33[14]](handleEntityNotFound(_0x4edcx6))[_0x4e33[14]](saveUpdates(_0x4edcx11[_0x4e33[30]]))[_0x4e33[14]](responseWithResult(_0x4edcx6))[_0x4e33[18]](handleError(_0x4edcx6))};exports[_0x4e33[16]]= function(_0x4edcx11,_0x4edcx6){return NetworkLocalnet[_0x4e33[27]](_0x4edcx11[_0x4e33[26]][_0x4e33[25]])[_0x4e33[14]](handleEntityNotFound(_0x4edcx6))[_0x4e33[14]](removeEntity(_0x4edcx6))[_0x4e33[18]](handleError(_0x4edcx6))};exports[_0x4e33[32]]= function(_0x4edcx11,_0x4edcx6){return NetworkLocalnet[_0x4e33[16]]({where:{id:_0x4edcx11[_0x4e33[19]][_0x4e33[33]]},individualHooks:true})[_0x4e33[14]](responseWithoutResult(_0x4edcx6))[_0x4e33[18]](handleError(_0x4edcx6))}
\ No newline at end of file
+var _0xa78d=["\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"];_0xa78d[0];var _=require(_0xa78d[1]);var Util=require(_0xa78d[2]);var logger=require(_0xa78d[4])(_0xa78d[3]);var NetworkLocalnet=require(_0xa78d[6])[_0xa78d[5]];function handleError(_0x5d2fx6,_0x5d2fx7){_0x5d2fx7= _0x5d2fx7|| 500;return function(_0x5d2fx8){logger[_0xa78d[8]](_0x5d2fx8[_0xa78d[7]]);_0x5d2fx6[_0xa78d[10]](_0x5d2fx7)[_0xa78d[9]](_0x5d2fx8)}}function responseWithResult(_0x5d2fx6,_0x5d2fx7){_0x5d2fx7= _0x5d2fx7|| 200;return function(_0x5d2fxa){if(_0x5d2fxa){_0x5d2fx6[_0xa78d[10]](_0x5d2fx7)[_0xa78d[11]](_0x5d2fxa)}}}function responseWithoutResult(_0x5d2fx6,_0x5d2fx7){_0x5d2fx7= _0x5d2fx7|| 204;return function(){_0x5d2fx6[_0xa78d[12]](_0x5d2fx7)}}function handleEntityNotFound(_0x5d2fx6){return function(_0x5d2fxa){if(!_0x5d2fxa){_0x5d2fx6[_0xa78d[10]](404)[_0xa78d[13]]();return null};return _0x5d2fxa}}function saveUpdates(_0x5d2fxe){return function(_0x5d2fxa){return _0x5d2fxa[_0xa78d[15]](_0x5d2fxe)[_0xa78d[14]](function(_0x5d2fxf){return _0x5d2fxf})}}function removeEntity(_0x5d2fx6){return function(_0x5d2fxa){if(_0x5d2fxa){return _0x5d2fxa[_0xa78d[16]]()[_0xa78d[14]](function(){_0x5d2fx6[_0xa78d[10]](204)[_0xa78d[13]]()})}}}exports[_0xa78d[17]]= function(_0x5d2fx11,_0x5d2fx6){return NetworkLocalnet[_0xa78d[23]](_0xa78d[22])[_0xa78d[21]](Util[_0xa78d[20]](_0x5d2fx11[_0xa78d[19]]))[_0xa78d[14]](responseWithResult(_0x5d2fx6))[_0xa78d[18]](handleError(_0x5d2fx6))};exports[_0xa78d[24]]= function(_0x5d2fx11,_0x5d2fx6){return NetworkLocalnet[_0xa78d[27]](_0x5d2fx11[_0xa78d[26]][_0xa78d[25]])[_0xa78d[14]](handleEntityNotFound(_0x5d2fx6))[_0xa78d[14]](responseWithResult(_0x5d2fx6))[_0xa78d[18]](handleError(_0x5d2fx6))};exports[_0xa78d[28]]= function(_0x5d2fx11,_0x5d2fx6){_0x5d2fx11[_0xa78d[30]][_0xa78d[29]]= _0xa78d[22];return NetworkLocalnet[_0xa78d[28]](_0x5d2fx11[_0xa78d[30]])[_0xa78d[14]](responseWithResult(_0x5d2fx6,201))[_0xa78d[18]](handleError(_0x5d2fx6))};exports[_0xa78d[31]]= function(_0x5d2fx11,_0x5d2fx6){if(_0x5d2fx11[_0xa78d[30]][_0xa78d[25]]){delete _0x5d2fx11[_0xa78d[30]][_0xa78d[25]]};return NetworkLocalnet[_0xa78d[27]](_0x5d2fx11[_0xa78d[26]][_0xa78d[25]])[_0xa78d[14]](handleEntityNotFound(_0x5d2fx6))[_0xa78d[14]](saveUpdates(_0x5d2fx11[_0xa78d[30]]))[_0xa78d[14]](responseWithResult(_0x5d2fx6))[_0xa78d[18]](handleError(_0x5d2fx6))};exports[_0xa78d[16]]= function(_0x5d2fx11,_0x5d2fx6){return NetworkLocalnet[_0xa78d[27]](_0x5d2fx11[_0xa78d[26]][_0xa78d[25]])[_0xa78d[14]](handleEntityNotFound(_0x5d2fx6))[_0xa78d[14]](removeEntity(_0x5d2fx6))[_0xa78d[18]](handleError(_0x5d2fx6))};exports[_0xa78d[32]]= function(_0x5d2fx11,_0x5d2fx6){return NetworkLocalnet[_0xa78d[16]]({where:{id:_0x5d2fx11[_0xa78d[19]][_0xa78d[33]]},individualHooks:true})[_0xa78d[14]](responseWithoutResult(_0x5d2fx6))[_0xa78d[18]](handleError(_0x5d2fx6))}
\ No newline at end of file