Say we want to show the chat button with Faqprime only between 10 AM - 6 PM only on weekdays. Here is the sample code which you can add after the Faqprime Code.
var faqbottoday = new Date();
var faqbottodaygmt = faqbottoday.getHours() + (faqbottoday.getMinutes() / 60) + (faqbottoday.getTimezoneOffset() / 60);
var faqbottodayday = faqbottoday.getDay();
// 10AM IST is 4.5 in GMT and 6PM IST is 12.5 in GMT
if ((faqbottodaygmt <4.5) || (faqbottodaygmt > 12.5) || (faqbottodayday > 5) || (faqbottodayday <1))
// This block can be used to have any control based on time and day.
var faqbotChatCode = "false";