This plugin will keep track of how long a task is selected for in the Agent UI. In a multi-tasking scenario where an Agent is working multiple interactions at the same time, this plugin will track the "in focus" time for each task instead of just the task duration. The logging stops as soon as the task enters the Wrapup state. The handle time value is attached to the task as an attribute named conversation_measure_1 and is also saved in Twilio WFO.
git clone
npm install
make patch
cp public/appConfig.example.js public/appConfig.js
Edit public/appConfig.js and add your accountSid.
npm run build
Go to your Twilio Assets and deploy the plugin-handleTimeTracker.js file from the /build directory.
7/8/2019 - v1.0 - Initial Release
10/22/2019 - v2.0 - Version 1.0 of this plugin had some major flaws that required a redesign of the entire plugin. Version 2.0 should work much more reliably.