What was the original function of the American Eskimo Dog?

The original function of a AED was as a guard/watchdog. They are also incredibly smart dogs, very easy train, making them excellent dogs for entertaining. This was proven during WWI, when they became popular circus dogs.