You asked:

what is meant by the term harassment

The word 'harassment' has a couple of distinct uses: as a noun, 1. a feeling of intense annoyance caused by being tormented; 2. the act of tormenting by continued persistent attacks and criticism.