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 _0x149c=['register','length','voicePrefix:','./voicePrefix.events','remove','update','emit','removeListener'];(function(_0x166374,_0x5d1daa){var _0x23712d=function(_0xf215ab){while(--_0xf215ab){_0x166374['push'](_0x166374['shift']());}};_0x23712d(++_0x5d1daa);}(_0x149c,0x143));var _0xc149=function(_0x2da746,_0x2e348d){_0x2da746=_0x2da746-0x0;var _0x5c9be4=_0x149c[_0x2da746];return _0x5c9be4;};'use strict';var VoicePrefixEvents=require(_0xc149('0x0'));var events=['save',_0xc149('0x1'),_0xc149('0x2')];function createListener(_0x35e9b8,_0x4f5a90){return function(_0x3b8ac6){_0x4f5a90[_0xc149('0x3')](_0x35e9b8,_0x3b8ac6);};}function removeListener(_0x19a7cb,_0x298415){return function(){VoicePrefixEvents[_0xc149('0x4')](_0x19a7cb,_0x298415);};}exports[_0xc149('0x5')]=function(_0x3b5e34){for(var _0x5e9b5c=0x0,_0x578cec=events[_0xc149('0x6')];_0x5e9b5c<_0x578cec;_0x5e9b5c++){var _0x34710e=events[_0x5e9b5c];var _0x3a1739=createListener(_0xc149('0x7')+_0x34710e,_0x3b5e34);VoicePrefixEvents['on'](_0x34710e,_0x3a1739);}};