samsung smj330fn Help needed

so i have a disposal phone from my moms company,
i tried flashing it but everytime the phone starts up it automatically starts up the company program.
so you cant actually go to the home screen of the phone.
i did manage to go the the settings but im also not able to enable developer mode
is mdm/knox blocking this?

is there any way to fully reset the phone, flashing just gives me the message that an unauthorized attempt was made to reset the phone