An antidepressant is a type of medication that is used to treat people with mood disorders including depression . An antidepressant is a psychiatric medication used to alleviate mood disorders , such as major depression and dysthymia and anxiety disorders such as social anxiety disorder .