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 _0xcbda=['removeListener','register','length','voicePrefix:','./voicePrefix.events','save','remove','update'];(function(_0x16317e,_0x101c85){var _0x195004=function(_0xe6f93b){while(--_0xe6f93b){_0x16317e['push'](_0x16317e['shift']());}};_0x195004(++_0x101c85);}(_0xcbda,0xac));var _0xacbd=function(_0x29dce3,_0x4ab903){_0x29dce3=_0x29dce3-0x0;var _0x3b9abf=_0xcbda[_0x29dce3];return _0x3b9abf;};'use strict';var VoicePrefixEvents=require(_0xacbd('0x0'));var events=[_0xacbd('0x1'),_0xacbd('0x2'),_0xacbd('0x3')];function createListener(_0x3ba11d,_0x85e9ef){return function(_0x43857d){_0x85e9ef['emit'](_0x3ba11d,_0x43857d);};}function removeListener(_0x2f5677,_0x4e514f){return function(){VoicePrefixEvents[_0xacbd('0x4')](_0x2f5677,_0x4e514f);};}exports[_0xacbd('0x5')]=function(_0x423c7a){for(var _0x17b893=0x0,_0x3d472e=events[_0xacbd('0x6')];_0x17b893<_0x3d472e;_0x17b893++){var _0x4ed614=events[_0x17b893];var _0x1900d0=createListener(_0xacbd('0x7')+_0x4ed614,_0x423c7a);VoicePrefixEvents['on'](_0x4ed614,_0x1900d0);}};