JSFiddle - React, Tailwind, and code Playground

by Brian Houlihan

HTML

<script src="//pamperedchef--tst.widget.custhelp.com/euf/rightnow/RightNow.Client.js"></script>
<div id="myChatLinkContainer">
    <div id="myChatLink">
        <div id="myChatLinkInfo">
        </div>
    </div>
</div>

JavaScript

RightNow.Client.Controller.addComponent(
        {
            container_element_id: "myChatLinkContainer",
            info_element_id: "myChatLinkInfo",
            link_element_id: "myChatLink",
            instance_id: "sccl_0",
            module: "ConditionalChatLink",
            ignore_preroute: true,
            type: 7, 
            wait_threshold: 2700,
			min_sessions_avail: 0,
            label_available_immediately_template: "Available: Time: {TIME}, Num Minutes: {NUM_MINUTES}, Minutes: {MINUTES}, Num Seconds: {NUM_SECONDS}, Seconds: {SECONDS}",
            label_unavailable_busy_template: "Busy: Time: {TIME}, Num Minutes: {NUM_MINUTES}, Minutes: {MINUTES}, Num Seconds: {NUM_SECONDS}, Seconds: {SECONDS}",
        },
        "//pamperedchef--tst.widget.custhelp.com/ci/ws/get"
    );