A childminder who admitted to wilfully neglecting and abandoning children in her care has been jailed for two years.