f4eea339568b0326b0b0bd6e7c6b069652dbd436
[motion.git] / server / api / user_has_chat_queue / user_has_chat_queue_permit.socket.js
1 var _0xe049=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x2E\x2F\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x5F\x70\x65\x72\x6D\x69\x74\x2E\x65\x76\x65\x6E\x74\x73","\x73\x61\x76\x65","\x72\x65\x6D\x6F\x76\x65","\x72\x65\x67\x69\x73\x74\x65\x72","\x6C\x65\x6E\x67\x74\x68","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x5F\x70\x65\x72\x6D\x69\x74\x3A","\x6F\x6E","\x64\x69\x73\x63\x6F\x6E\x6E\x65\x63\x74","\x75\x73\x65\x72\x49\x64","\x55\x73\x65\x72\x69\x64","\x6A\x6F\x69\x6E","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x5F\x70\x65\x72\x6D\x69\x74\x3A\x63\x68\x61\x6E\x67\x65","\x65\x6D\x69\x74","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x5F\x70\x65\x72\x6D\x69\x74\x3A\x73\x61\x76\x65","\x6C\x65\x61\x76\x65","\x75\x73\x65\x72\x5F\x68\x61\x73\x5F\x63\x68\x61\x74\x5F\x71\x75\x65\x75\x65\x5F\x70\x65\x72\x6D\x69\x74\x3A\x72\x65\x6D\x6F\x76\x65","\x72\x65\x6D\x6F\x76\x65\x4C\x69\x73\x74\x65\x6E\x65\x72"];_0xe049[0];const UserHasChatQueuePermitEvents=require(_0xe049[1]);var events=[_0xe049[2],_0xe049[3]];exports[_0xe049[4]]= function(_0x7df9x3){for(var _0x7df9x4=0,_0x7df9x5=events[_0xe049[5]];_0x7df9x4< _0x7df9x5;_0x7df9x4++){var _0x7df9x6=events[_0x7df9x4];var _0x7df9x7=createListener(_0xe049[6]+ _0x7df9x6,_0x7df9x3);UserHasChatQueuePermitEvents[_0xe049[7]](_0x7df9x6,_0x7df9x7);_0x7df9x3[_0xe049[7]](_0xe049[8],removeListener(_0x7df9x6,_0x7df9x7))}};function createListener(_0x7df9x6,_0x7df9x3){return function(_0x7df9x9){switch(_0x7df9x6){case _0xe049[14]:if(_0x7df9x3[_0xe049[9]]=== _0x7df9x9[_0xe049[10]]){_0x7df9x3[_0xe049[11]](_0x7df9x9.VoiceQueueName);_0x7df9x3[_0xe049[13]](_0xe049[12])};break;case _0xe049[16]:if(_0x7df9x3[_0xe049[9]]=== _0x7df9x9[_0xe049[10]]){_0x7df9x3[_0xe049[15]](_0x7df9x9.VoiceQueueName);_0x7df9x3[_0xe049[13]](_0xe049[12])};break;default:}}}function removeListener(_0x7df9x6,_0x7df9x7){return function(){UserHasChatQueuePermitEvents[_0xe049[17]](_0x7df9x6,_0x7df9x7)}}