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 _0x3bc2=['remove','update','emit','removeListener','voiceQueue:','save'];(function(_0xd20b16,_0x5747f4){var _0x4f7e60=function(_0x17fb98){while(--_0x17fb98){_0xd20b16['push'](_0xd20b16['shift']());}};_0x4f7e60(++_0x5747f4);}(_0x3bc2,0x167));var _0x23bc=function(_0x4af932,_0xce7676){_0x4af932=_0x4af932-0x0;var _0x13da40=_0x3bc2[_0x4af932];return _0x13da40;};'use strict';var VoiceQueueEvents=require('./voiceQueue.events');var events=[_0x23bc('0x0'),_0x23bc('0x1'),_0x23bc('0x2')];function createListener(_0x5f2211,_0x5a379c){return function(_0x409c0b){_0x5a379c[_0x23bc('0x3')](_0x5f2211,_0x409c0b);};}function removeListener(_0x5699b4,_0x530146){return function(){VoiceQueueEvents[_0x23bc('0x4')](_0x5699b4,_0x530146);};}exports['register']=function(_0x4cb0f7){for(var _0x474e2c=0x0,_0x1b3bef=events['length'];_0x474e2c<_0x1b3bef;_0x474e2c++){var _0x112468=events[_0x474e2c];var _0x1b0b54=createListener(_0x23bc('0x5')+_0x112468,_0x4cb0f7);VoiceQueueEvents['on'](_0x112468,_0x1b0b54);}};