Built motion from commit f7863d46.|2.5.41
[motion2.git] / server / api / chatQueue / chatQueue.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 _0x4c4e=['length','chatQueue:','./chatQueue.events','remove','update','emit','removeListener'];(function(_0x3aa41f,_0x18abbb){var _0x26fda2=function(_0x33d3a0){while(--_0x33d3a0){_0x3aa41f['push'](_0x3aa41f['shift']());}};_0x26fda2(++_0x18abbb);}(_0x4c4e,0x152));var _0xe4c4=function(_0x593b92,_0x26a196){_0x593b92=_0x593b92-0x0;var _0x56c3cb=_0x4c4e[_0x593b92];return _0x56c3cb;};'use strict';var ChatQueueEvents=require(_0xe4c4('0x0'));var events=['save',_0xe4c4('0x1'),_0xe4c4('0x2')];function createListener(_0xe3f2f,_0x58c8f6){return function(_0x1b6c91){_0x58c8f6[_0xe4c4('0x3')](_0xe3f2f,_0x1b6c91);};}function removeListener(_0x1a4483,_0x4cd652){return function(){ChatQueueEvents[_0xe4c4('0x4')](_0x1a4483,_0x4cd652);};}exports['register']=function(_0x177732){for(var _0x1a12a6=0x0,_0x262b64=events[_0xe4c4('0x5')];_0x1a12a6<_0x262b64;_0x1a12a6++){var _0x22085a=events[_0x1a12a6];var _0x329d29=createListener(_0xe4c4('0x6')+_0x22085a,_0x177732);ChatQueueEvents['on'](_0x22085a,_0x329d29);}};