There are two kinds of single sign-on for customers.
1. Single sign-on to a specific department Two parameters needs configuration in the generated code. Here is an example, var init_room =1; var init_user ="tom"; "init_user" represents the customer name for single sign-on, and mostly we set variable for init_user to get the customer name from cookies or sessions. "init_room" represents the department_ID, you can get the department_ID in Department Panel of your admin panel. 2. Single sign-on to start private chat with a specific operatorThree parameters needs configuration in the generated code. Here is an example, var button_assign_type = BUTTON_ASSIGN_STAFF; var pre_staff_id = "operatorb"; var init_user ="tom"; "butto_assign_type = BUTTON_ASSIGN_STAFF" is fixed, which means single sign-on and start a private chat with a specific operator, no need to enter a department and wait in queue. "Pre_staff_id" represents the operator name, if not available now, the chat will be transferred to an online operator automatically. "init_user" is the represents the customer name.ng. |