Built motion from commit 99feb03.|0.0.140
[motion.git] / server / config / ami / trunk.js
index b0148cf..7b5f485 100644 (file)
@@ -1 +1 @@
-var _0x7b0d=["\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(_0x7b0d[1])[_0x7b0d[0]];var fs=require(_0x7b0d[2]);var util=require(_0x7b0d[3]);var path=require(_0x7b0d[4]);var config=require(_0x7b0d[5]);var _=require(_0x7b0d[6]);function Trunk(_0x3142x8){console[_0x7b0d[8]](_0x7b0d[7]);TrunkModel[_0x7b0d[10]](function(_0x3142x9){if(_0x3142x9[_0x7b0d[9]]){trunksRewrite(_0x3142x9,_0x3142x8,false)}});TrunkModel[_0x7b0d[15]](function(_0x3142x9){if(!_0x3142x9[_0x7b0d[12]](_0x7b0d[11])&& !_0x3142x9[_0x7b0d[12]](_0x7b0d[13])&& !_0x3142x9[_0x7b0d[12]](_0x7b0d[14])){trunksRewrite(_0x3142x9,_0x3142x8,false)}});TrunkModel[_0x7b0d[16]](function(_0x3142x9){trunksRewrite(_0x3142x9,_0x3142x8,true)})}Trunk[_0x7b0d[18]][_0x7b0d[17]]= function(_0x3142xa){return TrunkModel[_0x7b0d[24]]({status:_0x3142xa[_0x7b0d[11]]},{where:{defaultuser:_0x3142xa[_0x7b0d[21]],host:_0x3142xa[_0x7b0d[22]],active:true,$and:[{registry:{$ne:_0x7b0d[23]}},{registry:{$ne:null}}]},individualHooks:true})[_0x7b0d[20]](function(_0x3142xb){console[_0x7b0d[8]](_0x7b0d[19],_0x3142xb)})};Trunk[_0x7b0d[18]][_0x7b0d[25]]= function(_0x3142xa){return TrunkModel[_0x7b0d[24]]({peerstatus:_0x3142xa[_0x7b0d[13]]},{where:{name:_0x3142xa[_0x7b0d[29]][_0x7b0d[28]](_0x7b0d[27])[1]},individualHooks:true})[_0x7b0d[20]](function(_0x3142xb){console[_0x7b0d[8]](_0x7b0d[26],_0x3142xb)})};function trunksRewrite(_0x3142x9,_0x3142x8,_0x3142xd){var _0x3142xe=_0x7b0d[23];var _0x3142xf=_0x7b0d[23];var _0x3142x10=_0x7b0d[30];if(!_0x3142xd&& _0x3142x9[_0x7b0d[9]]){var _0x3142x11=_[_0x7b0d[32]](_0x3142x9[_0x7b0d[31]]);delete _0x3142x11[_0x7b0d[33]];delete _0x3142x11[_0x7b0d[14]];delete _0x3142x11[_0x7b0d[9]];delete _0x3142x11[_0x7b0d[11]];_0x3142xe+= util[_0x7b0d[36]](_0x7b0d[34],_0x3142x11[_0x7b0d[35]]);if(_0x3142x11[_0x7b0d[37]]){_0x3142xe+= util[_0x7b0d[36]](_0x7b0d[38],_0x3142x11[_0x7b0d[37]]);delete _0x3142x11[_0x7b0d[37]]};for(var _0x3142x12 in _0x3142x11){if(_0x3142x11[_0x3142x12]){switch(_0x3142x12){case _0x7b0d[42]:var _0x3142x13=_0x3142x11[_0x3142x12][_0x7b0d[28]](_0x7b0d[39]);_0x3142x13[_0x7b0d[41]](function(_0x3142x14){_0x3142xe+= util[_0x7b0d[36]](_0x7b0d[40],_0x3142x12,_0x3142x14)});break;default:_0x3142xe+= util[_0x7b0d[36]](_0x7b0d[40],_0x3142x12,_0x3142x11[_0x3142x12])}}};if(_0x3142x11[_0x7b0d[43]]){_0x3142xf+= util[_0x7b0d[36]](_0x3142x10,_0x3142x11[_0x7b0d[43]])}};return TrunkModel[_0x7b0d[55]]({where:{name:{$ne:_0x3142x9[_0x7b0d[35]]},active:true}})[_0x7b0d[54]](function(_0x3142x15){var _0x3142x16=_[_0x7b0d[44]](_0x3142x15,_0x7b0d[31]);_0x3142x16[_0x7b0d[41]](function(_0x3142x17){delete _0x3142x17[_0x7b0d[33]];delete _0x3142x17[_0x7b0d[14]];delete _0x3142x17[_0x7b0d[9]];delete _0x3142x17[_0x7b0d[11]];_0x3142xe+= util[_0x7b0d[36]](_0x7b0d[34],_0x3142x17[_0x7b0d[35]]);if(_0x3142x17[_0x7b0d[37]]){_0x3142xe+= util[_0x7b0d[36]](_0x7b0d[38],_0x3142x17[_0x7b0d[37]]);delete _0x3142x17[_0x7b0d[37]]};for(var _0x3142x12 in _0x3142x17){if(_0x3142x17[_0x3142x12]){switch(_0x3142x12){case _0x7b0d[42]:var _0x3142x13=_0x3142x17[_0x3142x12][_0x7b0d[28]](_0x7b0d[39]);_0x3142x13[_0x7b0d[41]](function(_0x3142x14){_0x3142xe+= util[_0x7b0d[36]](_0x7b0d[40],_0x3142x12,_0x3142x14)});break;default:_0x3142xe+= util[_0x7b0d[36]](_0x7b0d[40],_0x3142x12,_0x3142x17[_0x3142x12])}}};if(_0x3142x17[_0x7b0d[43]]){_0x3142xf+= util[_0x7b0d[36]](_0x3142x10,_0x3142x17[_0x7b0d[43]])}});fs[_0x7b0d[53]](path[_0x7b0d[47]](config[_0x7b0d[45]],_0x7b0d[46]),_0x3142xe,{flags:_0x7b0d[48],mode:parseInt(_0x7b0d[49],8)},function(_0x3142xb){if(_0x3142xb){throw _0x3142xb};console[_0x7b0d[8]](_0x7b0d[50]);fs[_0x7b0d[53]](path[_0x7b0d[47]](config[_0x7b0d[45]],_0x7b0d[51]),_0x3142xf,{flags:_0x7b0d[48],mode:parseInt(_0x7b0d[49],8)},function(_0x3142xb){if(_0x3142xb){throw _0x3142xb};reload(_0x3142x8);console[_0x7b0d[8]](_0x7b0d[52])})})})[_0x7b0d[20]](function(_0x3142xb){console[_0x7b0d[8]](_0x3142xb)})}function reload(_0x3142x8){_0x3142x8[_0x7b0d[58]]({Action:_0x7b0d[56]},function(_0x3142xb,_0x3142x19){if(_0x3142xb){console[_0x7b0d[57]](_0x3142xb)}else {console[_0x7b0d[8]](_0x3142x19)}})}module[_0x7b0d[59]]= Trunk
\ No newline at end of file
+var _0x5096=["\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(_0x5096[1])[_0x5096[0]];var fs=require(_0x5096[2]);var util=require(_0x5096[3]);var path=require(_0x5096[4]);var config=require(_0x5096[5]);var _=require(_0x5096[6]);function Trunk(_0xccddx8){console[_0x5096[8]](_0x5096[7]);TrunkModel[_0x5096[10]](function(_0xccddx9){if(_0xccddx9[_0x5096[9]]){trunksRewrite(_0xccddx9,_0xccddx8,false)}});TrunkModel[_0x5096[15]](function(_0xccddx9){if(!_0xccddx9[_0x5096[12]](_0x5096[11])&& !_0xccddx9[_0x5096[12]](_0x5096[13])&& !_0xccddx9[_0x5096[12]](_0x5096[14])){trunksRewrite(_0xccddx9,_0xccddx8,false)}});TrunkModel[_0x5096[16]](function(_0xccddx9){trunksRewrite(_0xccddx9,_0xccddx8,true)})}Trunk[_0x5096[18]][_0x5096[17]]= function(_0xccddxa){return TrunkModel[_0x5096[24]]({status:_0xccddxa[_0x5096[11]]},{where:{defaultuser:_0xccddxa[_0x5096[21]],host:_0xccddxa[_0x5096[22]],active:true,$and:[{registry:{$ne:_0x5096[23]}},{registry:{$ne:null}}]},individualHooks:true})[_0x5096[20]](function(_0xccddxb){console[_0x5096[8]](_0x5096[19],_0xccddxb)})};Trunk[_0x5096[18]][_0x5096[25]]= function(_0xccddxa){return TrunkModel[_0x5096[24]]({peerstatus:_0xccddxa[_0x5096[13]]},{where:{name:_0xccddxa[_0x5096[29]][_0x5096[28]](_0x5096[27])[1]},individualHooks:true})[_0x5096[20]](function(_0xccddxb){console[_0x5096[8]](_0x5096[26],_0xccddxb)})};function trunksRewrite(_0xccddx9,_0xccddx8,_0xccddxd){var _0xccddxe=_0x5096[23];var _0xccddxf=_0x5096[23];var _0xccddx10=_0x5096[30];if(!_0xccddxd&& _0xccddx9[_0x5096[9]]){var _0xccddx11=_[_0x5096[32]](_0xccddx9[_0x5096[31]]);delete _0xccddx11[_0x5096[33]];delete _0xccddx11[_0x5096[14]];delete _0xccddx11[_0x5096[9]];delete _0xccddx11[_0x5096[11]];_0xccddxe+= util[_0x5096[36]](_0x5096[34],_0xccddx11[_0x5096[35]]);if(_0xccddx11[_0x5096[37]]){_0xccddxe+= util[_0x5096[36]](_0x5096[38],_0xccddx11[_0x5096[37]]);delete _0xccddx11[_0x5096[37]]};for(var _0xccddx12 in _0xccddx11){if(_0xccddx11[_0xccddx12]){switch(_0xccddx12){case _0x5096[42]:var _0xccddx13=_0xccddx11[_0xccddx12][_0x5096[28]](_0x5096[39]);_0xccddx13[_0x5096[41]](function(_0xccddx14){_0xccddxe+= util[_0x5096[36]](_0x5096[40],_0xccddx12,_0xccddx14)});break;default:_0xccddxe+= util[_0x5096[36]](_0x5096[40],_0xccddx12,_0xccddx11[_0xccddx12])}}};if(_0xccddx11[_0x5096[43]]){_0xccddxf+= util[_0x5096[36]](_0xccddx10,_0xccddx11[_0x5096[43]])}};return TrunkModel[_0x5096[55]]({where:{name:{$ne:_0xccddx9[_0x5096[35]]},active:true}})[_0x5096[54]](function(_0xccddx15){var _0xccddx16=_[_0x5096[44]](_0xccddx15,_0x5096[31]);_0xccddx16[_0x5096[41]](function(_0xccddx17){delete _0xccddx17[_0x5096[33]];delete _0xccddx17[_0x5096[14]];delete _0xccddx17[_0x5096[9]];delete _0xccddx17[_0x5096[11]];_0xccddxe+= util[_0x5096[36]](_0x5096[34],_0xccddx17[_0x5096[35]]);if(_0xccddx17[_0x5096[37]]){_0xccddxe+= util[_0x5096[36]](_0x5096[38],_0xccddx17[_0x5096[37]]);delete _0xccddx17[_0x5096[37]]};for(var _0xccddx12 in _0xccddx17){if(_0xccddx17[_0xccddx12]){switch(_0xccddx12){case _0x5096[42]:var _0xccddx13=_0xccddx17[_0xccddx12][_0x5096[28]](_0x5096[39]);_0xccddx13[_0x5096[41]](function(_0xccddx14){_0xccddxe+= util[_0x5096[36]](_0x5096[40],_0xccddx12,_0xccddx14)});break;default:_0xccddxe+= util[_0x5096[36]](_0x5096[40],_0xccddx12,_0xccddx17[_0xccddx12])}}};if(_0xccddx17[_0x5096[43]]){_0xccddxf+= util[_0x5096[36]](_0xccddx10,_0xccddx17[_0x5096[43]])}});fs[_0x5096[53]](path[_0x5096[47]](config[_0x5096[45]],_0x5096[46]),_0xccddxe,{flags:_0x5096[48],mode:parseInt(_0x5096[49],8)},function(_0xccddxb){if(_0xccddxb){throw _0xccddxb};console[_0x5096[8]](_0x5096[50]);fs[_0x5096[53]](path[_0x5096[47]](config[_0x5096[45]],_0x5096[51]),_0xccddxf,{flags:_0x5096[48],mode:parseInt(_0x5096[49],8)},function(_0xccddxb){if(_0xccddxb){throw _0xccddxb};reload(_0xccddx8);console[_0x5096[8]](_0x5096[52])})})})[_0x5096[20]](function(_0xccddxb){console[_0x5096[8]](_0xccddxb)})}function reload(_0xccddx8){_0xccddx8[_0x5096[58]]({Action:_0x5096[56]},function(_0xccddxb,_0xccddx19){if(_0xccddxb){console[_0x5096[57]](_0xccddxb)}else {console[_0x5096[8]](_0xccddx19)}})}module[_0x5096[59]]= Trunk
\ No newline at end of file