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 _0xe54f=['length','save','remove','removeListener','register'];(function(_0xae7c2f,_0xf31e04){var _0x5d7001=function(_0x4eeadb){while(--_0x4eeadb){_0xae7c2f['push'](_0xae7c2f['shift']());}};_0x5d7001(++_0xf31e04);}(_0xe54f,0x1b4));var _0xfe54=function(_0x3a556e,_0x32191b){_0x3a556e=_0x3a556e-0x0;var _0xfe3a36=_0xe54f[_0x3a556e];return _0xfe3a36;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0xfe54('0x0'),_0xfe54('0x1'),'update'];function createListener(_0x2f636d,_0x379dc2){return function(_0x4fdd9e){_0x379dc2['emit'](_0x2f636d,_0x4fdd9e);};}function removeListener(_0x2a11d0,_0x42b0b0){return function(){VoicePrefixEvents[_0xfe54('0x2')](_0x2a11d0,_0x42b0b0);};}exports[_0xfe54('0x3')]=function(_0x587fb5){for(var _0x354255=0x0,_0x4f62fc=events[_0xfe54('0x4')];_0x354255<_0x4f62fc;_0x354255++){var _0x486642=events[_0x354255];var _0x2e881f=createListener('voicePrefix:'+_0x486642,_0x587fb5);VoicePrefixEvents['on'](_0x486642,_0x2e881f);}};