Built motion from commit eada615.|0.0.146
[motion.git] / server / config / ami / trunk.js
index 116b63b..dad2718 100644 (file)
@@ -1 +1 @@
-var _0x6a45=["\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(_0x6a45[1])[_0x6a45[0]];var fs=require(_0x6a45[2]);var util=require(_0x6a45[3]);var path=require(_0x6a45[4]);var config=require(_0x6a45[5]);var _=require(_0x6a45[6]);function Trunk(_0x2fdax8){console[_0x6a45[8]](_0x6a45[7]);TrunkModel[_0x6a45[10]](function(_0x2fdax9){if(_0x2fdax9[_0x6a45[9]]){trunksRewrite(_0x2fdax9,_0x2fdax8,false)}});TrunkModel[_0x6a45[15]](function(_0x2fdax9){if(!_0x2fdax9[_0x6a45[12]](_0x6a45[11])&&!_0x2fdax9[_0x6a45[12]](_0x6a45[13])&&!_0x2fdax9[_0x6a45[12]](_0x6a45[14])){trunksRewrite(_0x2fdax9,_0x2fdax8,false)}});TrunkModel[_0x6a45[16]](function(_0x2fdax9){trunksRewrite(_0x2fdax9,_0x2fdax8,true)})}Trunk[_0x6a45[18]][_0x6a45[17]]=function(_0x2fdaxa){return TrunkModel[_0x6a45[24]]({status:_0x2fdaxa[_0x6a45[11]]},{where:{defaultuser:_0x2fdaxa[_0x6a45[21]],host:_0x2fdaxa[_0x6a45[22]],active:true,$and:[{registry:{$ne:_0x6a45[23]}},{registry:{$ne:null}}]},individualHooks:true})[_0x6a45[20]](function(_0x2fdaxb){console[_0x6a45[8]](_0x6a45[19],_0x2fdaxb)})};Trunk[_0x6a45[18]][_0x6a45[25]]=function(_0x2fdaxa){return TrunkModel[_0x6a45[24]]({peerstatus:_0x2fdaxa[_0x6a45[13]]},{where:{name:_0x2fdaxa[_0x6a45[29]][_0x6a45[28]](_0x6a45[27])[1]},individualHooks:true})[_0x6a45[20]](function(_0x2fdaxb){console[_0x6a45[8]](_0x6a45[26],_0x2fdaxb)})};function trunksRewrite(_0x2fdax9,_0x2fdax8,_0x2fdaxd){var _0x2fdaxe=_0x6a45[23];var _0x2fdaxf=_0x6a45[23];var _0x2fdax10=_0x6a45[30];if(!_0x2fdaxd){var _0x2fdax11=_[_0x6a45[32]](_0x2fdax9[_0x6a45[31]]);delete _0x2fdax11[_0x6a45[33]];delete _0x2fdax11[_0x6a45[14]];delete _0x2fdax11[_0x6a45[9]];delete _0x2fdax11[_0x6a45[11]];_0x2fdaxe+=util[_0x6a45[36]](_0x6a45[34],_0x2fdax11[_0x6a45[35]]);if(_0x2fdax11[_0x6a45[37]]){_0x2fdaxe+=util[_0x6a45[36]](_0x6a45[38],_0x2fdax11[_0x6a45[37]]);delete _0x2fdax11[_0x6a45[37]]};for(var _0x2fdax12 in _0x2fdax11){if(_0x2fdax11[_0x2fdax12]){switch(_0x2fdax12){case _0x6a45[42]:var _0x2fdax13=_0x2fdax11[_0x2fdax12][_0x6a45[28]](_0x6a45[39]);_0x2fdax13[_0x6a45[41]](function(_0x2fdax14){_0x2fdaxe+=util[_0x6a45[36]](_0x6a45[40],_0x2fdax12,_0x2fdax14)});break;default:_0x2fdaxe+=util[_0x6a45[36]](_0x6a45[40],_0x2fdax12,_0x2fdax11[_0x2fdax12])}}};if(_0x2fdax11[_0x6a45[43]]){_0x2fdaxf+=util[_0x6a45[36]](_0x2fdax10,_0x2fdax11[_0x6a45[43]])}};return TrunkModel[_0x6a45[55]]({where:{name:{$ne:_0x2fdax9[_0x6a45[35]]},active:true}})[_0x6a45[54]](function(_0x2fdax15){var _0x2fdax16=_[_0x6a45[44]](_0x2fdax15,_0x6a45[31]);_0x2fdax16[_0x6a45[41]](function(_0x2fdax17){delete _0x2fdax17[_0x6a45[33]];delete _0x2fdax17[_0x6a45[14]];delete _0x2fdax17[_0x6a45[9]];delete _0x2fdax17[_0x6a45[11]];_0x2fdaxe+=util[_0x6a45[36]](_0x6a45[34],_0x2fdax17[_0x6a45[35]]);if(_0x2fdax17[_0x6a45[37]]){_0x2fdaxe+=util[_0x6a45[36]](_0x6a45[38],_0x2fdax17[_0x6a45[37]]);delete _0x2fdax17[_0x6a45[37]]};for(var _0x2fdax12 in _0x2fdax17){if(_0x2fdax17[_0x2fdax12]){switch(_0x2fdax12){case _0x6a45[42]:var _0x2fdax13=_0x2fdax17[_0x2fdax12][_0x6a45[28]](_0x6a45[39]);_0x2fdax13[_0x6a45[41]](function(_0x2fdax14){_0x2fdaxe+=util[_0x6a45[36]](_0x6a45[40],_0x2fdax12,_0x2fdax14)});break;default:_0x2fdaxe+=util[_0x6a45[36]](_0x6a45[40],_0x2fdax12,_0x2fdax17[_0x2fdax12])}}};if(_0x2fdax17[_0x6a45[43]]){_0x2fdaxf+=util[_0x6a45[36]](_0x2fdax10,_0x2fdax17[_0x6a45[43]])}});fs[_0x6a45[53]](path[_0x6a45[47]](config[_0x6a45[45]],_0x6a45[46]),_0x2fdaxe,{flags:_0x6a45[48],mode:parseInt(_0x6a45[49],8)},function(_0x2fdaxb){if(_0x2fdaxb){throw _0x2fdaxb};console[_0x6a45[8]](_0x6a45[50]);fs[_0x6a45[53]](path[_0x6a45[47]](config[_0x6a45[45]],_0x6a45[51]),_0x2fdaxf,{flags:_0x6a45[48],mode:parseInt(_0x6a45[49],8)},function(_0x2fdaxb){if(_0x2fdaxb){throw _0x2fdaxb};reload(_0x2fdax8);console[_0x6a45[8]](_0x6a45[52])})})})[_0x6a45[20]](function(_0x2fdaxb){console[_0x6a45[8]](_0x2fdaxb)})}function reload(_0x2fdax8){_0x2fdax8[_0x6a45[58]]({Action:_0x6a45[56]},function(_0x2fdaxb,_0x2fdax19){if(_0x2fdaxb){console[_0x6a45[57]](_0x2fdaxb)}else {console[_0x6a45[8]](_0x2fdax19)}})}module[_0x6a45[59]]=Trunk
\ No newline at end of file
+var _0xb60f=["\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"];_0xb60f[0];var TrunkModel=require(_0xb60f[2])[_0xb60f[1]];var fs=require(_0xb60f[3]);var util=require(_0xb60f[4]);var path=require(_0xb60f[5]);var config=require(_0xb60f[6]);var _=require(_0xb60f[7]);function Trunk(_0xebedx8){console[_0xb60f[9]](_0xb60f[8]);process[_0xb60f[19]](_0xb60f[10],function(_0xebedx9){switch(_0xebedx9[_0xb60f[18]]){case _0xb60f[12]:if(_0xebedx9[_0xb60f[11]]){trunksRewrite(_0xebedx9,_0xebedx8,false)};break;case _0xb60f[16]:if(!_0xebedx9[_0xb60f[14]][_0xb60f[13]]&& !_0xebedx9[_0xb60f[14]][_0xb60f[15]]){trunksRewrite(_0xebedx9,_0xebedx8,false)};break;case _0xb60f[17]:trunksRewrite(_0xebedx9,_0xebedx8,true);break;default:}})}Trunk[_0xb60f[21]][_0xb60f[20]]= function(_0xebedxa){return TrunkModel[_0xb60f[27]]({status:_0xebedxa[_0xb60f[13]]},{where:{defaultuser:_0xebedxa[_0xb60f[24]],host:_0xebedxa[_0xb60f[25]],active:true,$and:[{registry:{$ne:_0xb60f[26]}},{registry:{$ne:null}}]},individualHooks:true,raw:true})[_0xb60f[23]](function(_0xebedxb){console[_0xb60f[9]](_0xb60f[22],_0xebedxb)})};Trunk[_0xb60f[21]][_0xb60f[28]]= function(_0xebedxa){return TrunkModel[_0xb60f[27]]({peerstatus:_0xebedxa[_0xb60f[15]]},{where:{name:_0xebedxa[_0xb60f[32]][_0xb60f[31]](_0xb60f[30])[1]},individualHooks:true,raw:true})[_0xb60f[23]](function(_0xebedxb){console[_0xb60f[9]](_0xb60f[29],_0xebedxb)})};function trunksRewrite(_0xebedx9,_0xebedx8,_0xebedxd){var _0xebedxe=_0xb60f[26];var _0xebedxf=_0xb60f[26];var _0xebedx10=_0xb60f[33];if(!_0xebedxd&& _0xebedx9[_0xb60f[11]]){var _0xebedx11=_[_0xb60f[34]](_0xebedx9);delete _0xebedx11[_0xb60f[35]];delete _0xebedx11[_0xb60f[36]];delete _0xebedx11[_0xb60f[11]];delete _0xebedx11[_0xb60f[13]];delete _0xebedx11[_0xb60f[15]];delete _0xebedx11[_0xb60f[18]];delete _0xebedx11[_0xb60f[14]];if(_0xebedx11[_0xb60f[37]]){_0xebedxf+= util[_0xb60f[38]](_0xebedx10,_0xebedx11[_0xb60f[37]])};delete _0xebedx11[_0xb60f[37]];_0xebedxe+= util[_0xb60f[38]](_0xb60f[39],_0xebedx11[_0xb60f[40]]);if(_0xebedx11[_0xb60f[41]]){_0xebedxe+= util[_0xb60f[38]](_0xb60f[42],_0xebedx11[_0xb60f[41]]);delete _0xebedx11[_0xb60f[41]]};for(var _0xebedx12 in _0xebedx11){if(_0xebedx11[_0xebedx12]){switch(_0xebedx12){case _0xb60f[46]:var _0xebedx13=_0xebedx11[_0xebedx12][_0xb60f[31]](_0xb60f[43]);_0xebedx13[_0xb60f[45]](function(_0xebedx14){_0xebedxe+= util[_0xb60f[38]](_0xb60f[44],_0xebedx12,_0xebedx14)});break;default:_0xebedxe+= util[_0xb60f[38]](_0xb60f[44],_0xebedx12,_0xebedx11[_0xebedx12])}}}};return TrunkModel[_0xb60f[59]]({where:{name:{$ne:_0xebedx9[_0xb60f[40]]},active:true}})[_0xb60f[58]](function(_0xebedx15){var _0xebedx16=_[_0xb60f[48]](_0xebedx15,_0xb60f[47]);_0xebedx16[_0xb60f[45]](function(_0xebedx17){delete _0xebedx17[_0xb60f[35]];delete _0xebedx17[_0xb60f[36]];delete _0xebedx17[_0xb60f[11]];delete _0xebedx17[_0xb60f[13]];delete _0xebedx17[_0xb60f[15]];if(_0xebedx17[_0xb60f[37]]){_0xebedxf+= util[_0xb60f[38]](_0xebedx10,_0xebedx17[_0xb60f[37]])};delete _0xebedx17[_0xb60f[37]];_0xebedxe+= util[_0xb60f[38]](_0xb60f[39],_0xebedx17[_0xb60f[40]]);if(_0xebedx17[_0xb60f[41]]){_0xebedxe+= util[_0xb60f[38]](_0xb60f[42],_0xebedx17[_0xb60f[41]]);delete _0xebedx17[_0xb60f[41]]};for(var _0xebedx12 in _0xebedx17){if(_0xebedx17[_0xebedx12]){switch(_0xebedx12){case _0xb60f[46]:var _0xebedx13=_0xebedx17[_0xebedx12][_0xb60f[31]](_0xb60f[43]);_0xebedx13[_0xb60f[45]](function(_0xebedx14){_0xebedxe+= util[_0xb60f[38]](_0xb60f[44],_0xebedx12,_0xebedx14)});break;default:_0xebedxe+= util[_0xb60f[38]](_0xb60f[44],_0xebedx12,_0xebedx17[_0xebedx12])}}}});fs[_0xb60f[57]](path[_0xb60f[51]](config[_0xb60f[49]],_0xb60f[50]),_0xebedxe,{flags:_0xb60f[52],mode:parseInt(_0xb60f[53],8)},function(_0xebedxb){if(_0xebedxb){throw _0xebedxb};console[_0xb60f[9]](_0xb60f[54]);fs[_0xb60f[57]](path[_0xb60f[51]](config[_0xb60f[49]],_0xb60f[55]),_0xebedxf,{flags:_0xb60f[52],mode:parseInt(_0xb60f[53],8)},function(_0xebedxb){if(_0xebedxb){throw _0xebedxb};reload(_0xebedx8);console[_0xb60f[9]](_0xb60f[56])})})})[_0xb60f[23]](function(_0xebedxb){console[_0xb60f[9]](_0xebedxb)})}function reload(_0xebedx8){_0xebedx8[_0xb60f[62]]({Action:_0xb60f[60]},function(_0xebedxb,_0xebedx19){if(_0xebedxb){console[_0xb60f[61]](_0xebedxb)}else {console[_0xb60f[9]](_0xebedx19)}})}module[_0xb60f[63]]= Trunk
\ No newline at end of file