Receive a letter offering employment from the Swiss company and accept the offer.
Receive a pre-authorization for a residency permit from the potential employer. The company will apply for and get this permit. Also, receive the employment contract.
Bring the pre-authorization for a residency permit and employment contract with you to the country. Take the documents with you to the local cantonal authority where you will be working. This is the person who will provide you with the residency/work permit application. Fill it out and present the other documents as well. The application approval process can take several months.