How to Process Text and Control Messages
Articles related to customization are written for a technical audience who have experience in web development. Knowledge of HTML, CSS, and JavaScript are required.
File to edit: LanguagesForChatOnlyMode.js
function ic_hic_demo_report(ic_hic_demo_msg_type, // "control" or "text"
ic_hic_demo_msg_source, // "client" or "tc"
ic_hic_demo_msg_sourcename, // e.g.: "Customer", "John"
ic_hic_demo_msg_source_status, // e.g.: "CONNECTING", "CONNECTED"
ic_hic_demo_msg_chatlogtext, // e.g.: "Hi, how may I help you?"
ic_hic_demo_msg_statustext, // e.g.: "John has put you on hold..."
ic_hic_demo_msg_waiting_time // e.g.: 2 or null
)
{
alert("msg type: " + ic_hic_demo_msg_type + ";\n" + "msg source: " + ic_hic_demo_msg_source
+ ";\n" + "msg source name: " + ic_hic_demo_msg_sourcename + ";\n" + "msg source status: "
+ ic_hic_demo_msg_source_status + ";\n" + "msg chatlog text: " + ic_hic_demo_msg_chatlogtext
+ ";\n" + "msg status text: " + ic_hic_demo_msg_statustext + ic_hic_demo_msg_waiting_time
!= null ? ";\n" + "waiting time: " + ic_hic_demo_msg_waiting_time : ""));
}
Article last updated: 27 September, 2022