1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0xb565=['voiceQueue:','./voiceQueue.events','remove','update','emit','removeListener','register','length'];(function(_0x20085b,_0x509b6b){var _0x4376d5=function(_0x8d0769){while(--_0x8d0769){_0x20085b['push'](_0x20085b['shift']());}};_0x4376d5(++_0x509b6b);}(_0xb565,0xb9));var _0x5b56=function(_0x330d1f,_0x47c710){_0x330d1f=_0x330d1f-0x0;var _0x1df784=_0xb565[_0x330d1f];return _0x1df784;};'use strict';var VoiceQueueEvents=require(_0x5b56('0x0'));var events=['save',_0x5b56('0x1'),_0x5b56('0x2')];function createListener(_0x333403,_0x4af461){return function(_0x51db20){_0x4af461[_0x5b56('0x3')](_0x333403,_0x51db20);};}function removeListener(_0x580baa,_0x2a7e31){return function(){VoiceQueueEvents[_0x5b56('0x4')](_0x580baa,_0x2a7e31);};}exports[_0x5b56('0x5')]=function(_0x4ed7b4){for(var _0x3e5c9f=0x0,_0x30111f=events[_0x5b56('0x6')];_0x3e5c9f<_0x30111f;_0x3e5c9f++){var _0xed2b8b=events[_0x3e5c9f];var _0x56d8ea=createListener(_0x5b56('0x7')+_0xed2b8b,_0x4ed7b4);VoiceQueueEvents['on'](_0xed2b8b,_0x56d8ea);}};