Charger-mediated energy transfer in exactly solvable models for quantum batteries