Transit time in Panama City


I'm trying to organise flights between Dubai and Cartagena for December this year. Our travel agent has given us two alternatives via LAX and JFK. Both flights leaving the States are with Copa Airlines and transit through Panama City. The flight from JFK gets into Panama City at 19:30 and our flight to Cartagena leaves at 21:12.

The flight from LAX gets in at 20:00 and the Cartagena flight leaves at 21:12. We will be travelling business class.

It doesn't look like enough transit time to me but perhaps someone in TA land has done these trips and can advise?