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 _0x5f83=['removeListener','register','length','openchannelQueue:','save','emit'];(function(_0xc9af76,_0x385384){var _0x35b5d6=function(_0x2bd02a){while(--_0x2bd02a){_0xc9af76['push'](_0xc9af76['shift']());}};_0x35b5d6(++_0x385384);}(_0x5f83,0xe2));var _0x35f8=function(_0x2a208a,_0x3a40ca){_0x2a208a=_0x2a208a-0x0;var _0x5cf335=_0x5f83[_0x2a208a];return _0x5cf335;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0x35f8('0x0'),'remove','update'];function createListener(_0xeec7b,_0x186d53){return function(_0x4d66eb){_0x186d53[_0x35f8('0x1')](_0xeec7b,_0x4d66eb);};}function removeListener(_0x4ffb08,_0x3f3095){return function(){OpenchannelQueueEvents[_0x35f8('0x2')](_0x4ffb08,_0x3f3095);};}exports[_0x35f8('0x3')]=function(_0x236fac){for(var _0x57cd68=0x0,_0x31397c=events[_0x35f8('0x4')];_0x57cd68<_0x31397c;_0x57cd68++){var _0x2bfb83=events[_0x57cd68];var _0x1b44e6=createListener(_0x35f8('0x5')+_0x2bfb83,_0x236fac);OpenchannelQueueEvents['on'](_0x2bfb83,_0x1b44e6);}};