I am certain that you pay taxes on revenue, not on profit.
Businesses pay tax on profit, not revenue.
The company pays taxes on its income, but the salaries are generally deductible from the income that the company is taxed on (as are a whole bunch of other expenses).