From cfdfc10a55cec80ccd3909233da3f67ef49247e1 Mon Sep 17 00:00:00 2001 From: Robin Kelmen Date: Tue, 3 May 2022 15:43:55 -0500 Subject: [PATCH] -adding Agent statuses to sfIntervalAgent --- sam-app/lambda_functions/sfIntervalAgent.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sam-app/lambda_functions/sfIntervalAgent.py b/sam-app/lambda_functions/sfIntervalAgent.py index 9931db6..428a05d 100644 --- a/sam-app/lambda_functions/sfIntervalAgent.py +++ b/sam-app/lambda_functions/sfIntervalAgent.py @@ -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'