Control and management of entry, residence, and exit of persons; issuance of work permits and residence permits; border control