X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fconfig%2Fami%2Fdb%2Ftrunk.js;h=9d8852494c3902e202829844d1ef3f01d9bf6b14;hb=03ef13f909598f69ff7dd3eb1a7ef74807273b98;hp=c195cfb7c0f51814d723ef2cc37dc8ea5ef16abc;hpb=070e791ef46356c73c547280361ca0b89d270980;p=motion.git diff --git a/server/config/ami/db/trunk.js b/server/config/ami/db/trunk.js index c195cfb..9d88524 100644 --- a/server/config/ami/db/trunk.js +++ b/server/config/ami/db/trunk.js @@ -1 +1 @@ -var _0xe2bd=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x54\x72\x75\x6E\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x65\x78\x70\x6F\x72\x74\x73","\x64\x65\x66\x61\x75\x6C\x74\x75\x73\x65\x72","\x73\x74\x61\x74\x75\x73","\x72\x65\x73\x6F\x6C\x76\x65","\x54\x72\x75\x6E\x6B\x20\x2D\x20\x72\x65\x67\x69\x73\x74\x72\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x6C\x6F\x67","\x74\x68\x65\x6E","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x64\x6F\x6D\x61\x69\x6E","","\x75\x70\x64\x61\x74\x65","\x54\x72\x75\x6E\x6B\x20\x2D\x20\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x2F","\x73\x70\x6C\x69\x74","\x70\x65\x65\x72"];_0xe2bd[0];var BPromise=require(_0xe2bd[1]);var Trunk=require(_0xe2bd[3])[_0xe2bd[2]];var trunkStates={};module[_0xe2bd[4]]= function(){return {registry:function(_0xd9fcx4){return function(_0xd9fcx5){if(trunkStates[_0xd9fcx4[_0xe2bd[5]]]&& trunkStates[_0xd9fcx4[_0xe2bd[5]]]=== _0xd9fcx4[_0xe2bd[6]]){return BPromise[_0xe2bd[7]]()}else {trunkStates[_0xd9fcx4[_0xe2bd[5]]]= _0xd9fcx4[_0xe2bd[6]]};return Trunk[_0xe2bd[16]]({status:_0xd9fcx4[_0xe2bd[6]]},{where:{defaultuser:_0xd9fcx4[_0xe2bd[13]],host:_0xd9fcx4[_0xe2bd[14]],active:true,$and:[{registry:{$ne:_0xe2bd[15]}},{registry:{$ne:null}}]},individualHooks:true,raw:true})[_0xe2bd[12]](function(){console[_0xe2bd[11]](_0xe2bd[8],_0xd9fcx4[_0xe2bd[6]])})[_0xe2bd[10]](function(_0xd9fcx6){console[_0xe2bd[9]](_0xe2bd[8],_0xd9fcx6)})}},peerstatus:function(_0xd9fcx4){return function(_0xd9fcx5){return Trunk[_0xe2bd[16]]({peerstatus:_0xd9fcx4[_0xe2bd[18]]},{where:{name:_0xd9fcx4[_0xe2bd[21]][_0xe2bd[20]](_0xe2bd[19])[1]},individualHooks:true,raw:true})[_0xe2bd[12]](function(){console[_0xe2bd[11]](_0xe2bd[17],_0xd9fcx4[_0xe2bd[18]])})[_0xe2bd[10]](function(_0xd9fcx6){console[_0xe2bd[9]](_0xe2bd[17],_0xd9fcx6)})}}}} \ No newline at end of file +var _0x4f17=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x62\x6C\x75\x65\x62\x69\x72\x64","\x54\x72\x75\x6E\x6B","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x6D\x6F\x64\x65\x6C\x73","\x65\x78\x70\x6F\x72\x74\x73","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x73\x74\x61\x74\x75\x73","\x72\x65\x73\x6F\x6C\x76\x65","\x54\x72\x75\x6E\x6B\x20\x2D\x20\x72\x65\x67\x69\x73\x74\x72\x79","\x65\x72\x72\x6F\x72","\x63\x61\x74\x63\x68","\x64\x6F\x6D\x61\x69\x6E","\x75\x70\x64\x61\x74\x65","\x54\x72\x75\x6E\x6B\x20\x2D\x20\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x70\x65\x65\x72\x73\x74\x61\x74\x75\x73","\x6C\x6F\x67","\x74\x68\x65\x6E","\x2F","\x73\x70\x6C\x69\x74","\x70\x65\x65\x72"];_0x4f17[0];var BPromise=require(_0x4f17[1]);var Trunk=require(_0x4f17[3])[_0x4f17[2]];var trunkStates={};module[_0x4f17[4]]= function(){return {registry:function(_0x2e5ax4){return function(_0x2e5ax5){if(trunkStates[_0x2e5ax4[_0x4f17[5]]]&& trunkStates[_0x2e5ax4[_0x4f17[5]]]=== _0x2e5ax4[_0x4f17[6]]){return BPromise[_0x4f17[7]]()}else {trunkStates[_0x2e5ax4[_0x4f17[5]]]= _0x2e5ax4[_0x4f17[6]]};return Trunk[_0x4f17[12]]({status:_0x2e5ax4[_0x4f17[6]]},{where:{defaultuser:_0x2e5ax4[_0x4f17[5]],host:_0x2e5ax4[_0x4f17[11]],active:true},individualHooks:true,raw:true})[_0x4f17[10]](function(_0x2e5ax6){console[_0x4f17[9]](_0x4f17[8],_0x2e5ax6)})}},peerstatus:function(_0x2e5ax4){return function(_0x2e5ax5){return Trunk[_0x4f17[12]]({peerstatus:_0x2e5ax4[_0x4f17[14]]},{where:{name:_0x2e5ax4[_0x4f17[19]][_0x4f17[18]](_0x4f17[17])[1]},individualHooks:true,raw:true})[_0x4f17[16]](function(_0x2e5ax5){if(_0x2e5ax5&& _0x2e5ax5[0]>= 1){console[_0x4f17[15]](_0x4f17[13],_0x2e5ax4[_0x4f17[14]])}})[_0x4f17[10]](function(_0x2e5ax6){console[_0x4f17[9]](_0x4f17[13],_0x2e5ax6)})}}}} \ No newline at end of file