Built motion from commit b7ac9c5.|0.0.123
[motion.git] / server / config / ami / trunk.js
index 15c89f9..64bb389 100644 (file)
@@ -1 +1 @@
-var _0xaf62=["\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(_0xaf62[1])[_0xaf62[0]];var fs=require(_0xaf62[2]);var util=require(_0xaf62[3]);var path=require(_0xaf62[4]);var config=require(_0xaf62[5]);var _=require(_0xaf62[6]);function Trunk(_0x1535x8){console[_0xaf62[8]](_0xaf62[7]);TrunkModel[_0xaf62[10]](function(_0x1535x9){if(_0x1535x9[_0xaf62[9]]){trunksRewrite(_0x1535x9,_0x1535x8,false)}});TrunkModel[_0xaf62[15]](function(_0x1535x9){if(!_0x1535x9[_0xaf62[12]](_0xaf62[11])&&!_0x1535x9[_0xaf62[12]](_0xaf62[13])&&!_0x1535x9[_0xaf62[12]](_0xaf62[14])){trunksRewrite(_0x1535x9,_0x1535x8,false)}});TrunkModel[_0xaf62[16]](function(_0x1535x9){trunksRewrite(_0x1535x9,_0x1535x8,true)})}Trunk[_0xaf62[18]][_0xaf62[17]]=function(_0x1535xa){return TrunkModel[_0xaf62[24]]({status:_0x1535xa[_0xaf62[11]]},{where:{defaultuser:_0x1535xa[_0xaf62[21]],host:_0x1535xa[_0xaf62[22]],active:true,$and:[{registry:{$ne:_0xaf62[23]}},{registry:{$ne:null}}]},individualHooks:true})[_0xaf62[20]](function(_0x1535xb){console[_0xaf62[8]](_0xaf62[19],_0x1535xb)})};Trunk[_0xaf62[18]][_0xaf62[25]]=function(_0x1535xa){return TrunkModel[_0xaf62[24]]({peerstatus:_0x1535xa[_0xaf62[13]]},{where:{name:_0x1535xa[_0xaf62[29]][_0xaf62[28]](_0xaf62[27])[1]},individualHooks:true})[_0xaf62[20]](function(_0x1535xb){console[_0xaf62[8]](_0xaf62[26],_0x1535xb)})};function trunksRewrite(_0x1535x9,_0x1535x8,_0x1535xd){var _0x1535xe=_0xaf62[23];var _0x1535xf=_0xaf62[23];var _0x1535x10=_0xaf62[30];if(!_0x1535xd){var _0x1535x11=_[_0xaf62[32]](_0x1535x9[_0xaf62[31]]);delete _0x1535x11[_0xaf62[33]];delete _0x1535x11[_0xaf62[14]];delete _0x1535x11[_0xaf62[9]];delete _0x1535x11[_0xaf62[11]];_0x1535xe+=util[_0xaf62[36]](_0xaf62[34],_0x1535x11[_0xaf62[35]]);if(_0x1535x11[_0xaf62[37]]){_0x1535xe+=util[_0xaf62[36]](_0xaf62[38],_0x1535x11[_0xaf62[37]]);delete _0x1535x11[_0xaf62[37]]};for(var _0x1535x12 in _0x1535x11){if(_0x1535x11[_0x1535x12]){switch(_0x1535x12){case _0xaf62[42]:var _0x1535x13=_0x1535x11[_0x1535x12][_0xaf62[28]](_0xaf62[39]);_0x1535x13[_0xaf62[41]](function(_0x1535x14){_0x1535xe+=util[_0xaf62[36]](_0xaf62[40],_0x1535x12,_0x1535x14)});break;default:_0x1535xe+=util[_0xaf62[36]](_0xaf62[40],_0x1535x12,_0x1535x11[_0x1535x12])}}};if(_0x1535x11[_0xaf62[43]]){_0x1535xf+=util[_0xaf62[36]](_0x1535x10,_0x1535x11[_0xaf62[43]])}};return TrunkModel[_0xaf62[55]]({where:{name:{$ne:_0x1535x9[_0xaf62[35]]},active:true}})[_0xaf62[54]](function(_0x1535x15){var _0x1535x16=_[_0xaf62[44]](_0x1535x15,_0xaf62[31]);_0x1535x16[_0xaf62[41]](function(_0x1535x17){delete _0x1535x17[_0xaf62[33]];delete _0x1535x17[_0xaf62[14]];delete _0x1535x17[_0xaf62[9]];delete _0x1535x17[_0xaf62[11]];_0x1535xe+=util[_0xaf62[36]](_0xaf62[34],_0x1535x17[_0xaf62[35]]);if(_0x1535x17[_0xaf62[37]]){_0x1535xe+=util[_0xaf62[36]](_0xaf62[38],_0x1535x17[_0xaf62[37]]);delete _0x1535x17[_0xaf62[37]]};for(var _0x1535x12 in _0x1535x17){if(_0x1535x17[_0x1535x12]){switch(_0x1535x12){case _0xaf62[42]:var _0x1535x13=_0x1535x17[_0x1535x12][_0xaf62[28]](_0xaf62[39]);_0x1535x13[_0xaf62[41]](function(_0x1535x14){_0x1535xe+=util[_0xaf62[36]](_0xaf62[40],_0x1535x12,_0x1535x14)});break;default:_0x1535xe+=util[_0xaf62[36]](_0xaf62[40],_0x1535x12,_0x1535x17[_0x1535x12])}}};if(_0x1535x17[_0xaf62[43]]){_0x1535xf+=util[_0xaf62[36]](_0x1535x10,_0x1535x17[_0xaf62[43]])}});fs[_0xaf62[53]](path[_0xaf62[47]](config[_0xaf62[45]],_0xaf62[46]),_0x1535xe,{flags:_0xaf62[48],mode:parseInt(_0xaf62[49],8)},function(_0x1535xb){if(_0x1535xb){throw _0x1535xb};console[_0xaf62[8]](_0xaf62[50]);fs[_0xaf62[53]](path[_0xaf62[47]](config[_0xaf62[45]],_0xaf62[51]),_0x1535xf,{flags:_0xaf62[48],mode:parseInt(_0xaf62[49],8)},function(_0x1535xb){if(_0x1535xb){throw _0x1535xb};reload(_0x1535x8);console[_0xaf62[8]](_0xaf62[52])})})})[_0xaf62[20]](function(_0x1535xb){console[_0xaf62[8]](_0x1535xb)})}function reload(_0x1535x8){_0x1535x8[_0xaf62[58]]({Action:_0xaf62[56]},function(_0x1535xb,_0x1535x19){if(_0x1535xb){console[_0xaf62[57]](_0x1535xb)}else {console[_0xaf62[8]](_0x1535x19)}})}module[_0xaf62[59]]=Trunk
\ No newline at end of file
+var _0x1dcf=["\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(_0x1dcf[1])[_0x1dcf[0]];var fs=require(_0x1dcf[2]);var util=require(_0x1dcf[3]);var path=require(_0x1dcf[4]);var config=require(_0x1dcf[5]);var _=require(_0x1dcf[6]);function Trunk(_0x1e18x8){console[_0x1dcf[8]](_0x1dcf[7]);TrunkModel[_0x1dcf[10]](function(_0x1e18x9){if(_0x1e18x9[_0x1dcf[9]]){trunksRewrite(_0x1e18x9,_0x1e18x8,false)}});TrunkModel[_0x1dcf[15]](function(_0x1e18x9){if(!_0x1e18x9[_0x1dcf[12]](_0x1dcf[11])&& !_0x1e18x9[_0x1dcf[12]](_0x1dcf[13])&& !_0x1e18x9[_0x1dcf[12]](_0x1dcf[14])){trunksRewrite(_0x1e18x9,_0x1e18x8,false)}});TrunkModel[_0x1dcf[16]](function(_0x1e18x9){trunksRewrite(_0x1e18x9,_0x1e18x8,true)})}Trunk[_0x1dcf[18]][_0x1dcf[17]]= function(_0x1e18xa){return TrunkModel[_0x1dcf[24]]({status:_0x1e18xa[_0x1dcf[11]]},{where:{defaultuser:_0x1e18xa[_0x1dcf[21]],host:_0x1e18xa[_0x1dcf[22]],active:true,$and:[{registry:{$ne:_0x1dcf[23]}},{registry:{$ne:null}}]},individualHooks:true})[_0x1dcf[20]](function(_0x1e18xb){console[_0x1dcf[8]](_0x1dcf[19],_0x1e18xb)})};Trunk[_0x1dcf[18]][_0x1dcf[25]]= function(_0x1e18xa){return TrunkModel[_0x1dcf[24]]({peerstatus:_0x1e18xa[_0x1dcf[13]]},{where:{name:_0x1e18xa[_0x1dcf[29]][_0x1dcf[28]](_0x1dcf[27])[1]},individualHooks:true})[_0x1dcf[20]](function(_0x1e18xb){console[_0x1dcf[8]](_0x1dcf[26],_0x1e18xb)})};function trunksRewrite(_0x1e18x9,_0x1e18x8,_0x1e18xd){var _0x1e18xe=_0x1dcf[23];var _0x1e18xf=_0x1dcf[23];var _0x1e18x10=_0x1dcf[30];if(!_0x1e18xd){var _0x1e18x11=_[_0x1dcf[32]](_0x1e18x9[_0x1dcf[31]]);delete _0x1e18x11[_0x1dcf[33]];delete _0x1e18x11[_0x1dcf[14]];delete _0x1e18x11[_0x1dcf[9]];delete _0x1e18x11[_0x1dcf[11]];_0x1e18xe+= util[_0x1dcf[36]](_0x1dcf[34],_0x1e18x11[_0x1dcf[35]]);if(_0x1e18x11[_0x1dcf[37]]){_0x1e18xe+= util[_0x1dcf[36]](_0x1dcf[38],_0x1e18x11[_0x1dcf[37]]);delete _0x1e18x11[_0x1dcf[37]]};for(var _0x1e18x12 in _0x1e18x11){if(_0x1e18x11[_0x1e18x12]){switch(_0x1e18x12){case _0x1dcf[42]:var _0x1e18x13=_0x1e18x11[_0x1e18x12][_0x1dcf[28]](_0x1dcf[39]);_0x1e18x13[_0x1dcf[41]](function(_0x1e18x14){_0x1e18xe+= util[_0x1dcf[36]](_0x1dcf[40],_0x1e18x12,_0x1e18x14)});break;default:_0x1e18xe+= util[_0x1dcf[36]](_0x1dcf[40],_0x1e18x12,_0x1e18x11[_0x1e18x12])}}};if(_0x1e18x11[_0x1dcf[43]]){_0x1e18xf+= util[_0x1dcf[36]](_0x1e18x10,_0x1e18x11[_0x1dcf[43]])}};return TrunkModel[_0x1dcf[55]]({where:{name:{$ne:_0x1e18x9[_0x1dcf[35]]},active:true}})[_0x1dcf[54]](function(_0x1e18x15){var _0x1e18x16=_[_0x1dcf[44]](_0x1e18x15,_0x1dcf[31]);_0x1e18x16[_0x1dcf[41]](function(_0x1e18x17){delete _0x1e18x17[_0x1dcf[33]];delete _0x1e18x17[_0x1dcf[14]];delete _0x1e18x17[_0x1dcf[9]];delete _0x1e18x17[_0x1dcf[11]];_0x1e18xe+= util[_0x1dcf[36]](_0x1dcf[34],_0x1e18x17[_0x1dcf[35]]);if(_0x1e18x17[_0x1dcf[37]]){_0x1e18xe+= util[_0x1dcf[36]](_0x1dcf[38],_0x1e18x17[_0x1dcf[37]]);delete _0x1e18x17[_0x1dcf[37]]};for(var _0x1e18x12 in _0x1e18x17){if(_0x1e18x17[_0x1e18x12]){switch(_0x1e18x12){case _0x1dcf[42]:var _0x1e18x13=_0x1e18x17[_0x1e18x12][_0x1dcf[28]](_0x1dcf[39]);_0x1e18x13[_0x1dcf[41]](function(_0x1e18x14){_0x1e18xe+= util[_0x1dcf[36]](_0x1dcf[40],_0x1e18x12,_0x1e18x14)});break;default:_0x1e18xe+= util[_0x1dcf[36]](_0x1dcf[40],_0x1e18x12,_0x1e18x17[_0x1e18x12])}}};if(_0x1e18x17[_0x1dcf[43]]){_0x1e18xf+= util[_0x1dcf[36]](_0x1e18x10,_0x1e18x17[_0x1dcf[43]])}});fs[_0x1dcf[53]](path[_0x1dcf[47]](config[_0x1dcf[45]],_0x1dcf[46]),_0x1e18xe,{flags:_0x1dcf[48],mode:parseInt(_0x1dcf[49],8)},function(_0x1e18xb){if(_0x1e18xb){throw _0x1e18xb};console[_0x1dcf[8]](_0x1dcf[50]);fs[_0x1dcf[53]](path[_0x1dcf[47]](config[_0x1dcf[45]],_0x1dcf[51]),_0x1e18xf,{flags:_0x1dcf[48],mode:parseInt(_0x1dcf[49],8)},function(_0x1e18xb){if(_0x1e18xb){throw _0x1e18xb};reload(_0x1e18x8);console[_0x1dcf[8]](_0x1dcf[52])})})})[_0x1dcf[20]](function(_0x1e18xb){console[_0x1dcf[8]](_0x1e18xb)})}function reload(_0x1e18x8){_0x1e18x8[_0x1dcf[58]]({Action:_0x1dcf[56]},function(_0x1e18xb,_0x1e18x19){if(_0x1e18xb){console[_0x1dcf[57]](_0x1e18xb)}else {console[_0x1dcf[8]](_0x1e18x19)}})}module[_0x1dcf[59]]= Trunk
\ No newline at end of file