A dog has been rescued from a hot car and is being comforted by its owners.