When a group of South Florida lawyers found out a nearly 50-year-old Miami crisis intervention nonprofit was at risk of closing its doors, they jumped into action.

Three law firms and an assignee donated hundreds of hours of work to keep Switchboard of Miami Inc. running, working quickly to obtain court approval to sell the financially strapped organization’s assets to Jewish Community Services of South Florida Inc. The deal closed Monday.