3c136a32ddc80181de69484d9c708b393600c9c3
[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 _0x66da=['remove','update','emit','removeListener','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save'];(function(_0x6b786b,_0x146ad0){var _0x51258a=function(_0x4ec67c){while(--_0x4ec67c){_0x6b786b['push'](_0x6b786b['shift']());}};_0x51258a(++_0x146ad0);}(_0x66da,0x16f));var _0xa66d=function(_0x220f3f,_0x11c540){_0x220f3f=_0x220f3f-0x0;var _0x1f170e=_0x66da[_0x220f3f];return _0x1f170e;};'use strict';var UserVoiceQueueRtEvents=require(_0xa66d('0x0'));var events=[_0xa66d('0x1'),_0xa66d('0x2'),_0xa66d('0x3')];function createListener(_0x4ae0b1,_0x4b63f3){return function(_0x4f873c){_0x4b63f3[_0xa66d('0x4')](_0x4ae0b1,_0x4f873c);};}function removeListener(_0x950036,_0x1326e8){return function(){UserVoiceQueueRtEvents[_0xa66d('0x5')](_0x950036,_0x1326e8);};}exports[_0xa66d('0x6')]=function(_0x4ee440){for(var _0x142a69=0x0,_0x1643d9=events[_0xa66d('0x7')];_0x142a69<_0x1643d9;_0x142a69++){var _0xa2baf9=events[_0x142a69];var _0x2c0d83=createListener(_0xa66d('0x8')+_0xa2baf9,_0x4ee440);UserVoiceQueueRtEvents['on'](_0xa2baf9,_0x2c0d83);}};