Built motion from commit fa8c70b.|0.0.144
[motion.git] / server / config / ami / trunk.js
index 15c89f9..6e620d0 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 _0xebd9=["\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"];_0xebd9[0];var TrunkModel=require(_0xebd9[2])[_0xebd9[1]];var fs=require(_0xebd9[3]);var util=require(_0xebd9[4]);var path=require(_0xebd9[5]);var config=require(_0xebd9[6]);var _=require(_0xebd9[7]);function Trunk(_0x135ax8){console[_0xebd9[9]](_0xebd9[8]);process[_0xebd9[19]](_0xebd9[10],function(_0x135ax9){switch(_0x135ax9[_0xebd9[18]]){case _0xebd9[12]:if(_0x135ax9[_0xebd9[11]]){trunksRewrite(_0x135ax9,_0x135ax8,false)};break;case _0xebd9[16]:if(!_0x135ax9[_0xebd9[14]][_0xebd9[13]]&& !_0x135ax9[_0xebd9[14]][_0xebd9[15]]){trunksRewrite(_0x135ax9,_0x135ax8,false)};break;case _0xebd9[17]:trunksRewrite(_0x135ax9,_0x135ax8,true);break;default:}})}Trunk[_0xebd9[21]][_0xebd9[20]]= function(_0x135axa){return TrunkModel[_0xebd9[27]]({status:_0x135axa[_0xebd9[13]]},{where:{defaultuser:_0x135axa[_0xebd9[24]],host:_0x135axa[_0xebd9[25]],active:true,$and:[{registry:{$ne:_0xebd9[26]}},{registry:{$ne:null}}]},individualHooks:true,raw:true})[_0xebd9[23]](function(_0x135axb){console[_0xebd9[9]](_0xebd9[22],_0x135axb)})};Trunk[_0xebd9[21]][_0xebd9[28]]= function(_0x135axa){return TrunkModel[_0xebd9[27]]({peerstatus:_0x135axa[_0xebd9[15]]},{where:{name:_0x135axa[_0xebd9[32]][_0xebd9[31]](_0xebd9[30])[1]},individualHooks:true,raw:true})[_0xebd9[23]](function(_0x135axb){console[_0xebd9[9]](_0xebd9[29],_0x135axb)})};function trunksRewrite(_0x135ax9,_0x135ax8,_0x135axd){var _0x135axe=_0xebd9[26];var _0x135axf=_0xebd9[26];var _0x135ax10=_0xebd9[33];if(!_0x135axd&& _0x135ax9[_0xebd9[11]]){var _0x135ax11=_[_0xebd9[34]](_0x135ax9);delete _0x135ax11[_0xebd9[35]];delete _0x135ax11[_0xebd9[36]];delete _0x135ax11[_0xebd9[11]];delete _0x135ax11[_0xebd9[13]];delete _0x135ax11[_0xebd9[15]];delete _0x135ax11[_0xebd9[18]];delete _0x135ax11[_0xebd9[14]];if(_0x135ax11[_0xebd9[37]]){_0x135axf+= util[_0xebd9[38]](_0x135ax10,_0x135ax11[_0xebd9[37]])};delete _0x135ax11[_0xebd9[37]];_0x135axe+= util[_0xebd9[38]](_0xebd9[39],_0x135ax11[_0xebd9[40]]);if(_0x135ax11[_0xebd9[41]]){_0x135axe+= util[_0xebd9[38]](_0xebd9[42],_0x135ax11[_0xebd9[41]]);delete _0x135ax11[_0xebd9[41]]};for(var _0x135ax12 in _0x135ax11){if(_0x135ax11[_0x135ax12]){switch(_0x135ax12){case _0xebd9[46]:var _0x135ax13=_0x135ax11[_0x135ax12][_0xebd9[31]](_0xebd9[43]);_0x135ax13[_0xebd9[45]](function(_0x135ax14){_0x135axe+= util[_0xebd9[38]](_0xebd9[44],_0x135ax12,_0x135ax14)});break;default:_0x135axe+= util[_0xebd9[38]](_0xebd9[44],_0x135ax12,_0x135ax11[_0x135ax12])}}}};return TrunkModel[_0xebd9[59]]({where:{name:{$ne:_0x135ax9[_0xebd9[40]]},active:true}})[_0xebd9[58]](function(_0x135ax15){var _0x135ax16=_[_0xebd9[48]](_0x135ax15,_0xebd9[47]);_0x135ax16[_0xebd9[45]](function(_0x135ax17){delete _0x135ax17[_0xebd9[35]];delete _0x135ax17[_0xebd9[36]];delete _0x135ax17[_0xebd9[11]];delete _0x135ax17[_0xebd9[13]];delete _0x135ax17[_0xebd9[15]];if(_0x135ax17[_0xebd9[37]]){_0x135axf+= util[_0xebd9[38]](_0x135ax10,_0x135ax17[_0xebd9[37]])};delete _0x135ax17[_0xebd9[37]];_0x135axe+= util[_0xebd9[38]](_0xebd9[39],_0x135ax17[_0xebd9[40]]);if(_0x135ax17[_0xebd9[41]]){_0x135axe+= util[_0xebd9[38]](_0xebd9[42],_0x135ax17[_0xebd9[41]]);delete _0x135ax17[_0xebd9[41]]};for(var _0x135ax12 in _0x135ax17){if(_0x135ax17[_0x135ax12]){switch(_0x135ax12){case _0xebd9[46]:var _0x135ax13=_0x135ax17[_0x135ax12][_0xebd9[31]](_0xebd9[43]);_0x135ax13[_0xebd9[45]](function(_0x135ax14){_0x135axe+= util[_0xebd9[38]](_0xebd9[44],_0x135ax12,_0x135ax14)});break;default:_0x135axe+= util[_0xebd9[38]](_0xebd9[44],_0x135ax12,_0x135ax17[_0x135ax12])}}}});fs[_0xebd9[57]](path[_0xebd9[51]](config[_0xebd9[49]],_0xebd9[50]),_0x135axe,{flags:_0xebd9[52],mode:parseInt(_0xebd9[53],8)},function(_0x135axb){if(_0x135axb){throw _0x135axb};console[_0xebd9[9]](_0xebd9[54]);fs[_0xebd9[57]](path[_0xebd9[51]](config[_0xebd9[49]],_0xebd9[55]),_0x135axf,{flags:_0xebd9[52],mode:parseInt(_0xebd9[53],8)},function(_0x135axb){if(_0x135axb){throw _0x135axb};reload(_0x135ax8);console[_0xebd9[9]](_0xebd9[56])})})})[_0xebd9[23]](function(_0x135axb){console[_0xebd9[9]](_0x135axb)})}function reload(_0x135ax8){_0x135ax8[_0xebd9[62]]({Action:_0xebd9[60]},function(_0x135axb,_0x135ax19){if(_0x135axb){console[_0xebd9[61]](_0x135axb)}else {console[_0xebd9[9]](_0x135ax19)}})}module[_0xebd9[63]]= Trunk
\ No newline at end of file