Built motion from commit (unavailable).|2.5.11
[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 _0x8e07=['save','update','emit','removeListener','register','./userVoiceQueueRt.events'];(function(_0x57f062,_0x59af63){var _0x300467=function(_0x4d5bad){while(--_0x4d5bad){_0x57f062['push'](_0x57f062['shift']());}};_0x300467(++_0x59af63);}(_0x8e07,0x1a9));var _0x78e0=function(_0x1f0baf,_0x2031c6){_0x1f0baf=_0x1f0baf-0x0;var _0x567fcf=_0x8e07[_0x1f0baf];return _0x567fcf;};'use strict';var UserVoiceQueueRtEvents=require(_0x78e0('0x0'));var events=[_0x78e0('0x1'),'remove',_0x78e0('0x2')];function createListener(_0x3747b6,_0x3f2585){return function(_0x313983){_0x3f2585[_0x78e0('0x3')](_0x3747b6,_0x313983);};}function removeListener(_0x20d1d9,_0x9a64b7){return function(){UserVoiceQueueRtEvents[_0x78e0('0x4')](_0x20d1d9,_0x9a64b7);};}exports[_0x78e0('0x5')]=function(_0x19ac5f){for(var _0x4961df=0x0,_0x261c94=events['length'];_0x4961df<_0x261c94;_0x4961df++){var _0x1eb6e3=events[_0x4961df];var _0x16e64e=createListener('userVoiceQueueRt:'+_0x1eb6e3,_0x19ac5f);UserVoiceQueueRtEvents['on'](_0x1eb6e3,_0x16e64e);}};