How to set Omni-Channel Status from Button using Lightning Component in Salesforce?

omniToolkitAPI can be used to set Omni-Channel Status from Button using Lightning Aura Component in Salesforce. Sample Code: Aura component: JavaScript Controller: Output: