Built motion from commit (unavailable).|2.5.22
[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 _0x176c=['register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save','update','emit','removeListener'];(function(_0x3ab9ee,_0x4a74b8){var _0x82ee88=function(_0x6ccc7e){while(--_0x6ccc7e){_0x3ab9ee['push'](_0x3ab9ee['shift']());}};_0x82ee88(++_0x4a74b8);}(_0x176c,0x14b));var _0xc176=function(_0x1b7bfe,_0x542c18){_0x1b7bfe=_0x1b7bfe-0x0;var _0x89e986=_0x176c[_0x1b7bfe];return _0x89e986;};'use strict';var UserVoiceQueueRtEvents=require(_0xc176('0x0'));var events=[_0xc176('0x1'),'remove',_0xc176('0x2')];function createListener(_0x560541,_0x49ca51){return function(_0x15ac8d){_0x49ca51[_0xc176('0x3')](_0x560541,_0x15ac8d);};}function removeListener(_0x3dc9be,_0x1ba179){return function(){UserVoiceQueueRtEvents[_0xc176('0x4')](_0x3dc9be,_0x1ba179);};}exports[_0xc176('0x5')]=function(_0x9eacd8){for(var _0x2e6c33=0x0,_0x2c8568=events[_0xc176('0x6')];_0x2e6c33<_0x2c8568;_0x2e6c33++){var _0x394801=events[_0x2e6c33];var _0x4982b2=createListener(_0xc176('0x7')+_0x394801,_0x9eacd8);UserVoiceQueueRtEvents['on'](_0x394801,_0x4982b2);}};