Extragalactic and galactic gamma-rays and neutrinos from annihilating dark matter