UNPKG

pbn-voip-modules

Version:

PBN VOIP Component Library

172 lines (160 loc) 3.68 kB
/** * Data template * "id": 1, "customer_name": null, "friendly_name": null, "street": null, "secondary_street": null, "city": "Redmond", "state": "WA", "postal_code": "98052", "country": "US", "voip_emergency_enabled": null, "status": "ACTIVE" */ import { IconInbound, IconMissed, IconOutbound, } from "../../../general/assets/images/common-icons"; export const TABS_CALL_LOG = { ALL: { label: "All", key: "all" }, MISSED: { label: "Missed", key: "missed" }, FOLLOW_UP: { label: "Follow Up", key: "followup" }, UNHANDLED: { label: "Unhandled", key: "unhandled" }, }; export const CALL_LOG_FILTER_OPTIONS = { SHOW_ALL: { value: "Inbound|Outbound", label: "show all" }, INCOMING: { value: "Inbound", label: "Incoming Only" }, OUTGOING: { value: "Outbound", label: "Outgoing Only" }, }; export const CALL_LOG_FILTER_OPTIONS_ARRAY = Object.values( CALL_LOG_FILTER_OPTIONS ); export const CALL_TYPE = { INBOUND: "inbound", OUTBOUND: "outbound", MISSED: "missed", }; export const ICON_MAPS = { [CALL_TYPE.INBOUND]: IconInbound, [CALL_TYPE.OUTBOUND]: IconOutbound, [CALL_TYPE.MISSED]: IconMissed, }; export const COLOR_MAPS = { [CALL_TYPE.INBOUND]: "#2143A4", [CALL_TYPE.OUTBOUND]: "#2143A4", [CALL_TYPE.MISSED]: "#EA2727", }; export const DUMB_DATA_FINAL = [ { phone_number: "0912233674", call_type: "inbound", duration: "45", date: "00/00/0000 2:43 A.M", type: "patient", name: "Mike Potts", source: "PBN", }, { phone_number: "0912233674", call_type: "outbound", duration: "45", date: "00/00/0000 2:43 A.M", type: "patient", name: "Mike Potts", source: "PBN", }, { phone_number: "0912233674", call_type: "missed", duration: "45", date: "00/00/0000 2:43 A.M", type: "patient", name: "Mike Potts", source: "PBN", }, { phone_number: "0912233674", call_type: "outbound", duration: "45", date: "00/00/0000 2:43 A.M", type: "patient", name: "Mike Potts", source: "PBN", }, { phone_number: "0912233674", call_type: "missed", duration: "45", date: "00/00/0000 2:43 A.M", type: "patient", name: "Mike Potts", source: "PBN", }, ]; export const TableCallLogConfiguration = { columns: { callDetails: { title: "Call Details", field: "", headerStyle: { width: "35%", paddingLeft: "78px" }, }, callRecording: { title: "Call Recording", field: "", default: "--", headerStyle: { width: "35%", display: "flex", justifyContent: "center" }, }, date: { title: "Date", field: "type", headerStyle: { width: "16%", display: "flex", justifyContent: "center", }, cellStyle: {}, }, }, }; export const CALL_LOG_FILTER_OPTIONS_DROPDOWN = [ { label: "All Calls", value: CALL_LOG_FILTER_OPTIONS.SHOW_ALL.value, }, { label: "Incoming Calls", value: CALL_LOG_FILTER_OPTIONS.INCOMING.value, }, { label: "Outgoing Calls", value: CALL_LOG_FILTER_OPTIONS.OUTGOING.value, }, ]; export const CALL_FEEDBACK_OPTIONS = [ { label: "Poor Call Quality", value: "Poor Call Quality", }, { label: "Call Disconnected Abruptly", value: "Call Disconnected Abruptly", }, { label: "Delay in Audio", value: "Delay in Audio", }, { label: "One-Way or No Audio", value: "One-Way or No Audio", }, { label: "Jitter (Inconsistent Audio)", value: "Jitter (Inconsistent Audio)", }, { label: "Failed Call Connection", value: "Failed Call Connection", }, ];