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 _0x6dec=['./openchannelQueue.events','save','remove','update','removeListener','length','openchannelQueue:'];(function(_0x11f597,_0x4c7be4){var _0x529041=function(_0x14cfb0){while(--_0x14cfb0){_0x11f597['push'](_0x11f597['shift']());}};_0x529041(++_0x4c7be4);}(_0x6dec,0x1dc));var _0xc6de=function(_0xad09ce,_0x2e4293){_0xad09ce=_0xad09ce-0x0;var _0x3e6c4c=_0x6dec[_0xad09ce];return _0x3e6c4c;};'use strict';var OpenchannelQueueEvents=require(_0xc6de('0x0'));var events=[_0xc6de('0x1'),_0xc6de('0x2'),_0xc6de('0x3')];function createListener(_0x22782d,_0x233624){return function(_0x2600c0){_0x233624['emit'](_0x22782d,_0x2600c0);};}function removeListener(_0x319d37,_0x4606f5){return function(){OpenchannelQueueEvents[_0xc6de('0x4')](_0x319d37,_0x4606f5);};}exports['register']=function(_0x2af1b2){for(var _0x42aa6e=0x0,_0x1f30af=events[_0xc6de('0x5')];_0x42aa6e<_0x1f30af;_0x42aa6e++){var _0x42fafe=events[_0x42aa6e];var _0x10fb82=createListener(_0xc6de('0x6')+_0x42fafe,_0x2af1b2);OpenchannelQueueEvents['on'](_0x42fafe,_0x10fb82);}};