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 _0x183e=['save','remove','update','emit','register','length','openchannelQueue:','./openchannelQueue.events'];(function(_0x3cb83f,_0x2bc6dd){var _0x105d68=function(_0x18bd0f){while(--_0x18bd0f){_0x3cb83f['push'](_0x3cb83f['shift']());}};_0x105d68(++_0x2bc6dd);}(_0x183e,0x157));var _0xe183=function(_0x3c1ad0,_0x1b3ac3){_0x3c1ad0=_0x3c1ad0-0x0;var _0x504171=_0x183e[_0x3c1ad0];return _0x504171;};'use strict';var OpenchannelQueueEvents=require(_0xe183('0x0'));var events=[_0xe183('0x1'),_0xe183('0x2'),_0xe183('0x3')];function createListener(_0x7dc637,_0x1de1ca){return function(_0x27e224){_0x1de1ca[_0xe183('0x4')](_0x7dc637,_0x27e224);};}function removeListener(_0x13034a,_0x1ebd5f){return function(){OpenchannelQueueEvents['removeListener'](_0x13034a,_0x1ebd5f);};}exports[_0xe183('0x5')]=function(_0x55aeb7){for(var _0x13abdc=0x0,_0x4ddc1b=events[_0xe183('0x6')];_0x13abdc<_0x4ddc1b;_0x13abdc++){var _0x342a4b=events[_0x13abdc];var _0x2e21a6=createListener(_0xe183('0x7')+_0x342a4b,_0x55aeb7);OpenchannelQueueEvents['on'](_0x342a4b,_0x2e21a6);}};