Built motion from commit e1760111.|2.6.18
[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 _0x0b35=['save','update','removeListener','register','length','voiceQueue:'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0x0b35,0x10e));var _0x50b3=function(_0x56fbaa,_0x3bc5a6){_0x56fbaa=_0x56fbaa-0x0;var _0x49fbc1=_0x0b35[_0x56fbaa];return _0x49fbc1;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0x50b3('0x0'),'remove',_0x50b3('0x1')];function createListener(_0x1bd764,_0x11f0e2){return function(_0x2d91f5){_0x11f0e2['emit'](_0x1bd764,_0x2d91f5);};}function removeListener(_0x18cbdf,_0x48054e){return function(){VoiceQueueEvents[_0x50b3('0x2')](_0x18cbdf,_0x48054e);};}exports[_0x50b3('0x3')]=function(_0x3776f6){for(var _0x23e6c9=0x0,_0x12ec84=events[_0x50b3('0x4')];_0x23e6c9<_0x12ec84;_0x23e6c9++){var _0x2fb67d=events[_0x23e6c9];var _0x232e81=createListener(_0x50b3('0x5')+_0x2fb67d,_0x3776f6);VoiceQueueEvents['on'](_0x2fb67d,_0x232e81);}};