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 _0xe35c=['emit','length','./voicePrefix.events','save','remove','update'];(function(_0x27fb9b,_0x15a6d4){var _0x68ecb=function(_0xef82d){while(--_0xef82d){_0x27fb9b['push'](_0x27fb9b['shift']());}};_0x68ecb(++_0x15a6d4);}(_0xe35c,0xf2));var _0xce35=function(_0x38f6bc,_0xbe2120){_0x38f6bc=_0x38f6bc-0x0;var _0x5661bf=_0xe35c[_0x38f6bc];return _0x5661bf;};'use strict';var VoicePrefixEvents=require(_0xce35('0x0'));var events=[_0xce35('0x1'),_0xce35('0x2'),_0xce35('0x3')];function createListener(_0x2a76e9,_0x478066){return function(_0x223682){_0x478066[_0xce35('0x4')](_0x2a76e9,_0x223682);};}function removeListener(_0x47174f,_0x231906){return function(){VoicePrefixEvents['removeListener'](_0x47174f,_0x231906);};}exports['register']=function(_0x3473aa){for(var _0x524e95=0x0,_0x5285d1=events[_0xce35('0x5')];_0x524e95<_0x5285d1;_0x524e95++){var _0x4b8cf3=events[_0x524e95];var _0x9737c8=createListener('voicePrefix:'+_0x4b8cf3,_0x3473aa);VoicePrefixEvents['on'](_0x4b8cf3,_0x9737c8);}};