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 _0xed91=['removeListener','register','length','voiceQueue:','save'];(function(_0x4629ee,_0x5802d8){var _0x47fb5b=function(_0xf899cd){while(--_0xf899cd){_0x4629ee['push'](_0x4629ee['shift']());}};_0x47fb5b(++_0x5802d8);}(_0xed91,0x185));var _0x1ed9=function(_0x37147e,_0x2998d5){_0x37147e=_0x37147e-0x0;var _0x4d7236=_0xed91[_0x37147e];return _0x4d7236;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0x1ed9('0x0'),'remove','update'];function createListener(_0x1e77cc,_0x55f6ca){return function(_0x15884c){_0x55f6ca['emit'](_0x1e77cc,_0x15884c);};}function removeListener(_0x5e661d,_0x2fdf0e){return function(){VoiceQueueEvents[_0x1ed9('0x1')](_0x5e661d,_0x2fdf0e);};}exports[_0x1ed9('0x2')]=function(_0x3c77ff){for(var _0x3206de=0x0,_0x1b880f=events[_0x1ed9('0x3')];_0x3206de<_0x1b880f;_0x3206de++){var _0x2cd480=events[_0x3206de];var _0x11d588=createListener(_0x1ed9('0x4')+_0x2cd480,_0x3c77ff);VoiceQueueEvents['on'](_0x2cd480,_0x11d588);}};