India men's and women's teams won the Chess Olympiad gold medals for the first time in their history.