Seems like the authors have no idea what depression is, or where "panic attacks" come from.
Depression is more a symptom of consistent over-consumption of one or more vital ressources. When the "stocks" get dangerously low, they get into "economy mode" to prevent people from exhausving it completely. A bit like a phone when the battery charge gets low, except the person have no saying over it. That's why anti depression drugs are so dangerous and hard to prescribe.
Panic attacks are more complicated to explain but basically are a discrepancy between a person's limiting beliefs and their life experiences that where not accepted/integrated, in particular through emotions, that resurface whenever something happen connects the thought thread with those emotions.
A medication that would actually solve depression woud replenish the stocks of the missing ressources. One that would solve pannic attacks would destoy the access to some part of the memory. Seems impossible with just some chemicals alone without massive damages to the brain structure.