14820bd08f49f4308ea5e473454d4fd32a110ff0
[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 _0x9f7a=['removeListener','./userVoiceQueueRt.events','save','remove','update'];(function(_0x15f4b6,_0x5a688f){var _0x16aedc=function(_0xc3cc63){while(--_0xc3cc63){_0x15f4b6['push'](_0x15f4b6['shift']());}};_0x16aedc(++_0x5a688f);}(_0x9f7a,0xf1));var _0xa9f7=function(_0x174ef5,_0x256e8e){_0x174ef5=_0x174ef5-0x0;var _0x1cc379=_0x9f7a[_0x174ef5];return _0x1cc379;};'use strict';var UserVoiceQueueRtEvents=require(_0xa9f7('0x0'));var events=[_0xa9f7('0x1'),_0xa9f7('0x2'),_0xa9f7('0x3')];function createListener(_0x4af524,_0x302d71){return function(_0x4c0346){_0x302d71['emit'](_0x4af524,_0x4c0346);};}function removeListener(_0x59823f,_0x22dbdd){return function(){UserVoiceQueueRtEvents[_0xa9f7('0x4')](_0x59823f,_0x22dbdd);};}exports['register']=function(_0x499ff6){for(var _0xc1334d=0x0,_0x5497c8=events['length'];_0xc1334d<_0x5497c8;_0xc1334d++){var _0x5bf7ca=events[_0xc1334d];var _0x21010f=createListener('userVoiceQueueRt:'+_0x5bf7ca,_0x499ff6);UserVoiceQueueRtEvents['on'](_0x5bf7ca,_0x21010f);}};