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 _0x3fdc=['remove','update','emit','removeListener','length','./voicePrefix.events'];(function(_0x56f416,_0x203312){var _0x2ac95f=function(_0x3da81d){while(--_0x3da81d){_0x56f416['push'](_0x56f416['shift']());}};_0x2ac95f(++_0x203312);}(_0x3fdc,0x7d));var _0xc3fd=function(_0x1d68a1,_0x434351){_0x1d68a1=_0x1d68a1-0x0;var _0x28b172=_0x3fdc[_0x1d68a1];return _0x28b172;};'use strict';var VoicePrefixEvents=require(_0xc3fd('0x0'));var events=['save',_0xc3fd('0x1'),_0xc3fd('0x2')];function createListener(_0x2e5469,_0x3ee5f7){return function(_0xeb29e){_0x3ee5f7[_0xc3fd('0x3')](_0x2e5469,_0xeb29e);};}function removeListener(_0x166352,_0x43e75a){return function(){VoicePrefixEvents[_0xc3fd('0x4')](_0x166352,_0x43e75a);};}exports['register']=function(_0x3d4fac){for(var _0x48be61=0x0,_0x1c3bdf=events[_0xc3fd('0x5')];_0x48be61<_0x1c3bdf;_0x48be61++){var _0x4818f3=events[_0x48be61];var _0x1e4966=createListener('voicePrefix:'+_0x4818f3,_0x3d4fac);VoicePrefixEvents['on'](_0x4818f3,_0x1e4966);}};