3bf0855f86f3e60204c65cc9b1263793c6a42bb7
[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 _0x8769=['./userVoiceQueueRt.events','save','remove','emit','register','userVoiceQueueRt:'];(function(_0x2bf1fc,_0x3accef){var _0x544e64=function(_0x514e09){while(--_0x514e09){_0x2bf1fc['push'](_0x2bf1fc['shift']());}};_0x544e64(++_0x3accef);}(_0x8769,0x126));var _0x9876=function(_0x2b9b7f,_0x4d47df){_0x2b9b7f=_0x2b9b7f-0x0;var _0x4ed19a=_0x8769[_0x2b9b7f];return _0x4ed19a;};'use strict';var UserVoiceQueueRtEvents=require(_0x9876('0x0'));var events=[_0x9876('0x1'),_0x9876('0x2'),'update'];function createListener(_0xac1f40,_0x2154ca){return function(_0x4e515d){_0x2154ca[_0x9876('0x3')](_0xac1f40,_0x4e515d);};}function removeListener(_0x30e09e,_0x2e905d){return function(){UserVoiceQueueRtEvents['removeListener'](_0x30e09e,_0x2e905d);};}exports[_0x9876('0x4')]=function(_0x1de36b){for(var _0x4d6f6c=0x0,_0x403f4e=events['length'];_0x4d6f6c<_0x403f4e;_0x4d6f6c++){var _0x682aa6=events[_0x4d6f6c];var _0x53ac69=createListener(_0x9876('0x5')+_0x682aa6,_0x1de36b);UserVoiceQueueRtEvents['on'](_0x682aa6,_0x53ac69);}};