Business-software firm Freshworks cuts about 500 jobs, citing AI-driven automation and industry disruption.