Built motion from commit dec9cf4.|0.0.134
[motion.git] / server / config / ami / network.js
1 var _0xc222=["\x4E\x65\x74\x77\x6F\x72\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x66\x73","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x6C\x6F\x64\x61\x73\x68","\x4E\x65\x74\x77\x6F\x72\x6B\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","\x45\x72\x72\x6F\x72\x20\x77\x72\x69\x74\x69\x6E\x67\x20\x6C\x6F\x63\x61\x6C\x6E\x65\x74\x3A","\x63\x61\x74\x63\x68","","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x6C\x6F\x63\x61\x6C\x6E\x65\x74\x2E\x63\x6F\x6E\x66","\x6C\x6F\x63\x61\x6C\x6E\x65\x74\x20\x3D\x20\x25\x73\x0A","\x76\x61\x6C\x75\x65","\x66\x6F\x72\x6D\x61\x74","\x66\x6F\x72\x45\x61\x63\x68","\x61\x73\x74\x65\x72\x69\x73\x6B\x43\x6F\x6E\x66","\x6A\x6F\x69\x6E","\x77","\x30\x37\x37\x37","\x4C\x6F\x63\x61\x6C\x6E\x65\x74\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x77\x72\x69\x74\x65\x46\x69\x6C\x65","\x74\x68\x65\x6E","\x66\x69\x6E\x64\x41\x6C\x6C","\x6C\x6F\x63\x61\x6C\x6E\x65\x74","\x73\x63\x6F\x70\x65","\x45\x72\x72\x6F\x72\x20\x77\x72\x69\x74\x69\x6E\x67\x20\x65\x78\x74\x65\x72\x6E\x69\x70\x3A","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x65\x78\x74\x65\x72\x6E\x69\x70\x2E\x63\x6F\x6E\x66","\x65\x78\x74\x65\x72\x6E\x69\x70\x20\x3D\x20\x25\x73\x0A","\x45\x78\x74\x65\x72\x6E\x69\x70\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x65\x78\x74\x65\x72\x6E\x69\x70","\x54\x79\x70\x65\x20\x6E\x6F\x74\x20\x72\x65\x63\x6F\x67\x6E\x69\x7A\x65\x64\x3A","\x74\x79\x70\x65","\x52\x65\x6C\x6F\x61\x64","\x65\x72\x72\x6F\x72","\x61\x63\x74\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];var NetwokModel=require(_0xc222[1])[_0xc222[0]];var fs=require(_0xc222[2]);var util=require(_0xc222[3]);var path=require(_0xc222[4]);var config=require(_0xc222[5]);var _=require(_0xc222[6]);function Network(_0xea08x8){console[_0xc222[8]](_0xc222[7]);NetwokModel[_0xc222[9]](function(_0xea08x9){networkRewrite(_0xea08x9,_0xea08x8)});NetwokModel[_0xc222[10]](function(_0xea08x9){networkRewrite(_0xea08x9,_0xea08x8)});NetwokModel[_0xc222[11]](function(_0xea08x9){networkRewrite(_0xea08x9,_0xea08x8)})}function networkRewrite(_0xea08x9,_0xea08x8){switch(_0xea08x9[_0xc222[36]]){case _0xc222[28]:return NetwokModel[_0xc222[29]](_0xc222[28])[_0xc222[27]]()[_0xc222[26]](function(_0xea08xc){var _0xea08xd=_0xc222[14];var _0xea08xe=_0xc222[15];_0xea08xc[_0xc222[19]](function(_0xea08xf){_0xea08xd+= util[_0xc222[18]](_0xc222[16],_0xea08xf[_0xc222[17]])});fs[_0xc222[25]](path[_0xc222[21]](config[_0xc222[20]],_0xea08xe),_0xea08xd,{flags:_0xc222[22],mode:parseInt(_0xc222[23],8)},function(_0xea08xb){if(_0xea08xb){throw _0xea08xb};reload(_0xea08x8);console[_0xc222[8]](_0xc222[24])})})[_0xc222[13]](function(_0xea08xb){console[_0xc222[8]](_0xc222[12],_0xea08xb)});case _0xc222[34]:return NetwokModel[_0xc222[29]](_0xc222[34])[_0xc222[27]]()[_0xc222[26]](function(_0xea08x10){var _0xea08x11=_0xc222[14];var _0xea08x12=_0xc222[31];_0xea08x10[_0xc222[19]](function(_0xea08x13){_0xea08x11+= util[_0xc222[18]](_0xc222[32],_0xea08x13[_0xc222[17]])});fs[_0xc222[25]](path[_0xc222[21]](config[_0xc222[20]],_0xea08x12),_0xea08x11,{flags:_0xc222[22],mode:parseInt(_0xc222[23],8)},function(_0xea08xb){if(_0xea08xb){throw _0xea08xb};reload(_0xea08x8);console[_0xc222[8]](_0xc222[33])})})[_0xc222[13]](function(_0xea08xb){console[_0xc222[8]](_0xc222[30],_0xea08xb)});default:console[_0xc222[8]](_0xc222[35],_0xea08x9[_0xc222[36]])}}function reload(_0xea08x8){_0xea08x8[_0xc222[39]]({Action:_0xc222[37]},function(_0xea08xb,_0xea08x15){if(_0xea08xb){console[_0xc222[38]](_0xea08xb)}else {console[_0xc222[8]](_0xea08x15)}})}module[_0xc222[40]]= Network