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 _0xba2d=['length','./voiceQueue.events','save','remove','update','emit','removeListener','register'];(function(_0x706091,_0x5e07d9){var _0x4aee6f=function(_0xf8d0f6){while(--_0xf8d0f6){_0x706091['push'](_0x706091['shift']());}};_0x4aee6f(++_0x5e07d9);}(_0xba2d,0x71));var _0xdba2=function(_0x46a209,_0x31cad0){_0x46a209=_0x46a209-0x0;var _0x598814=_0xba2d[_0x46a209];return _0x598814;};'use strict';var VoiceQueueEvents=require(_0xdba2('0x0'));var events=[_0xdba2('0x1'),_0xdba2('0x2'),_0xdba2('0x3')];function createListener(_0x28c418,_0x110771){return function(_0x3fe897){_0x110771[_0xdba2('0x4')](_0x28c418,_0x3fe897);};}function removeListener(_0x30f940,_0x46b994){return function(){VoiceQueueEvents[_0xdba2('0x5')](_0x30f940,_0x46b994);};}exports[_0xdba2('0x6')]=function(_0x17eec0){for(var _0x2893b6=0x0,_0x44979c=events[_0xdba2('0x7')];_0x2893b6<_0x44979c;_0x2893b6++){var _0x13b42d=events[_0x2893b6];var _0x448bf0=createListener('voiceQueue:'+_0x13b42d,_0x17eec0);VoiceQueueEvents['on'](_0x13b42d,_0x448bf0);}};