This is commonly called "post call survey". Perhaps searching for that would help.
Cisco have such a feature in CVP 8.0. Without a built in feature, you would have to modify the "Drop" action at the agent's desktop, or have the agent perform a blind transfer to a route point to run a new script instead of dropping the customer.
These are the paths to get to each CCX logs through CLI. They may be helpful if you are having issues accessing RTMT or downloading logs through it.
If you want to download them you have to prefix "file get " and you can add one of the options (re...