The regular hexagon $ABCDEF$ has center $G$. Each of the vertices and the center is assigned one of the digits $1$ through $7$, each used once, so that the sums of the numbers on the lines $AGD$, $BGE$, and $CGF$ are equal. In how many ways can this be done?