5d190b008695529e34fafdd621294e458ac1153d
[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 _0x66c7=['remove','emit','register','length','userVoiceQueueRt:','./userVoiceQueueRt.events','save'];(function(_0x4e2111,_0x1d5493){var _0x1b4556=function(_0x2bd9ee){while(--_0x2bd9ee){_0x4e2111['push'](_0x4e2111['shift']());}};_0x1b4556(++_0x1d5493);}(_0x66c7,0x15c));var _0x766c=function(_0x47da96,_0x2ab4ff){_0x47da96=_0x47da96-0x0;var _0x4a8b27=_0x66c7[_0x47da96];return _0x4a8b27;};'use strict';var UserVoiceQueueRtEvents=require(_0x766c('0x0'));var events=[_0x766c('0x1'),_0x766c('0x2'),'update'];function createListener(_0x507a68,_0x47351a){return function(_0x23b678){_0x47351a[_0x766c('0x3')](_0x507a68,_0x23b678);};}function removeListener(_0x1b2a8e,_0x2b4c75){return function(){UserVoiceQueueRtEvents['removeListener'](_0x1b2a8e,_0x2b4c75);};}exports[_0x766c('0x4')]=function(_0x80d91d){for(var _0x6f94c3=0x0,_0xb0b5f7=events[_0x766c('0x5')];_0x6f94c3<_0xb0b5f7;_0x6f94c3++){var _0x3c4683=events[_0x6f94c3];var _0x22a524=createListener(_0x766c('0x6')+_0x3c4683,_0x80d91d);UserVoiceQueueRtEvents['on'](_0x3c4683,_0x22a524);}};