Unitary And Dissipative Trapped-Ion Entanglement Using Integrated Optics