Built motion from commit 4e7c323b.|2.5.34
[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 _0x9c50=['update','register','length','userVoiceQueueRt:'];(function(_0x13422b,_0x214063){var _0x49cb8d=function(_0x4c3521){while(--_0x4c3521){_0x13422b['push'](_0x13422b['shift']());}};_0x49cb8d(++_0x214063);}(_0x9c50,0xec));var _0x09c5=function(_0x280d04,_0x4bdb28){_0x280d04=_0x280d04-0x0;var _0x1892db=_0x9c50[_0x280d04];return _0x1892db;};'use strict';var UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events');var events=['save','remove',_0x09c5('0x0')];function createListener(_0x5ec6dd,_0xec826c){return function(_0x493887){_0xec826c['emit'](_0x5ec6dd,_0x493887);};}function removeListener(_0x23513c,_0x1e2992){return function(){UserVoiceQueueRtEvents['removeListener'](_0x23513c,_0x1e2992);};}exports[_0x09c5('0x1')]=function(_0x58a451){for(var _0x8987f6=0x0,_0x2830e5=events[_0x09c5('0x2')];_0x8987f6<_0x2830e5;_0x8987f6++){var _0x51ff47=events[_0x8987f6];var _0x27d297=createListener(_0x09c5('0x3')+_0x51ff47,_0x58a451);UserVoiceQueueRtEvents['on'](_0x51ff47,_0x27d297);}};