I work for a company that provides a service that is considered morally objectionable by some Rabbis (see Gambling at casino). The work I do is generic, in that the output could potentially be used to undertake other kinds of business; however, the company chooses to implement gambling products.
If we assume that all gambling is forbidden (see Gambling at casino again), am I violating Halachah by being an employee of a company that profits from gambling? If the company is "stealing", am I indirectly stealing by accepting my salary from them?
I can think of a couple of things which may help me to justify my employment in terms of Halachah:
- My salary is fixed - I get paid the same no matter how well or poorly the company does.
- I don't receive a bonus if we sell a lot of tickets.
- I don't own shares in the company.
- I'm not the one doing the selling. Technically, my employer buys my time/skill and decides what to sell with it.
- People will gamble whether I work there or not.
My situation is just an example. I can think of a few other situations which I believe are similar, such as a carpenter who builds a house that is used as a brothel.