Exact solutions of the time-dependent Schroedinger equation with self-consistent potential