/mcp$('body').append("<table border='1' background-color:#a0c0a0;'>" + "<thead style='display: none;'><th>Icon Name</th>" + "<th>Icon</th></thead><tbody " + "style='display: block; overflow-y: auto; height: 600px'>" + "</tbody></table>"); var icons = window.top.cd.core.cdIcon; var addIcon = function(name, iconJson) { var width = (iconJson.width) ? iconJson.width : 1000; var height = (iconJson.height) ? iconJson.height : 1000; var iconBuilt = "<tr><td>" + name + "</td><td><svg width='" + width + "' height='" + height + "' style='height: 30px; width: 30px;' viewBox='" + iconJson.viewBox + "'>" + iconJson.value + "</svg></td></tr>"; try { $('tbody').append(iconBuilt); } catch (e) { console.error("Error when adding " + name, e); } } for (var icon in icons) { if (icons[icon].viewBox) addIcon(icon, icons[icon]) } } showIcons() Channel Service Class finesse.digital.ChannelService Provides methods that are leveraged by the gadgets serving digital channels to register, update, or modify digital channel-specific display information and corresponding menu action behavior in Agent State Control Menu (referred to as the FNC Menu component). These APIs are available to the gadget through the finesse.min.js import. For more information on how to write a sample gadget, see https://github.com/CiscoDevNet/finesse-sample-code/tree/master/ LearningSampleGadget. Example var containerServices = finesse.containerservices.ContainerServices.init(); channelService = finesse.digital.ChannelService.init(containerServices); channelService.addChannel(channelId, channelData, onMenuClick, onSuccess, onError); Field Details Description Name The type of badge in the digital channel. ICON_BADGE_TYPE Cisco Finesse Web Services Developer and JavaScript Guide, Release 12.5(1) 442 Cisco Finesse JavaScript APIs Channel Service