Answer:
ATP works as the donor of the phosphate group.
Explanation:
Since the ATP is a highly energetic molecule, to take one group phosphate from it, is a process that is exergonic. This is the part in which the hydrolysis is used to phosphorylate glucose.
Later, when the enzyme raises the activation energy to favor the formation of glucose 6 - phosphate, this is a reaction that in thermodynamic terms is not in favor, so is an endergonic reaction.
Hope this info is useful.