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 _0xefe3=['./voicePrefix.events','emit','register','length','voicePrefix:'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xefe3,0xf5));var _0x3efe=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xefe3[_0x122ef9];return _0x42fba0;};'use strict';var VoicePrefixEvents=require(_0x3efe('0x0'));var events=['save','remove','update'];function createListener(_0x336f0f,_0xcd5959){return function(_0x28c2d6){_0xcd5959[_0x3efe('0x1')](_0x336f0f,_0x28c2d6);};}function removeListener(_0x48d77b,_0x11125f){return function(){VoicePrefixEvents['removeListener'](_0x48d77b,_0x11125f);};}exports[_0x3efe('0x2')]=function(_0x4b5006){for(var _0x3a1c0a=0x0,_0x60487e=events[_0x3efe('0x3')];_0x3a1c0a<_0x60487e;_0x3a1c0a++){var _0x195d5d=events[_0x3a1c0a];var _0x30d2e8=createListener(_0x3efe('0x4')+_0x195d5d,_0x4b5006);VoicePrefixEvents['on'](_0x195d5d,_0x30d2e8);}};