Built motion from commit 02c0abe.|0.0.118
[motion.git] / server / config / ami / network.js
1 var _0x37e0=["\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(_0x37e0[1])[_0x37e0[0]];var fs=require(_0x37e0[2]);var util=require(_0x37e0[3]);var path=require(_0x37e0[4]);var config=require(_0x37e0[5]);var _=require(_0x37e0[6]);function Network(_0xcf09x8){console[_0x37e0[8]](_0x37e0[7]);NetwokModel[_0x37e0[9]](function(_0xcf09x9){networkRewrite(_0xcf09x9,_0xcf09x8)});NetwokModel[_0x37e0[10]](function(_0xcf09x9){networkRewrite(_0xcf09x9,_0xcf09x8)});NetwokModel[_0x37e0[11]](function(_0xcf09x9){networkRewrite(_0xcf09x9,_0xcf09x8)})}function networkRewrite(_0xcf09x9,_0xcf09x8){switch(_0xcf09x9[_0x37e0[36]]){case _0x37e0[28]:return NetwokModel[_0x37e0[29]](_0x37e0[28])[_0x37e0[27]]()[_0x37e0[26]](function(_0xcf09xc){var _0xcf09xd=_0x37e0[14];var _0xcf09xe=_0x37e0[15];_0xcf09xc[_0x37e0[19]](function(_0xcf09xf){_0xcf09xd+= util[_0x37e0[18]](_0x37e0[16],_0xcf09xf[_0x37e0[17]])});fs[_0x37e0[25]](path[_0x37e0[21]](config[_0x37e0[20]],_0xcf09xe),_0xcf09xd,{flags:_0x37e0[22],mode:parseInt(_0x37e0[23],8)},function(_0xcf09xb){if(_0xcf09xb){throw _0xcf09xb};reload(_0xcf09x8);console[_0x37e0[8]](_0x37e0[24])})})[_0x37e0[13]](function(_0xcf09xb){console[_0x37e0[8]](_0x37e0[12],_0xcf09xb)});case _0x37e0[34]:return NetwokModel[_0x37e0[29]](_0x37e0[34])[_0x37e0[27]]()[_0x37e0[26]](function(_0xcf09x10){var _0xcf09x11=_0x37e0[14];var _0xcf09x12=_0x37e0[31];_0xcf09x10[_0x37e0[19]](function(_0xcf09x13){_0xcf09x11+= util[_0x37e0[18]](_0x37e0[32],_0xcf09x13[_0x37e0[17]])});fs[_0x37e0[25]](path[_0x37e0[21]](config[_0x37e0[20]],_0xcf09x12),_0xcf09x11,{flags:_0x37e0[22],mode:parseInt(_0x37e0[23],8)},function(_0xcf09xb){if(_0xcf09xb){throw _0xcf09xb};reload(_0xcf09x8);console[_0x37e0[8]](_0x37e0[33])})})[_0x37e0[13]](function(_0xcf09xb){console[_0x37e0[8]](_0x37e0[30],_0xcf09xb)});default:console[_0x37e0[8]](_0x37e0[35],_0xcf09x9[_0x37e0[36]])}}function reload(_0xcf09x8){_0xcf09x8[_0x37e0[39]]({Action:_0x37e0[37]},function(_0xcf09xb,_0xcf09x15){if(_0xcf09xb){console[_0x37e0[38]](_0xcf09xb)}else {console[_0x37e0[8]](_0xcf09x15)}})}module[_0x37e0[40]]= Network