Built motion from commit 5ae82ce5.|2.6.7
[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 _0x0094=['./voiceQueue.events','save','remove','update','emit','removeListener','register','length','voiceQueue:'];(function(_0x4baae2,_0x487ab6){var _0x1a2285=function(_0x1cea47){while(--_0x1cea47){_0x4baae2['push'](_0x4baae2['shift']());}};_0x1a2285(++_0x487ab6);}(_0x0094,0x1e6));var _0x4009=function(_0x10626e,_0x5d5d84){_0x10626e=_0x10626e-0x0;var _0x4b2b33=_0x0094[_0x10626e];return _0x4b2b33;};'use strict';var VoiceQueueEvents=require(_0x4009('0x0'));var events=[_0x4009('0x1'),_0x4009('0x2'),_0x4009('0x3')];function createListener(_0x4dad66,_0x1b3d3e){return function(_0x46a23f){_0x1b3d3e[_0x4009('0x4')](_0x4dad66,_0x46a23f);};}function removeListener(_0x29dd4d,_0x5419f9){return function(){VoiceQueueEvents[_0x4009('0x5')](_0x29dd4d,_0x5419f9);};}exports[_0x4009('0x6')]=function(_0x21b334){for(var _0x75faf0=0x0,_0xfcb34=events[_0x4009('0x7')];_0x75faf0<_0xfcb34;_0x75faf0++){var _0x109e6a=events[_0x75faf0];var _0x4cb98e=createListener(_0x4009('0x8')+_0x109e6a,_0x21b334);VoiceQueueEvents['on'](_0x109e6a,_0x4cb98e);}};