e55128102f4a9b11ba7ec510faab06ad82e8d759
[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 _0xcd9f=['./openchannelQueue.events','remove','update','emit','removeListener','register','openchannelQueue:'];(function(_0x42a6a0,_0x2ab299){var _0x4800ce=function(_0x2897aa){while(--_0x2897aa){_0x42a6a0['push'](_0x42a6a0['shift']());}};_0x4800ce(++_0x2ab299);}(_0xcd9f,0x134));var _0xfcd9=function(_0x362c08,_0x368695){_0x362c08=_0x362c08-0x0;var _0x432942=_0xcd9f[_0x362c08];return _0x432942;};'use strict';var OpenchannelQueueEvents=require(_0xfcd9('0x0'));var events=['save',_0xfcd9('0x1'),_0xfcd9('0x2')];function createListener(_0x1511c5,_0x51d8fa){return function(_0xf711f1){_0x51d8fa[_0xfcd9('0x3')](_0x1511c5,_0xf711f1);};}function removeListener(_0xc68b8f,_0x2d9b6b){return function(){OpenchannelQueueEvents[_0xfcd9('0x4')](_0xc68b8f,_0x2d9b6b);};}exports[_0xfcd9('0x5')]=function(_0x1d7fa5){for(var _0x391bbd=0x0,_0x59d8e2=events['length'];_0x391bbd<_0x59d8e2;_0x391bbd++){var _0x2dea2e=events[_0x391bbd];var _0x13b027=createListener(_0xfcd9('0x6')+_0x2dea2e,_0x1d7fa5);OpenchannelQueueEvents['on'](_0x2dea2e,_0x13b027);}};