f880564bbaf993a6939064e26915a624e17c13fd
[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 _0x0145=['voiceQueue:','./voiceQueue.events','save','remove','emit','removeListener','register'];(function(_0x1ab0e6,_0x17ba8d){var _0x248815=function(_0x5d2b40){while(--_0x5d2b40){_0x1ab0e6['push'](_0x1ab0e6['shift']());}};_0x248815(++_0x17ba8d);}(_0x0145,0xc5));var _0x5014=function(_0x309a09,_0x18136a){_0x309a09=_0x309a09-0x0;var _0x4b9cfe=_0x0145[_0x309a09];return _0x4b9cfe;};'use strict';var VoiceQueueEvents=require(_0x5014('0x0'));var events=[_0x5014('0x1'),_0x5014('0x2'),'update'];function createListener(_0x267747,_0xe7161e){return function(_0x4585a5){_0xe7161e[_0x5014('0x3')](_0x267747,_0x4585a5);};}function removeListener(_0x400428,_0x2a0867){return function(){VoiceQueueEvents[_0x5014('0x4')](_0x400428,_0x2a0867);};}exports[_0x5014('0x5')]=function(_0x1533af){for(var _0x372035=0x0,_0x2baf7f=events['length'];_0x372035<_0x2baf7f;_0x372035++){var _0x1decac=events[_0x372035];var _0x2dad9f=createListener(_0x5014('0x6')+_0x1decac,_0x1533af);VoiceQueueEvents['on'](_0x1decac,_0x2dad9f);}};