Built motion from commit (unavailable).|2.3.1
[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 _0x8396=['./voiceQueue.events','save','remove','emit','removeListener','register','voiceQueue:'];(function(_0xbd6e0f,_0x58fb03){var _0x3f5e97=function(_0x1d66dd){while(--_0x1d66dd){_0xbd6e0f['push'](_0xbd6e0f['shift']());}};_0x3f5e97(++_0x58fb03);}(_0x8396,0x134));var _0x6839=function(_0x478973,_0x24f842){_0x478973=_0x478973-0x0;var _0x33d3e5=_0x8396[_0x478973];return _0x33d3e5;};'use strict';var VoiceQueueEvents=require(_0x6839('0x0'));var events=[_0x6839('0x1'),_0x6839('0x2'),'update'];function createListener(_0x4e1988,_0x4bafa0){return function(_0x2378f5){_0x4bafa0[_0x6839('0x3')](_0x4e1988,_0x2378f5);};}function removeListener(_0x146c45,_0x9942f6){return function(){VoiceQueueEvents[_0x6839('0x4')](_0x146c45,_0x9942f6);};}exports[_0x6839('0x5')]=function(_0x2e57ac){for(var _0x5d5c70=0x0,_0x6e784a=events['length'];_0x5d5c70<_0x6e784a;_0x5d5c70++){var _0x212db7=events[_0x5d5c70];var _0x208077=createListener(_0x6839('0x6')+_0x212db7,_0x2e57ac);VoiceQueueEvents['on'](_0x212db7,_0x208077);}};