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 _0x38f9=['openchannelQueue:','remove','update','removeListener','length'];(function(_0x1dee74,_0x3731cd){var _0x477e33=function(_0x21003d){while(--_0x21003d){_0x1dee74['push'](_0x1dee74['shift']());}};_0x477e33(++_0x3731cd);}(_0x38f9,0xd3));var _0x938f=function(_0x1d6a82,_0x37c315){_0x1d6a82=_0x1d6a82-0x0;var _0x5834ac=_0x38f9[_0x1d6a82];return _0x5834ac;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=['save',_0x938f('0x0'),_0x938f('0x1')];function createListener(_0x502c36,_0x4b9b44){return function(_0x3c30fa){_0x4b9b44['emit'](_0x502c36,_0x3c30fa);};}function removeListener(_0x5cc294,_0xfb2ab2){return function(){OpenchannelQueueEvents[_0x938f('0x2')](_0x5cc294,_0xfb2ab2);};}exports['register']=function(_0x2959d6){for(var _0x26cbd3=0x0,_0x4b3c40=events[_0x938f('0x3')];_0x26cbd3<_0x4b3c40;_0x26cbd3++){var _0x45e31c=events[_0x26cbd3];var _0x5632f9=createListener(_0x938f('0x4')+_0x45e31c,_0x2959d6);OpenchannelQueueEvents['on'](_0x45e31c,_0x5632f9);}};