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 _0xb7e8=['remove','removeListener','register','length','./voicePrefix.events'];(function(_0x114dbf,_0x3dd101){var _0x5953c9=function(_0x39aeb0){while(--_0x39aeb0){_0x114dbf['push'](_0x114dbf['shift']());}};_0x5953c9(++_0x3dd101);}(_0xb7e8,0x1b2));var _0x8b7e=function(_0x325501,_0x5242f6){_0x325501=_0x325501-0x0;var _0x2c1626=_0xb7e8[_0x325501];return _0x2c1626;};'use strict';var VoicePrefixEvents=require(_0x8b7e('0x0'));var events=['save',_0x8b7e('0x1'),'update'];function createListener(_0x1f74f2,_0x1dee8c){return function(_0x28e16b){_0x1dee8c['emit'](_0x1f74f2,_0x28e16b);};}function removeListener(_0x7707f7,_0x1ba987){return function(){VoicePrefixEvents[_0x8b7e('0x2')](_0x7707f7,_0x1ba987);};}exports[_0x8b7e('0x3')]=function(_0x20ffac){for(var _0x1acc55=0x0,_0x3c6c61=events[_0x8b7e('0x4')];_0x1acc55<_0x3c6c61;_0x1acc55++){var _0xe8d4b9=events[_0x1acc55];var _0x40e3ca=createListener('voicePrefix:'+_0xe8d4b9,_0x20ffac);VoicePrefixEvents['on'](_0xe8d4b9,_0x40e3ca);}};