Built motion from commit (unavailable).|2.4.18
[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 _0xbb37=['register','length','userVoiceQueueRt:','remove','update','emit','removeListener'];(function(_0x3ba8dd,_0x4eaaf3){var _0x4a82fe=function(_0x9f806a){while(--_0x9f806a){_0x3ba8dd['push'](_0x3ba8dd['shift']());}};_0x4a82fe(++_0x4eaaf3);}(_0xbb37,0x1b5));var _0x7bb3=function(_0x1ffc7e,_0x237138){_0x1ffc7e=_0x1ffc7e-0x0;var _0x3fcf02=_0xbb37[_0x1ffc7e];return _0x3fcf02;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=['save',_0x7bb3('0x0'),_0x7bb3('0x1')];function createListener(_0x32a6ec,_0xb959cb){return function(_0x3db178){_0xb959cb[_0x7bb3('0x2')](_0x32a6ec,_0x3db178);};}function removeListener(_0x4977ac,_0x43a015){return function(){UserVoiceQueueRtEvents[_0x7bb3('0x3')](_0x4977ac,_0x43a015);};}exports[_0x7bb3('0x4')]=function(_0x1d9001){for(var _0x52a71e=0x0,_0x3aa990=events[_0x7bb3('0x5')];_0x52a71e<_0x3aa990;_0x52a71e++){var _0x43da59=events[_0x52a71e];var _0x1aa443=createListener(_0x7bb3('0x6')+_0x43da59,_0x1d9001);UserVoiceQueueRtEvents['on'](_0x43da59,_0x1aa443);}};