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 _0x352e=['remove','update','emit','removeListener','length','voiceQueue:','./voiceQueue.events','save'];(function(_0x5ec09b,_0x12d654){var _0x5a8482=function(_0x3e250f){while(--_0x3e250f){_0x5ec09b['push'](_0x5ec09b['shift']());}};_0x5a8482(++_0x12d654);}(_0x352e,0x1a6));var _0xe352=function(_0xdcfbfc,_0x1547a7){_0xdcfbfc=_0xdcfbfc-0x0;var _0x1b9617=_0x352e[_0xdcfbfc];return _0x1b9617;};'use strict';var VoiceQueueEvents=require(_0xe352('0x0'));var events=[_0xe352('0x1'),_0xe352('0x2'),_0xe352('0x3')];function createListener(_0x2934bb,_0xe91dd1){return function(_0x383f5b){_0xe91dd1[_0xe352('0x4')](_0x2934bb,_0x383f5b);};}function removeListener(_0x4e85b5,_0x22f9c3){return function(){VoiceQueueEvents[_0xe352('0x5')](_0x4e85b5,_0x22f9c3);};}exports['register']=function(_0x2fed6a){for(var _0x31aac8=0x0,_0x32d7c6=events[_0xe352('0x6')];_0x31aac8<_0x32d7c6;_0x31aac8++){var _0x5b9266=events[_0x31aac8];var _0x2bd5e5=createListener(_0xe352('0x7')+_0x5b9266,_0x2fed6a);VoiceQueueEvents['on'](_0x5b9266,_0x2bd5e5);}};