What is this and why would it be there?

Does anyone know what the goop in my motor is? It's not any type oh epoxy I've seen before.
Is it somewhat like a plastic material?