Facilitating change of employment for foreigners in the state of emergency