def fill_application_tab(queue): common.go_to_tab('Application') if CALLEE_TRANSFER in queue: callee_transfer = (queue[CALLEE_TRANSFER] == 'true') set_checkbox_with_id('it-queuefeatures-hitting-callee', callee_transfer) if CALLER_HANGUP in queue: caller_hangup = (queue[CALLER_HANGUP] == 'true') set_checkbox_with_id('it-queuefeatures-hitting-caller', caller_hangup)
def fill_advanced_tab(queue): common.go_to_tab('Advanced') if REACH_TIMEOUT in queue: set_select_field_with_id('it-queue-timeout', queue[REACH_TIMEOUT]) if CALL_RETRY in queue: set_select_field_with_id('it-queue-retry', queue[CALL_RETRY]) if REASSIGN_DELAY in queue: set_select_field_with_id('it-queue-wrapuptime', queue[REASSIGN_DELAY]) if AUTOPAUSE_AGENTS in queue: autopause_agents = (queue[AUTOPAUSE_AGENTS] == 'true') set_checkbox_with_id('it-queue-autopause', autopause_agents)