1 var _0xbe83=["\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","\x61\x6D\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x6C\x6F\x67\x67\x65\x72\x2E\x6A\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","\x2F","\x73\x70\x6C\x69\x74","\x70\x65\x65\x72"];_0xbe83[0];var BPromise=require(_0xbe83[1]);var Trunk=require(_0xbe83[3])[_0xbe83[2]];var logger=require(_0xbe83[5])(_0xbe83[4]);var trunkStates={};module[_0xbe83[6]]= function(){return {registry:function(_0x2ee8x5){return function(_0x2ee8x6){if(trunkStates[_0x2ee8x5[_0xbe83[7]]]&& trunkStates[_0x2ee8x5[_0xbe83[7]]]=== _0x2ee8x5[_0xbe83[8]]){return BPromise[_0xbe83[9]]()}else {trunkStates[_0x2ee8x5[_0xbe83[7]]]= _0x2ee8x5[_0xbe83[8]]};return Trunk[_0xbe83[14]]({status:_0x2ee8x5[_0xbe83[8]]},{where:{defaultuser:_0x2ee8x5[_0xbe83[7]],host:_0x2ee8x5[_0xbe83[13]],active:true},individualHooks:true,raw:true})[_0xbe83[12]](function(_0x2ee8x7){logger[_0xbe83[11]](_0xbe83[10],_0x2ee8x7)})}},peerstatus:function(_0x2ee8x5){return function(_0x2ee8x6){return Trunk[_0xbe83[14]]({peerstatus:_0x2ee8x5[_0xbe83[16]]},{where:{name:_0x2ee8x5[_0xbe83[19]][_0xbe83[18]](_0xbe83[17])[1]},individualHooks:true,raw:true})[_0xbe83[12]](function(_0x2ee8x7){logger[_0xbe83[11]](_0xbe83[15],_0x2ee8x7)})}}}}