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 _0x55b4=['update','removeListener','save','remove'];(function(_0x36ed48,_0x1ee0d4){var _0x51c63a=function(_0x2d0a40){while(--_0x2d0a40){_0x36ed48['push'](_0x36ed48['shift']());}};_0x51c63a(++_0x1ee0d4);}(_0x55b4,0x8e));var _0x455b=function(_0x276c18,_0x41bfb1){_0x276c18=_0x276c18-0x0;var _0x2aa28c=_0x55b4[_0x276c18];return _0x2aa28c;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=[_0x455b('0x0'),_0x455b('0x1'),_0x455b('0x2')];function createListener(_0x4a0d3a,_0x13f8f7){return function(_0x337a5f){_0x13f8f7['emit'](_0x4a0d3a,_0x337a5f);};}function removeListener(_0x2ef348,_0xb2b31){return function(){OpenchannelQueueEvents[_0x455b('0x3')](_0x2ef348,_0xb2b31);};}exports['register']=function(_0x3d02a6){for(var _0x22d4bd=0x0,_0x3a973f=events['length'];_0x22d4bd<_0x3a973f;_0x22d4bd++){var _0x36bd2a=events[_0x22d4bd];var _0x436fcb=createListener('openchannelQueue:'+_0x36bd2a,_0x3d02a6);OpenchannelQueueEvents['on'](_0x36bd2a,_0x436fcb);}};