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 _0xf860=['register','length','openchannelQueue:','save','remove','update','emit','removeListener'];(function(_0x34d2b1,_0x85530c){var _0x38f8d9=function(_0x795313){while(--_0x795313){_0x34d2b1['push'](_0x34d2b1['shift']());}};_0x38f8d9(++_0x85530c);}(_0xf860,0x163));var _0x0f86=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf860[_0x3dd15e];return _0x231fd0;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0x0f86('0x0'),_0x0f86('0x1'),_0x0f86('0x2')];function createListener(_0x803661,_0x29f521){return function(_0xdb224a){_0x29f521[_0x0f86('0x3')](_0x803661,_0xdb224a);};}function removeListener(_0x14da1e,_0x40640c){return function(){OpenchannelQueueEvents[_0x0f86('0x4')](_0x14da1e,_0x40640c);};}exports[_0x0f86('0x5')]=function(_0x288d0b){for(var _0xb6b2e0=0x0,_0x476bf5=events[_0x0f86('0x6')];_0xb6b2e0<_0x476bf5;_0xb6b2e0++){var _0x329332=events[_0xb6b2e0];var _0x3173c8=createListener(_0x0f86('0x7')+_0x329332,_0x288d0b);OpenchannelQueueEvents['on'](_0x329332,_0x3173c8);}};