635739ea364c192cc6e6e9cb208b8e95153ae369
[motion2.git] / server / api / openchannelQueue / openchannelQueue.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x2402=['removeListener','length','openchannelQueue:','./openchannelQueue.events','update','emit'];(function(_0x4dda8e,_0xe91ab7){var _0x1563c7=function(_0x552266){while(--_0x552266){_0x4dda8e['push'](_0x4dda8e['shift']());}};_0x1563c7(++_0xe91ab7);}(_0x2402,0xbd));var _0x2240=function(_0x77422a,_0x4999e8){_0x77422a=_0x77422a-0x0;var _0x47852a=_0x2402[_0x77422a];return _0x47852a;};'use strict';var OpenchannelQueueEvents=require(_0x2240('0x0'));var events=['save','remove',_0x2240('0x1')];function createListener(_0x4b2cd5,_0x443db8){return function(_0x538fb8){_0x443db8[_0x2240('0x2')](_0x4b2cd5,_0x538fb8);};}function removeListener(_0x3c9951,_0x45d8c9){return function(){OpenchannelQueueEvents[_0x2240('0x3')](_0x3c9951,_0x45d8c9);};}exports['register']=function(_0x5dfa08){for(var _0x36024b=0x0,_0x26f247=events[_0x2240('0x4')];_0x36024b<_0x26f247;_0x36024b++){var _0x358aa5=events[_0x36024b];var _0x5bb659=createListener(_0x2240('0x5')+_0x358aa5,_0x5dfa08);OpenchannelQueueEvents['on'](_0x358aa5,_0x5bb659);}};