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 _0x6db8=['remove','update','removeListener','register','voiceQueue:','./voiceQueue.events','save'];(function(_0x55f8b4,_0x43f30d){var _0x2475f9=function(_0xdd6f4a){while(--_0xdd6f4a){_0x55f8b4['push'](_0x55f8b4['shift']());}};_0x2475f9(++_0x43f30d);}(_0x6db8,0x1d3));var _0x86db=function(_0x215e65,_0x183f97){_0x215e65=_0x215e65-0x0;var _0xa85842=_0x6db8[_0x215e65];return _0xa85842;};'use strict';var VoiceQueueEvents=require(_0x86db('0x0'));var events=[_0x86db('0x1'),_0x86db('0x2'),_0x86db('0x3')];function createListener(_0x3437ef,_0x2ebab6){return function(_0x3245f9){_0x2ebab6['emit'](_0x3437ef,_0x3245f9);};}function removeListener(_0x4743bf,_0x52be6a){return function(){VoiceQueueEvents[_0x86db('0x4')](_0x4743bf,_0x52be6a);};}exports[_0x86db('0x5')]=function(_0x3f09db){for(var _0x1f2e74=0x0,_0x549139=events['length'];_0x1f2e74<_0x549139;_0x1f2e74++){var _0x2f231c=events[_0x1f2e74];var _0x1f8695=createListener(_0x86db('0x6')+_0x2f231c,_0x3f09db);VoiceQueueEvents['on'](_0x2f231c,_0x1f8695);}};