Complex sentence: Jim briefly transfers to Stamford branch after Pam confirmed her commitment to Roy, before corporate is forced to merge the Stamford branch and staff into the Scranton branch.
Split into simpler sentences: Jim briefly transfers to Stamford branch after Pam confirms her commitment to Roy. Corporate is later forced to merge the Stamford branch and staff into the Scranton branch.