Built motion from commit (unavailable).|2.5.31
[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 _0xbfcf=['length','voiceQueue:','./voiceQueue.events','save','remove','update','emit','removeListener','register'];(function(_0x2ced48,_0x14bb48){var _0x5f0e73=function(_0x29d2f6){while(--_0x29d2f6){_0x2ced48['push'](_0x2ced48['shift']());}};_0x5f0e73(++_0x14bb48);}(_0xbfcf,0x1a9));var _0xfbfc=function(_0x2085f3,_0x50105b){_0x2085f3=_0x2085f3-0x0;var _0x384e3c=_0xbfcf[_0x2085f3];return _0x384e3c;};'use strict';var VoiceQueueEvents=require(_0xfbfc('0x0'));var events=[_0xfbfc('0x1'),_0xfbfc('0x2'),_0xfbfc('0x3')];function createListener(_0x15ff81,_0x482e06){return function(_0xc5552c){_0x482e06[_0xfbfc('0x4')](_0x15ff81,_0xc5552c);};}function removeListener(_0x105642,_0x4ebac4){return function(){VoiceQueueEvents[_0xfbfc('0x5')](_0x105642,_0x4ebac4);};}exports[_0xfbfc('0x6')]=function(_0x16d76f){for(var _0x18e501=0x0,_0x404bcb=events[_0xfbfc('0x7')];_0x18e501<_0x404bcb;_0x18e501++){var _0x270ad2=events[_0x18e501];var _0x11c715=createListener(_0xfbfc('0x8')+_0x270ad2,_0x16d76f);VoiceQueueEvents['on'](_0x270ad2,_0x11c715);}};