data-raw/field_lists.R

# field lists

# create ticket date fields list
ticket_date_fields <- c("due_by", "fr_due_by", "created_at", "updated_at", "stats.agent_responded_at", "stats.requester_responded_at",
                        "stats.first_responded_at", "stats.status_updated_at", "stats.reopened_at", "stats.resolved_at", "stats.closed_at", "stats.pending_since")

# create agent date fields list
agent_date_fields <- c("created_at", "updated_at", "available_since", "contact.last_login_at", "contact.created_at", "contact.updated_at")

# create company date fields list
company_date_fields <- c("created_at", "updated_at", "renewal_date")

# create contact date fields list
contact_date_fields <- c("created_at", "updated_at")

# persist the lists for internal package use
devtools::use_data(ticket_date_fields, internal = FALSE, overwrite = TRUE)
devtools::use_data(agent_date_fields, internal = FALSE, overwrite = TRUE)
devtools::use_data(company_date_fields, internal = FALSE, overwrite = TRUE)
devtools::use_data(contact_date_fields, internal = FALSE, overwrite = TRUE)
jjanuszczak/freshdeskr documentation built on May 29, 2019, 11:05 p.m.