And your question is how to go about repairing it? Depoxy wont stop the leak. Why does the housing seem grinded? any external hit? Looking at the pictures, seems like transmission has been taken apart and put back poorly. It will requiring taking it back apart, cleaning the mating surfaces properly, apply transmission fluid compatible RTV (making sure it does not ooze inside), assembled and torqued back to factory spec.
Normal RTV or "silikaan" is not compatible with transmission fluid, will degrade and clog transmission.