Built motion from commit 3c2ce842.|2.6.31
[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 _0x744c=['save','remove','update','emit','register','userVoiceQueueRt:','./userVoiceQueueRt.events'];(function(_0x1d9128,_0x5ab937){var _0x1ad7ae=function(_0x5c9516){while(--_0x5c9516){_0x1d9128['push'](_0x1d9128['shift']());}};_0x1ad7ae(++_0x5ab937);}(_0x744c,0xa0));var _0xc744=function(_0x435044,_0x36ab8e){_0x435044=_0x435044-0x0;var _0x33d4c6=_0x744c[_0x435044];return _0x33d4c6;};'use strict';var UserVoiceQueueRtEvents=require(_0xc744('0x0'));var events=[_0xc744('0x1'),_0xc744('0x2'),_0xc744('0x3')];function createListener(_0x4b6a83,_0x1f52c6){return function(_0x423eac){_0x1f52c6[_0xc744('0x4')](_0x4b6a83,_0x423eac);};}function removeListener(_0xde4228,_0x4f1c94){return function(){UserVoiceQueueRtEvents['removeListener'](_0xde4228,_0x4f1c94);};}exports[_0xc744('0x5')]=function(_0x1cc521){for(var _0x471094=0x0,_0x5d5009=events['length'];_0x471094<_0x5d5009;_0x471094++){var _0x5a85d6=events[_0x471094];var _0x2bb565=createListener(_0xc744('0x6')+_0x5a85d6,_0x1cc521);UserVoiceQueueRtEvents['on'](_0x5a85d6,_0x2bb565);}};