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 _0xbec4=['removeListener','register','length','voiceQueue:','./voiceQueue.events','remove','update'];(function(_0x40672d,_0x316df5){var _0x731e51=function(_0x103e27){while(--_0x103e27){_0x40672d['push'](_0x40672d['shift']());}};_0x731e51(++_0x316df5);}(_0xbec4,0x1ee));var _0x4bec=function(_0x57b585,_0x587545){_0x57b585=_0x57b585-0x0;var _0x471368=_0xbec4[_0x57b585];return _0x471368;};'use strict';var VoiceQueueEvents=require(_0x4bec('0x0'));var events=['save',_0x4bec('0x1'),_0x4bec('0x2')];function createListener(_0x4f220c,_0x9bcca8){return function(_0x5d03d1){_0x9bcca8['emit'](_0x4f220c,_0x5d03d1);};}function removeListener(_0x4f65a7,_0x1b9c7c){return function(){VoiceQueueEvents[_0x4bec('0x3')](_0x4f65a7,_0x1b9c7c);};}exports[_0x4bec('0x4')]=function(_0x2bde5b){for(var _0x31e877=0x0,_0x96b830=events[_0x4bec('0x5')];_0x31e877<_0x96b830;_0x31e877++){var _0x76faf4=events[_0x31e877];var _0x50edd0=createListener(_0x4bec('0x6')+_0x76faf4,_0x2bde5b);VoiceQueueEvents['on'](_0x76faf4,_0x50edd0);}};