Integrability and global dynamics of the May-Leonard model