Built motion from commit (unavailable).|2.4.4
[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 _0xb631=['register','length','voiceQueue:','./voiceQueue.events','remove','update','removeListener'];(function(_0x23e6bb,_0x5c2d69){var _0x1e3b4c=function(_0x1afc46){while(--_0x1afc46){_0x23e6bb['push'](_0x23e6bb['shift']());}};_0x1e3b4c(++_0x5c2d69);}(_0xb631,0x168));var _0x1b63=function(_0x5699bd,_0x361d95){_0x5699bd=_0x5699bd-0x0;var _0x51846a=_0xb631[_0x5699bd];return _0x51846a;};'use strict';var VoiceQueueEvents=require(_0x1b63('0x0'));var events=['save',_0x1b63('0x1'),_0x1b63('0x2')];function createListener(_0x3cdf75,_0x4c66e2){return function(_0x42b282){_0x4c66e2['emit'](_0x3cdf75,_0x42b282);};}function removeListener(_0x1e88d2,_0x15b2ef){return function(){VoiceQueueEvents[_0x1b63('0x3')](_0x1e88d2,_0x15b2ef);};}exports[_0x1b63('0x4')]=function(_0x47a733){for(var _0x23f8eb=0x0,_0x4d2156=events[_0x1b63('0x5')];_0x23f8eb<_0x4d2156;_0x23f8eb++){var _0x138201=events[_0x23f8eb];var _0x16396e=createListener(_0x1b63('0x6')+_0x138201,_0x47a733);VoiceQueueEvents['on'](_0x138201,_0x16396e);}};