Built motion from commit 25580385.|2.6.2
[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 _0x063a=['length','save','remove','emit','removeListener','register'];(function(_0x32aaeb,_0x2377fc){var _0x4b3040=function(_0x53ec07){while(--_0x53ec07){_0x32aaeb['push'](_0x32aaeb['shift']());}};_0x4b3040(++_0x2377fc);}(_0x063a,0x109));var _0xa063=function(_0x3f2891,_0x39d306){_0x3f2891=_0x3f2891-0x0;var _0x40dd13=_0x063a[_0x3f2891];return _0x40dd13;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0xa063('0x0'),_0xa063('0x1'),'update'];function createListener(_0x2a3f44,_0x1f779e){return function(_0xdcf2df){_0x1f779e[_0xa063('0x2')](_0x2a3f44,_0xdcf2df);};}function removeListener(_0x8c18f6,_0xcb0c5c){return function(){VoiceQueueEvents[_0xa063('0x3')](_0x8c18f6,_0xcb0c5c);};}exports[_0xa063('0x4')]=function(_0x5c85c5){for(var _0x668f91=0x0,_0x1ba662=events[_0xa063('0x5')];_0x668f91<_0x1ba662;_0x668f91++){var _0x2c4dde=events[_0x668f91];var _0x366abc=createListener('voiceQueue:'+_0x2c4dde,_0x5c85c5);VoiceQueueEvents['on'](_0x2c4dde,_0x366abc);}};