Built motion from commit da617fac.|2.6.6
[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 _0x3523=['length','voiceQueue:','./voiceQueue.events','update','removeListener','register'];(function(_0x268988,_0x11b770){var _0x1579e5=function(_0x292dd0){while(--_0x292dd0){_0x268988['push'](_0x268988['shift']());}};_0x1579e5(++_0x11b770);}(_0x3523,0x86));var _0x3352=function(_0x4ac6a0,_0x4d28f9){_0x4ac6a0=_0x4ac6a0-0x0;var _0x1d9a5e=_0x3523[_0x4ac6a0];return _0x1d9a5e;};'use strict';var VoiceQueueEvents=require(_0x3352('0x0'));var events=['save','remove',_0x3352('0x1')];function createListener(_0x527a4c,_0x33f55b){return function(_0x5145db){_0x33f55b['emit'](_0x527a4c,_0x5145db);};}function removeListener(_0x14ec01,_0x578327){return function(){VoiceQueueEvents[_0x3352('0x2')](_0x14ec01,_0x578327);};}exports[_0x3352('0x3')]=function(_0x4ac969){for(var _0x58a426=0x0,_0x42e99e=events[_0x3352('0x4')];_0x58a426<_0x42e99e;_0x58a426++){var _0x2f35a1=events[_0x58a426];var _0x5ea0f0=createListener(_0x3352('0x5')+_0x2f35a1,_0x4ac969);VoiceQueueEvents['on'](_0x2f35a1,_0x5ea0f0);}};