Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / config / ami / trunk.js
index cb90e65..5c83975 100644 (file)
@@ -1 +1 @@
-var _0xdf18=["\x54\x72\x75\x6E\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","\x54\x72\x75\x6E\x6B\x20\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x2E\x2E\x2E","\x6C\x6F\x67","\x61\x63\x74\x69\x76\x65","\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x63\x68\x61\x6E\x67\x65\x64","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x61\x66\x74\x65\x72\x44\x65\x6C\x65\x74\x65","\x73\x74\x61\x74\x75\x73\x55\x70\x64\x61\x74\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x54\x72\x75\x6E\x6B\x20\x73\x74\x61\x74\x75\x73\x20\x75\x70\x64\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A","\x63\x61\x74\x63\x68","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x64\x6F\x6D\x61\x69\x6E","","\x75\x70\x64\x61\x74\x65","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73\x55\x70\x64\x61\x74\x65","\x54\x72\x75\x6E\x6B\x20\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73\x20\x75\x70\x64\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A","\x2F","\x73\x70\x6C\x69\x74","\x70\x65\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72\x20\x3D\x3E\x20\x25\x73\x0A","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x63\x6C\x6F\x6E\x65","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x5B\x25\x73\x5D\x0A","\x6E\x61\x6D\x65","\x66\x6F\x72\x6D\x61\x74","\x6F\x74\x68\x65\x72\x46\x69\x65\x6C\x64\x73","\x25\x73\x0A","\x3B","\x25\x73\x3D\x25\x73\x0A","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C\x6F\x77","\x72\x65\x67\x69\x73\x74\x72\x79","\x6D\x61\x70","\x61\x73\x74\x65\x72\x69\x73\x6B\x43\x6F\x6E\x66","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x74\x72\x75\x6E\x6B\x73\x2E\x63\x6F\x6E\x66","\x6A\x6F\x69\x6E","\x77","\x30\x37\x37\x37","\x54\x72\x75\x6E\x6B\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x72\x65\x67\x69\x73\x74\x65\x72\x73\x2E\x63\x6F\x6E\x66","\x54\x72\x75\x6E\x6B\x73\x20\x72\x65\x67\x69\x73\x74\x65\x72\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","\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 TrunkModel=require(_0xdf18[1])[_0xdf18[0]];var fs=require(_0xdf18[2]);var util=require(_0xdf18[3]);var path=require(_0xdf18[4]);var config=require(_0xdf18[5]);var _=require(_0xdf18[6]);function Trunk(_0x3e01x8){console[_0xdf18[8]](_0xdf18[7]);TrunkModel[_0xdf18[10]](function(_0x3e01x9){if(_0x3e01x9[_0xdf18[9]]){trunksRewrite(_0x3e01x9,_0x3e01x8,false)}});TrunkModel[_0xdf18[15]](function(_0x3e01x9){if(!_0x3e01x9[_0xdf18[12]](_0xdf18[11])&& !_0x3e01x9[_0xdf18[12]](_0xdf18[13])&& !_0x3e01x9[_0xdf18[12]](_0xdf18[14])){trunksRewrite(_0x3e01x9,_0x3e01x8,false)}});TrunkModel[_0xdf18[16]](function(_0x3e01x9){trunksRewrite(_0x3e01x9,_0x3e01x8,true)})}Trunk[_0xdf18[18]][_0xdf18[17]]= function(_0x3e01xa){return TrunkModel[_0xdf18[24]]({status:_0x3e01xa[_0xdf18[11]]},{where:{defaultuser:_0x3e01xa[_0xdf18[21]],host:_0x3e01xa[_0xdf18[22]],active:true,$and:[{registry:{$ne:_0xdf18[23]}},{registry:{$ne:null}}]},individualHooks:true})[_0xdf18[20]](function(_0x3e01xb){console[_0xdf18[8]](_0xdf18[19],_0x3e01xb)})};Trunk[_0xdf18[18]][_0xdf18[25]]= function(_0x3e01xa){return TrunkModel[_0xdf18[24]]({peerstatus:_0x3e01xa[_0xdf18[13]]},{where:{name:_0x3e01xa[_0xdf18[29]][_0xdf18[28]](_0xdf18[27])[1]},individualHooks:true})[_0xdf18[20]](function(_0x3e01xb){console[_0xdf18[8]](_0xdf18[26],_0x3e01xb)})};function trunksRewrite(_0x3e01x9,_0x3e01x8,_0x3e01xd){var _0x3e01xe=_0xdf18[23];var _0x3e01xf=_0xdf18[23];var _0x3e01x10=_0xdf18[30];if(!_0x3e01xd){var _0x3e01x11=_[_0xdf18[32]](_0x3e01x9[_0xdf18[31]]);delete _0x3e01x11[_0xdf18[33]];delete _0x3e01x11[_0xdf18[14]];delete _0x3e01x11[_0xdf18[9]];delete _0x3e01x11[_0xdf18[11]];_0x3e01xe+= util[_0xdf18[36]](_0xdf18[34],_0x3e01x11[_0xdf18[35]]);if(_0x3e01x11[_0xdf18[37]]){_0x3e01xe+= util[_0xdf18[36]](_0xdf18[38],_0x3e01x11[_0xdf18[37]]);delete _0x3e01x11[_0xdf18[37]]};for(var _0x3e01x12 in _0x3e01x11){if(_0x3e01x11[_0x3e01x12]){switch(_0x3e01x12){case _0xdf18[42]:var _0x3e01x13=_0x3e01x11[_0x3e01x12][_0xdf18[28]](_0xdf18[39]);_0x3e01x13[_0xdf18[41]](function(_0x3e01x14){_0x3e01xe+= util[_0xdf18[36]](_0xdf18[40],_0x3e01x12,_0x3e01x14)});break;default:_0x3e01xe+= util[_0xdf18[36]](_0xdf18[40],_0x3e01x12,_0x3e01x11[_0x3e01x12])}}};if(_0x3e01x11[_0xdf18[43]]){_0x3e01xf+= util[_0xdf18[36]](_0x3e01x10,_0x3e01x11[_0xdf18[43]])}};return TrunkModel[_0xdf18[55]]({where:{name:{$ne:_0x3e01x9[_0xdf18[35]]},active:true}})[_0xdf18[54]](function(_0x3e01x15){var _0x3e01x16=_[_0xdf18[44]](_0x3e01x15,_0xdf18[31]);_0x3e01x16[_0xdf18[41]](function(_0x3e01x17){delete _0x3e01x17[_0xdf18[33]];delete _0x3e01x17[_0xdf18[14]];delete _0x3e01x17[_0xdf18[9]];delete _0x3e01x17[_0xdf18[11]];_0x3e01xe+= util[_0xdf18[36]](_0xdf18[34],_0x3e01x17[_0xdf18[35]]);if(_0x3e01x17[_0xdf18[37]]){_0x3e01xe+= util[_0xdf18[36]](_0xdf18[38],_0x3e01x17[_0xdf18[37]]);delete _0x3e01x17[_0xdf18[37]]};for(var _0x3e01x12 in _0x3e01x17){if(_0x3e01x17[_0x3e01x12]){switch(_0x3e01x12){case _0xdf18[42]:var _0x3e01x13=_0x3e01x17[_0x3e01x12][_0xdf18[28]](_0xdf18[39]);_0x3e01x13[_0xdf18[41]](function(_0x3e01x14){_0x3e01xe+= util[_0xdf18[36]](_0xdf18[40],_0x3e01x12,_0x3e01x14)});break;default:_0x3e01xe+= util[_0xdf18[36]](_0xdf18[40],_0x3e01x12,_0x3e01x17[_0x3e01x12])}}};if(_0x3e01x17[_0xdf18[43]]){_0x3e01xf+= util[_0xdf18[36]](_0x3e01x10,_0x3e01x17[_0xdf18[43]])}});fs[_0xdf18[53]](path[_0xdf18[47]](config[_0xdf18[45]],_0xdf18[46]),_0x3e01xe,{flags:_0xdf18[48],mode:parseInt(_0xdf18[49],8)},function(_0x3e01xb){if(_0x3e01xb){throw _0x3e01xb};console[_0xdf18[8]](_0xdf18[50]);fs[_0xdf18[53]](path[_0xdf18[47]](config[_0xdf18[45]],_0xdf18[51]),_0x3e01xf,{flags:_0xdf18[48],mode:parseInt(_0xdf18[49],8)},function(_0x3e01xb){if(_0x3e01xb){throw _0x3e01xb};reload(_0x3e01x8);console[_0xdf18[8]](_0xdf18[52])})})})[_0xdf18[20]](function(_0x3e01xb){console[_0xdf18[8]](_0x3e01xb)})}function reload(_0x3e01x8){_0x3e01x8[_0xdf18[58]]({Action:_0xdf18[56]},function(_0x3e01xb,_0x3e01x19){if(_0x3e01xb){console[_0xdf18[57]](_0x3e01xb)}else {console[_0xdf18[8]](_0x3e01x19)}})}module[_0xdf18[59]]= Trunk
\ No newline at end of file
+var _0x66b6=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x54\x72\x75\x6E\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","\x54\x72\x75\x6E\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","\x61\x63\x74\x69\x76\x65","\x54\x72\x75\x6E\x6B\x2E\x61\x66\x74\x65\x72\x43\x72\x65\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x63\x68\x61\x6E\x67\x65\x64","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x54\x72\x75\x6E\x6B\x2E\x61\x66\x74\x65\x72\x55\x70\x64\x61\x74\x65","\x54\x72\x75\x6E\x6B\x2E\x61\x66\x74\x65\x72\x44\x65\x73\x74\x72\x6F\x79","\x65\x76\x74","\x6F\x6E","\x73\x74\x61\x74\x75\x73\x55\x70\x64\x61\x74\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x54\x72\x75\x6E\x6B\x20\x73\x74\x61\x74\x75\x73\x20\x75\x70\x64\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A","\x63\x61\x74\x63\x68","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x64\x6F\x6D\x61\x69\x6E","","\x75\x70\x64\x61\x74\x65","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73\x55\x70\x64\x61\x74\x65","\x54\x72\x75\x6E\x6B\x20\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73\x20\x75\x70\x64\x61\x74\x65\x20\x65\x72\x72\x6F\x72\x3A","\x2F","\x73\x70\x6C\x69\x74","\x70\x65\x65\x72","\x72\x65\x67\x69\x73\x74\x65\x72\x20\x3D\x3E\x20\x25\x73\x0A","\x63\x6C\x6F\x6E\x65","\x63\x72\x65\x61\x74\x65\x64\x41\x74","\x75\x70\x64\x61\x74\x65\x64\x41\x74","\x72\x65\x67\x69\x73\x74\x72\x79","\x66\x6F\x72\x6D\x61\x74","\x5B\x25\x73\x5D\x0A","\x6E\x61\x6D\x65","\x6F\x74\x68\x65\x72\x46\x69\x65\x6C\x64\x73","\x25\x73\x0A","\x3B","\x25\x73\x3D\x25\x73\x0A","\x66\x6F\x72\x45\x61\x63\x68","\x61\x6C\x6C\x6F\x77","\x64\x61\x74\x61\x56\x61\x6C\x75\x65\x73","\x6D\x61\x70","\x61\x73\x74\x65\x72\x69\x73\x6B\x43\x6F\x6E\x66","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x74\x72\x75\x6E\x6B\x73\x2E\x63\x6F\x6E\x66","\x6A\x6F\x69\x6E","\x77","\x30\x37\x37\x37","\x54\x72\x75\x6E\x6B\x73\x20\x66\x69\x6C\x65\x20\x73\x61\x76\x65\x64\x21","\x73\x69\x70\x5F\x78\x63\x61\x6C\x6C\x79\x5F\x72\x65\x67\x69\x73\x74\x65\x72\x73\x2E\x63\x6F\x6E\x66","\x54\x72\x75\x6E\x6B\x73\x20\x72\x65\x67\x69\x73\x74\x65\x72\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","\x52\x65\x6C\x6F\x61\x64","\x65\x72\x72\x6F\x72","\x61\x63\x74\x69\x6F\x6E","\x65\x78\x70\x6F\x72\x74\x73"];_0x66b6[0];var TrunkModel=require(_0x66b6[2])[_0x66b6[1]];var fs=require(_0x66b6[3]);var util=require(_0x66b6[4]);var path=require(_0x66b6[5]);var config=require(_0x66b6[6]);var _=require(_0x66b6[7]);function Trunk(_0x225bx8){console[_0x66b6[9]](_0x66b6[8]);process[_0x66b6[19]](_0x66b6[10],function(_0x225bx9){switch(_0x225bx9[_0x66b6[18]]){case _0x66b6[12]:if(_0x225bx9[_0x66b6[11]]){trunksRewrite(_0x225bx9,_0x225bx8,false)};break;case _0x66b6[16]:if(!_0x225bx9[_0x66b6[14]][_0x66b6[13]]&& !_0x225bx9[_0x66b6[14]][_0x66b6[15]]){trunksRewrite(_0x225bx9,_0x225bx8,false)};break;case _0x66b6[17]:trunksRewrite(_0x225bx9,_0x225bx8,true);break;default:}})}Trunk[_0x66b6[21]][_0x66b6[20]]= function(_0x225bxa){return TrunkModel[_0x66b6[27]]({status:_0x225bxa[_0x66b6[13]]},{where:{defaultuser:_0x225bxa[_0x66b6[24]],host:_0x225bxa[_0x66b6[25]],active:true,$and:[{registry:{$ne:_0x66b6[26]}},{registry:{$ne:null}}]},individualHooks:true,raw:true})[_0x66b6[23]](function(_0x225bxb){console[_0x66b6[9]](_0x66b6[22],_0x225bxb)})};Trunk[_0x66b6[21]][_0x66b6[28]]= function(_0x225bxa){return TrunkModel[_0x66b6[27]]({peerstatus:_0x225bxa[_0x66b6[15]]},{where:{name:_0x225bxa[_0x66b6[32]][_0x66b6[31]](_0x66b6[30])[1]},individualHooks:true,raw:true})[_0x66b6[23]](function(_0x225bxb){console[_0x66b6[9]](_0x66b6[29],_0x225bxb)})};function trunksRewrite(_0x225bx9,_0x225bx8,_0x225bxd){var _0x225bxe=_0x66b6[26];var _0x225bxf=_0x66b6[26];var _0x225bx10=_0x66b6[33];if(!_0x225bxd&& _0x225bx9[_0x66b6[11]]){var _0x225bx11=_[_0x66b6[34]](_0x225bx9);delete _0x225bx11[_0x66b6[35]];delete _0x225bx11[_0x66b6[36]];delete _0x225bx11[_0x66b6[11]];delete _0x225bx11[_0x66b6[13]];delete _0x225bx11[_0x66b6[15]];delete _0x225bx11[_0x66b6[18]];delete _0x225bx11[_0x66b6[14]];if(_0x225bx11[_0x66b6[37]]){_0x225bxf+= util[_0x66b6[38]](_0x225bx10,_0x225bx11[_0x66b6[37]])};delete _0x225bx11[_0x66b6[37]];_0x225bxe+= util[_0x66b6[38]](_0x66b6[39],_0x225bx11[_0x66b6[40]]);if(_0x225bx11[_0x66b6[41]]){_0x225bxe+= util[_0x66b6[38]](_0x66b6[42],_0x225bx11[_0x66b6[41]]);delete _0x225bx11[_0x66b6[41]]};for(var _0x225bx12 in _0x225bx11){if(_0x225bx11[_0x225bx12]){switch(_0x225bx12){case _0x66b6[46]:var _0x225bx13=_0x225bx11[_0x225bx12][_0x66b6[31]](_0x66b6[43]);_0x225bx13[_0x66b6[45]](function(_0x225bx14){_0x225bxe+= util[_0x66b6[38]](_0x66b6[44],_0x225bx12,_0x225bx14)});break;default:_0x225bxe+= util[_0x66b6[38]](_0x66b6[44],_0x225bx12,_0x225bx11[_0x225bx12])}}}};return TrunkModel[_0x66b6[59]]({where:{name:{$ne:_0x225bx9[_0x66b6[40]]},active:true}})[_0x66b6[58]](function(_0x225bx15){var _0x225bx16=_[_0x66b6[48]](_0x225bx15,_0x66b6[47]);_0x225bx16[_0x66b6[45]](function(_0x225bx17){delete _0x225bx17[_0x66b6[35]];delete _0x225bx17[_0x66b6[36]];delete _0x225bx17[_0x66b6[11]];delete _0x225bx17[_0x66b6[13]];delete _0x225bx17[_0x66b6[15]];if(_0x225bx17[_0x66b6[37]]){_0x225bxf+= util[_0x66b6[38]](_0x225bx10,_0x225bx17[_0x66b6[37]])};delete _0x225bx17[_0x66b6[37]];_0x225bxe+= util[_0x66b6[38]](_0x66b6[39],_0x225bx17[_0x66b6[40]]);if(_0x225bx17[_0x66b6[41]]){_0x225bxe+= util[_0x66b6[38]](_0x66b6[42],_0x225bx17[_0x66b6[41]]);delete _0x225bx17[_0x66b6[41]]};for(var _0x225bx12 in _0x225bx17){if(_0x225bx17[_0x225bx12]){switch(_0x225bx12){case _0x66b6[46]:var _0x225bx13=_0x225bx17[_0x225bx12][_0x66b6[31]](_0x66b6[43]);_0x225bx13[_0x66b6[45]](function(_0x225bx14){_0x225bxe+= util[_0x66b6[38]](_0x66b6[44],_0x225bx12,_0x225bx14)});break;default:_0x225bxe+= util[_0x66b6[38]](_0x66b6[44],_0x225bx12,_0x225bx17[_0x225bx12])}}}});fs[_0x66b6[57]](path[_0x66b6[51]](config[_0x66b6[49]],_0x66b6[50]),_0x225bxe,{flags:_0x66b6[52],mode:parseInt(_0x66b6[53],8)},function(_0x225bxb){if(_0x225bxb){throw _0x225bxb};console[_0x66b6[9]](_0x66b6[54]);fs[_0x66b6[57]](path[_0x66b6[51]](config[_0x66b6[49]],_0x66b6[55]),_0x225bxf,{flags:_0x66b6[52],mode:parseInt(_0x66b6[53],8)},function(_0x225bxb){if(_0x225bxb){throw _0x225bxb};reload(_0x225bx8);console[_0x66b6[9]](_0x66b6[56])})})})[_0x66b6[23]](function(_0x225bxb){console[_0x66b6[9]](_0x225bxb)})}function reload(_0x225bx8){_0x225bx8[_0x66b6[62]]({Action:_0x66b6[60]},function(_0x225bxb,_0x225bx19){if(_0x225bxb){console[_0x66b6[61]](_0x225bxb)}else {console[_0x66b6[9]](_0x225bx19)}})}module[_0x66b6[63]]= Trunk
\ No newline at end of file