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 _0xb11e=['update','emit','removeListener','length','voicePrefix:','./voicePrefix.events','save','remove'];(function(_0x5c883f,_0x38f092){var _0x4210cc=function(_0x51be71){while(--_0x51be71){_0x5c883f['push'](_0x5c883f['shift']());}};_0x4210cc(++_0x38f092);}(_0xb11e,0x7d));var _0xeb11=function(_0x1e7a5c,_0xbb4ad6){_0x1e7a5c=_0x1e7a5c-0x0;var _0x150274=_0xb11e[_0x1e7a5c];return _0x150274;};'use strict';var VoicePrefixEvents=require(_0xeb11('0x0'));var events=[_0xeb11('0x1'),_0xeb11('0x2'),_0xeb11('0x3')];function createListener(_0xa5f1cb,_0x47e4c3){return function(_0x5753d5){_0x47e4c3[_0xeb11('0x4')](_0xa5f1cb,_0x5753d5);};}function removeListener(_0x12aded,_0x15f0d8){return function(){VoicePrefixEvents[_0xeb11('0x5')](_0x12aded,_0x15f0d8);};}exports['register']=function(_0x252e4f){for(var _0x5c54d8=0x0,_0x53b7a1=events[_0xeb11('0x6')];_0x5c54d8<_0x53b7a1;_0x5c54d8++){var _0x4994a2=events[_0x5c54d8];var _0x5e5648=createListener(_0xeb11('0x7')+_0x4994a2,_0x252e4f);VoicePrefixEvents['on'](_0x4994a2,_0x5e5648);}};