f7804cc8c5278a2598be97a7d6aafcd8d3ceaea1
[motion2.git] / server / api / userVoiceQueueRt / userVoiceQueueRt.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 _0xe0d2=['emit','length','./userVoiceQueueRt.events','save','update'];(function(_0x5e3039,_0x1593a4){var _0x51b073=function(_0x1e334e){while(--_0x1e334e){_0x5e3039['push'](_0x5e3039['shift']());}};_0x51b073(++_0x1593a4);}(_0xe0d2,0x124));var _0x2e0d=function(_0x16ae4d,_0xaa06fd){_0x16ae4d=_0x16ae4d-0x0;var _0x28f250=_0xe0d2[_0x16ae4d];return _0x28f250;};'use strict';var UserVoiceQueueRtEvents=require(_0x2e0d('0x0'));var events=[_0x2e0d('0x1'),'remove',_0x2e0d('0x2')];function createListener(_0x2e2088,_0x44cf86){return function(_0x1f1387){_0x44cf86[_0x2e0d('0x3')](_0x2e2088,_0x1f1387);};}function removeListener(_0x440a24,_0xdc910c){return function(){UserVoiceQueueRtEvents['removeListener'](_0x440a24,_0xdc910c);};}exports['register']=function(_0x39905b){for(var _0x57765c=0x0,_0xfb41e2=events[_0x2e0d('0x4')];_0x57765c<_0xfb41e2;_0x57765c++){var _0x4b19b3=events[_0x57765c];var _0x21a10c=createListener('userVoiceQueueRt:'+_0x4b19b3,_0x39905b);UserVoiceQueueRtEvents['on'](_0x4b19b3,_0x21a10c);}};