Preheat your oven to 375°F (190°C).
In a large skillet, heat the olive oil over medium heat.
Add the sliced onions and cook until they are soft and caramelized, about 15-20 minutes.
Remove half of the caramelized onions and set aside for later.
Add the chicken pieces to the skillet with the remaining onions. Cook until the chicken is browned on all sides.
Stir in the ground cumin, ground coriander, ground cinnamon, ground allspice, ground turmeric, black pepper, and salt. Mix well.
Pour in the pomegranate molasses and stir to combine.
Transfer the chicken and onion mixture to a baking dish and cover with aluminum foil.
Bake in the preheated oven for 30-40 minutes, or until the chicken is cooked through and tender.
Heat the flatbreads or pita bread in the oven for a few minutes until warm.
To serve, place the warm flatbreads on a large serving platter.
Spoon the chicken and caramelized onions over the flatbreads.
Garnish with the reserved caramelized onions, toasted pine nuts, and chopped fresh parsley.
Enjoy your meal!