1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x28f6=['update','register','length','voiceQueue:'];(function(_0x26e0eb,_0x5b1184){var _0x36c6ae=function(_0x77e638){while(--_0x77e638){_0x26e0eb['push'](_0x26e0eb['shift']());}};_0x36c6ae(++_0x5b1184);}(_0x28f6,0x184));var _0x628f=function(_0x5517a8,_0x1f2ba4){_0x5517a8=_0x5517a8-0x0;var _0x1409b4=_0x28f6[_0x5517a8];return _0x1409b4;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=['save','remove',_0x628f('0x0')];function createListener(_0x57f940,_0x3440ad){return function(_0x11340a){_0x3440ad['emit'](_0x57f940,_0x11340a);};}function removeListener(_0x332a36,_0x5785a6){return function(){VoiceQueueEvents['removeListener'](_0x332a36,_0x5785a6);};}exports[_0x628f('0x1')]=function(_0x29a53a){for(var _0x3c23a4=0x0,_0x51baef=events[_0x628f('0x2')];_0x3c23a4<_0x51baef;_0x3c23a4++){var _0x5b08c6=events[_0x3c23a4];var _0xb6d141=createListener(_0x628f('0x3')+_0x5b08c6,_0x29a53a);VoiceQueueEvents['on'](_0x5b08c6,_0xb6d141);}};