Built motion from commit (unavailable).|2.4.20
[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 _0x745d=['removeListener','register','length','save','remove'];(function(_0x3a0c4f,_0x5dd1a3){var _0x247049=function(_0x144695){while(--_0x144695){_0x3a0c4f['push'](_0x3a0c4f['shift']());}};_0x247049(++_0x5dd1a3);}(_0x745d,0xd5));var _0xd745=function(_0x519bec,_0xff274c){_0x519bec=_0x519bec-0x0;var _0x3f0e3e=_0x745d[_0x519bec];return _0x3f0e3e;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=[_0xd745('0x0'),_0xd745('0x1'),'update'];function createListener(_0x3006bd,_0xeb39be){return function(_0x63d6d4){_0xeb39be['emit'](_0x3006bd,_0x63d6d4);};}function removeListener(_0x2c47b1,_0x22c607){return function(){UserVoiceQueueRtEvents[_0xd745('0x2')](_0x2c47b1,_0x22c607);};}exports[_0xd745('0x3')]=function(_0x4c82a4){for(var _0x2e3786=0x0,_0x27bd8d=events[_0xd745('0x4')];_0x2e3786<_0x27bd8d;_0x2e3786++){var _0x40b41b=events[_0x2e3786];var _0xdbe14a=createListener('userVoiceQueueRt:'+_0x40b41b,_0x4c82a4);UserVoiceQueueRtEvents['on'](_0x40b41b,_0xdbe14a);}};