Built motion from commit 14588770.|2.5.38
[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 _0x6e9c=['./voiceQueue.events','save','remove','update','emit','removeListener','register','length','voiceQueue:'];(function(_0x29fc45,_0x1d010b){var _0x512a89=function(_0x3722f2){while(--_0x3722f2){_0x29fc45['push'](_0x29fc45['shift']());}};_0x512a89(++_0x1d010b);}(_0x6e9c,0xbd));var _0xc6e9=function(_0x1d63b0,_0x5a1f5e){_0x1d63b0=_0x1d63b0-0x0;var _0x2c5970=_0x6e9c[_0x1d63b0];return _0x2c5970;};'use strict';var VoiceQueueEvents=require(_0xc6e9('0x0'));var events=[_0xc6e9('0x1'),_0xc6e9('0x2'),_0xc6e9('0x3')];function createListener(_0x25d774,_0x32b518){return function(_0x2e8ae3){_0x32b518[_0xc6e9('0x4')](_0x25d774,_0x2e8ae3);};}function removeListener(_0x2fa3df,_0x414797){return function(){VoiceQueueEvents[_0xc6e9('0x5')](_0x2fa3df,_0x414797);};}exports[_0xc6e9('0x6')]=function(_0x5ac46e){for(var _0x4f6866=0x0,_0x488da0=events[_0xc6e9('0x7')];_0x4f6866<_0x488da0;_0x4f6866++){var _0x1d5817=events[_0x4f6866];var _0x35344d=createListener(_0xc6e9('0x8')+_0x1d5817,_0x5ac46e);VoiceQueueEvents['on'](_0x1d5817,_0x35344d);}};