Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-adding Agent statuses to sfIntervalAgent #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sam-app/lambda_functions/sfIntervalAgent.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ def prepare_agent_record(record_raw, current_date):
return record

def label_parser(key):

agent_status = ["Paperwork time","Training/Coaching time","Outbound Campaign time","Comfort Break time","In a meeting time","Paperwork time","On Lunch time"]

if key in agent_status:
return "%s__c" % key.replace(" ", "_").replace("/","_")

if key.lower() == 'average agent interaction and customer hold time':#To Long
return pnamespace + 'Avg_agent_interaction_and_cust_hold_time__c'

Expand Down