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 _0x3da4=['register','voiceQueue:','./voiceQueue.events','save','remove','update','emit','removeListener'];(function(_0x427b8d,_0x107eaa){var _0x643bf2=function(_0x420b0c){while(--_0x420b0c){_0x427b8d['push'](_0x427b8d['shift']());}};_0x643bf2(++_0x107eaa);}(_0x3da4,0xca));var _0x43da=function(_0x550151,_0x49d953){_0x550151=_0x550151-0x0;var _0x1ba3cb=_0x3da4[_0x550151];return _0x1ba3cb;};'use strict';var VoiceQueueEvents=require(_0x43da('0x0'));var events=[_0x43da('0x1'),_0x43da('0x2'),_0x43da('0x3')];function createListener(_0x4c00f7,_0x14ad28){return function(_0x21fae3){_0x14ad28[_0x43da('0x4')](_0x4c00f7,_0x21fae3);};}function removeListener(_0x4f992d,_0x54f65b){return function(){VoiceQueueEvents[_0x43da('0x5')](_0x4f992d,_0x54f65b);};}exports[_0x43da('0x6')]=function(_0x37ca36){for(var _0x4f8ea2=0x0,_0x10b5fd=events['length'];_0x4f8ea2<_0x10b5fd;_0x4f8ea2++){var _0x3b08a9=events[_0x4f8ea2];var _0x3da181=createListener(_0x43da('0x7')+_0x3b08a9,_0x37ca36);VoiceQueueEvents['on'](_0x3b08a9,_0x3da181);}};