Built motion from commit b45d4e0.|0.0.147
[motion.git] / server / config / ami / network.js
1 var _0xf265=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x75\x74\x69\x6C","\x70\x61\x74\x68","\x66\x73","\x4E\x65\x74\x77\x6F\x72\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\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","\x6D\x65\x73\x73\x61\x67\x65","\x4E\x65\x74\x77\x6F\x72\x6B\x2E\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x4E\x65\x74\x77\x6F\x72\x6B\x2E\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x4E\x65\x74\x77\x6F\x72\x6B\x2E\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x76\x74","\x6F\x6E","\x6E\x65\x74\x77\x6F\x72\x6B\x52\x65\x77\x72\x69\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"];_0xf265[0];const _=require(_0xf265[1]);const util=require(_0xf265[2]);const path=require(_0xf265[3]);const fs=require(_0xf265[4]);var NetworkModel=require(_0xf265[6])[_0xf265[5]];var config=require(_0xf265[7]);function Network(_0x8e02x8){console[_0xf265[9]](_0xf265[8]);process[_0xf265[15]](_0xf265[10],function(_0x8e02x9){switch(_0x8e02x9[_0xf265[14]]){case _0xf265[11]:;case _0xf265[12]:;case _0xf265[13]:networkRewrite(_0x8e02x9,_0x8e02x8);break;default:}})}function networkRewrite(_0x8e02x9,_0x8e02x8){console[_0xf265[9]](_0xf265[16],_0x8e02x9);switch(_0x8e02x9[_0xf265[41]]){case _0xf265[33]:return NetworkModel[_0xf265[34]](_0xf265[33])[_0xf265[32]]()[_0xf265[31]](function(_0x8e02xc){var _0x8e02xd=_0xf265[19];var _0x8e02xe=_0xf265[20];_0x8e02xc[_0xf265[24]](function(_0x8e02xf){_0x8e02xd+= util[_0xf265[23]](_0xf265[21],_0x8e02xf[_0xf265[22]])});fs[_0xf265[30]](path[_0xf265[26]](config[_0xf265[25]],_0x8e02xe),_0x8e02xd,{flags:_0xf265[27],mode:parseInt(_0xf265[28],8)},function(_0x8e02xb){if(_0x8e02xb){throw _0x8e02xb};reload(_0x8e02x8);console[_0xf265[9]](_0xf265[29])})})[_0xf265[18]](function(_0x8e02xb){console[_0xf265[9]](_0xf265[17],_0x8e02xb)});case _0xf265[39]:return NetworkModel[_0xf265[34]](_0xf265[39])[_0xf265[32]]()[_0xf265[31]](function(_0x8e02x10){var _0x8e02x11=_0xf265[19];var _0x8e02x12=_0xf265[36];_0x8e02x10[_0xf265[24]](function(_0x8e02x13){_0x8e02x11+= util[_0xf265[23]](_0xf265[37],_0x8e02x13[_0xf265[22]])});fs[_0xf265[30]](path[_0xf265[26]](config[_0xf265[25]],_0x8e02x12),_0x8e02x11,{flags:_0xf265[27],mode:parseInt(_0xf265[28],8)},function(_0x8e02xb){if(_0x8e02xb){throw _0x8e02xb};reload(_0x8e02x8);console[_0xf265[9]](_0xf265[38])})})[_0xf265[18]](function(_0x8e02xb){console[_0xf265[9]](_0xf265[35],_0x8e02xb)});default:console[_0xf265[9]](_0xf265[40],_0x8e02x9[_0xf265[41]])}}function reload(_0x8e02x8){_0x8e02x8[_0xf265[44]]({Action:_0xf265[42]},function(_0x8e02xb,_0x8e02x15){if(_0x8e02xb){console[_0xf265[43]](_0x8e02xb)}else {console[_0xf265[9]](_0x8e02x15)}})}module[_0xf265[45]]= Network