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 _0xad45=['remove','update','removeListener','register','length','./openchannelQueue.events'];(function(_0x2c52a5,_0x350627){var _0x55f434=function(_0x31e26d){while(--_0x31e26d){_0x2c52a5['push'](_0x2c52a5['shift']());}};_0x55f434(++_0x350627);}(_0xad45,0x113));var _0x5ad4=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0xad45[_0x14add3];return _0x4a174f;};'use strict';var OpenchannelQueueEvents=require(_0x5ad4('0x0'));var events=['save',_0x5ad4('0x1'),_0x5ad4('0x2')];function createListener(_0xd8453e,_0x4ccbb2){return function(_0x1cfafc){_0x4ccbb2['emit'](_0xd8453e,_0x1cfafc);};}function removeListener(_0x4c9e29,_0x12e7bb){return function(){OpenchannelQueueEvents[_0x5ad4('0x3')](_0x4c9e29,_0x12e7bb);};}exports[_0x5ad4('0x4')]=function(_0x1d83f8){for(var _0x1516b3=0x0,_0x3825db=events[_0x5ad4('0x5')];_0x1516b3<_0x3825db;_0x1516b3++){var _0x4502d0=events[_0x1516b3];var _0xfb6f4=createListener('openchannelQueue:'+_0x4502d0,_0x1d83f8);OpenchannelQueueEvents['on'](_0x4502d0,_0xfb6f4);}};