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 _0x86ce=['remove','update','removeListener','register','openchannelQueue:','save'];(function(_0x4cd065,_0x556981){var _0x3cd13f=function(_0x19a2ae){while(--_0x19a2ae){_0x4cd065['push'](_0x4cd065['shift']());}};_0x3cd13f(++_0x556981);}(_0x86ce,0x167));var _0xe86c=function(_0x290ef5,_0x32cfa7){_0x290ef5=_0x290ef5-0x0;var _0x450d92=_0x86ce[_0x290ef5];return _0x450d92;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0xe86c('0x0'),_0xe86c('0x1'),_0xe86c('0x2')];function createListener(_0x5e5478,_0x28f9d7){return function(_0xe9d707){_0x28f9d7['emit'](_0x5e5478,_0xe9d707);};}function removeListener(_0x47e5a4,_0xcce360){return function(){OpenchannelQueueEvents[_0xe86c('0x3')](_0x47e5a4,_0xcce360);};}exports[_0xe86c('0x4')]=function(_0x18add3){for(var _0x5d1429=0x0,_0x48e19a=events['length'];_0x5d1429<_0x48e19a;_0x5d1429++){var _0x4b486f=events[_0x5d1429];var _0x2b38d5=createListener(_0xe86c('0x5')+_0x4b486f,_0x18add3);OpenchannelQueueEvents['on'](_0x4b486f,_0x2b38d5);}};