I was just prescribed 10mg AMITRIPTYLINE

I (F19) said to my doctor my pain is awful and my laparoscopy is in November. Is there anything I can do and she said I think I have an idea and prescribed me this antidepressant to take every day at night.

Has anyone else been prescribed this for their Endo? I’m so confused.