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 _0xfe21=['openchannelQueue:','save','removeListener','register','length'];(function(_0x529872,_0x4f6067){var _0x392818=function(_0x5b81bc){while(--_0x5b81bc){_0x529872['push'](_0x529872['shift']());}};_0x392818(++_0x4f6067);}(_0xfe21,0x6a));var _0x1fe2=function(_0x472db3,_0x5ccf4b){_0x472db3=_0x472db3-0x0;var _0x1037bb=_0xfe21[_0x472db3];return _0x1037bb;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0x1fe2('0x0'),'remove','update'];function createListener(_0x4176fe,_0x36aefd){return function(_0x2a8d60){_0x36aefd['emit'](_0x4176fe,_0x2a8d60);};}function removeListener(_0x3c7305,_0x3251ac){return function(){OpenchannelQueueEvents[_0x1fe2('0x1')](_0x3c7305,_0x3251ac);};}exports[_0x1fe2('0x2')]=function(_0x54e0e7){for(var _0x29694c=0x0,_0x1dddb2=events[_0x1fe2('0x3')];_0x29694c<_0x1dddb2;_0x29694c++){var _0x309d12=events[_0x29694c];var _0x102e9a=createListener(_0x1fe2('0x4')+_0x309d12,_0x54e0e7);OpenchannelQueueEvents['on'](_0x309d12,_0x102e9a);}};