The human resources software company cited artificial intelligence investments and global expansion as reasons for the cuts.