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 _0x9254=['save','remove','update','emit','removeListener','length','voiceQueue:','./voiceQueue.events'];(function(_0x40220a,_0x22feb1){var _0x3903cc=function(_0x33a296){while(--_0x33a296){_0x40220a['push'](_0x40220a['shift']());}};_0x3903cc(++_0x22feb1);}(_0x9254,0x157));var _0x4925=function(_0x32864e,_0x1d814f){_0x32864e=_0x32864e-0x0;var _0x186fc9=_0x9254[_0x32864e];return _0x186fc9;};'use strict';var VoiceQueueEvents=require(_0x4925('0x0'));var events=[_0x4925('0x1'),_0x4925('0x2'),_0x4925('0x3')];function createListener(_0x49b3e5,_0x583c28){return function(_0x4a9860){_0x583c28[_0x4925('0x4')](_0x49b3e5,_0x4a9860);};}function removeListener(_0x5d89cd,_0x3e1e99){return function(){VoiceQueueEvents[_0x4925('0x5')](_0x5d89cd,_0x3e1e99);};}exports['register']=function(_0x192d9e){for(var _0x183845=0x0,_0x49a5b7=events[_0x4925('0x6')];_0x183845<_0x49a5b7;_0x183845++){var _0x3334b4=events[_0x183845];var _0x4384f3=createListener(_0x4925('0x7')+_0x3334b4,_0x192d9e);VoiceQueueEvents['on'](_0x3334b4,_0x4384f3);}};