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 _0x623d=['voiceQueue:','./voiceQueue.events','save','remove','update','emit','removeListener','length'];(function(_0x313096,_0x2a6253){var _0x31941c=function(_0x48fb46){while(--_0x48fb46){_0x313096['push'](_0x313096['shift']());}};_0x31941c(++_0x2a6253);}(_0x623d,0x109));var _0xd623=function(_0x4ea69d,_0x290f53){_0x4ea69d=_0x4ea69d-0x0;var _0x5318e0=_0x623d[_0x4ea69d];return _0x5318e0;};'use strict';var VoiceQueueEvents=require(_0xd623('0x0'));var events=[_0xd623('0x1'),_0xd623('0x2'),_0xd623('0x3')];function createListener(_0x53f496,_0x97a825){return function(_0x4495ad){_0x97a825[_0xd623('0x4')](_0x53f496,_0x4495ad);};}function removeListener(_0x3474cb,_0x468397){return function(){VoiceQueueEvents[_0xd623('0x5')](_0x3474cb,_0x468397);};}exports['register']=function(_0x3d7f9c){for(var _0x43a580=0x0,_0xeabb6c=events[_0xd623('0x6')];_0x43a580<_0xeabb6c;_0x43a580++){var _0x4b46c8=events[_0x43a580];var _0x4a1059=createListener(_0xd623('0x7')+_0x4b46c8,_0x3d7f9c);VoiceQueueEvents['on'](_0x4b46c8,_0x4a1059);}};