bc1d8cbf53e4829f99ea8253ffddea1661efda74
[motion2.git] / server / api / voiceQueue / voiceQueue.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 _0x83d8=['voiceQueue:','./voiceQueue.events','save','remove','update','emit','removeListener','register','length'];(function(_0x5cf70e,_0x4bdeab){var _0x2359ab=function(_0x57cd68){while(--_0x57cd68){_0x5cf70e['push'](_0x5cf70e['shift']());}};_0x2359ab(++_0x4bdeab);}(_0x83d8,0xfd));var _0x883d=function(_0x602e31,_0x2c062a){_0x602e31=_0x602e31-0x0;var _0x3d265d=_0x83d8[_0x602e31];return _0x3d265d;};'use strict';var VoiceQueueEvents=require(_0x883d('0x0'));var events=[_0x883d('0x1'),_0x883d('0x2'),_0x883d('0x3')];function createListener(_0x56c0b7,_0xd18627){return function(_0x24a6a8){_0xd18627[_0x883d('0x4')](_0x56c0b7,_0x24a6a8);};}function removeListener(_0x44e51f,_0x289819){return function(){VoiceQueueEvents[_0x883d('0x5')](_0x44e51f,_0x289819);};}exports[_0x883d('0x6')]=function(_0x263e7b){for(var _0x5220da=0x0,_0xe751e0=events[_0x883d('0x7')];_0x5220da<_0xe751e0;_0x5220da++){var _0x2c2189=events[_0x5220da];var _0x25c138=createListener(_0x883d('0x8')+_0x2c2189,_0x263e7b);VoiceQueueEvents['on'](_0x2c2189,_0x25c138);}};