Quakker LWC Technical Documentation - clorce/QuakkerPub GitHub Wiki
- AddNewNumber
-
This module defines a Lightning Web Component for adding new phone numbers and associated records.
- AddNewTask
-
This module defines a Lightning Web Component for adding new tasks in the context of phone interactions.
- CallHistory
-
This module defines a Lightning Web Component for managing and interacting with the call history.
- CallingScreen
-
This module defines a Lightning Web Component for managing the user interface for both outgoing and incoming calls.
- SpinnerUtilities
-
This module defines utility functions for showing and hiding a spinner using the Lightning Message Service.
- ContactInfo
-
This module defines a Lightning Web Component for displaying and managing contact information.
- CustomLookup
-
This module defines a Lightning Web Component for a custom lookup functionality in Salesforce.
- CustomLookupNewRecord
-
This module defines a Lightning Web Component for creating new records with custom lookup functionality.
- DhoneCallScreenExitScreen
-
This module defines a Lightning Web Component that provides an interface for either staying on or exiting the phone call screen.
- DialPadSlider
-
This module defines a Lightning Web Component for a dial pad slider in Salesforce.
- featureUtils
-
This module provides utility functions for managing feature flags in LWC components
- FooterMenu
-
This module defines a Lightning Web Component for a footer menu in Salesforce.
- HomeScreen
-
This module defines a Lightning Web Component for the home screen of the phone app.
- PhoneApp
-
This module defines a Lightning Web Component for the main phone application interface.
- PhoneAppSettings
-
This module defines a Lightning Web Component for handling phone app settings.
- PhoneCallScreen
-
This module defines a Lightning Web Component for managing the phone call screen.
- PhoneCallScreenExitScreen
-
This module defines a Lightning Web Component that provides an interface for either staying on or exiting the phone call screen.
- PhoneContainer
-
This module defines a Lightning Web Component for handling phone interactions.
- quakkerWelcomeScreen
-
This module defines a Lightning Web Component (LWC) that serves as a welcome screen for the Quakker application.
- SearchBar
-
This module defines a Lightning Web Component for handling search bar interactions.
- SearchContainer
-
This module defines a Lightning Web Component for managing search functionality within a container.
- SearchResults
-
This module defines a Lightning Web Component for displaying search results.
- SipLibController
-
This module defines a Lightning Web Component for handling SIP based communication using the JsSIP library.
- StatusChanger
-
This module defines a Lightning Web Component for changing and displaying the agent's status.
- UserRegister
-
This module defines a Lightning Web Component for user registration, specifically for SIP (Session Initiation Protocol) user registration.
- Utils
-
This module defines a set of utility functions for Lightning Web Components which assist in showing toast messages, animations, invoking methods, and more.
-
tasksButtonClass --
String
-
If the tasks section is visible, returns a CSS class indicating an active (green background) state; otherwise, returns a class for an inactive (white background) state.
-
campaignsButtonClass --
String
-
If the tasks section is not visible, returns a CSS class indicating an active (green background) state; otherwise, returns a class for an inactive (white background) state.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- handleInput(event)
-
Event handler for user input in any of the form fields. Updates the
record
object with the new value. - addRecord()
-
Initiates the process to add a record in Salesforce, performs validations, and shows toast messages based on operation results.
-
validateInputs() --
boolean
-
Validates the inputs based on the selected object type to ensure necessary fields are filled before creating a record. If fields are missing, constructs an error message.
-
prepareFields() --
Object
-
Prepares a fields object for creating a record based on the selected object type and current input values.
- handleSendRecordEvent(record)
-
Constructs a record object from the created Salesforce record and dispatches a 'recordcreated' event to notify parent components or listeners.
- close()
-
Dispatches a 'close' event to notify parent components or listeners and clears input fields.
- prepareStartAnimation(event)
-
Starts the animation on the given element.
- prepareStopAnimation(event)
-
Prepares the stop animation for the given event target.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
-
disableAddButton() --
boolean
-
Determines if the Add button should be disabled based on campaign selection.
- handleChildCmpConnected(event)
-
Handles the event when a child component is connected.
- handleChildCmpDisconnected(event)
-
Handles the disconnection of child components, setting the property to undefined.
- handleCampaignCreated(event)
-
Handles the creation of a new campaign.
- toggleAddCampaignScreen()
-
Toggles the visibility of the Add Campaign screen.
- handleSelectedCampaign(event)
-
Handles the selection of a campaign.
- handleAddToCampaign()
-
Adds the person to the selected campaign or campaign.
- handleAddMemberToCampaign()
-
Adds a member to the selected campaign.
- handleUpdateCampaign()
-
Updates the selected campaign with the new person added.
- close()
-
Closes the component and emits a close event.
- prepareStartAnimation(event)
-
Starts the animation on the given element.
- prepareStopAnimation(event)
-
Prepares the stop animation for the given event target.
-
appSettings() --
Object
-
Getter for the application settings.
- appSettings(value)
-
Setter for the application settings, updates call results based on the new settings.
-
options() --
Array
-
Getter for options property that returns the list of available options.
- options(value)
-
Setter for options property that updates the list of available options.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- handleInputChange(event)
-
Updates the value of a call result based on user input.
- handleColorChange(event)
-
Changes the color of a specific call result item.
- handleDelete(event)
-
Deletes a call result item based on its index.
- handleAdd()
-
Adds a new call result item with default values.
- saveGlobalSettings()
-
Saves the current settings by storing the selected objects and dispatches a close event.
-
validateValues() --
Boolean
-
Validates the values in 'callResults'. Ensures that there is at least one item present and that all items have non-empty values, showing toast messages for any validation errors.
- close()
-
Dispatches a close event to signal that the component should be closed.
- handleUpdateParentSettings()
-
Dispatches an event to update parent component settings with the current application settings.
- prepareStartAnimation(event)
-
Prepares the start of an animation.
- prepareStopAnimation(event)
-
Prepares the stop of an animation.
- handleInput(event)
-
Handles changes in input fields and updates the record object with new values.
-
handleConfirm() --
void
-
Dispatches a custom event called 'confirm' with the status as the event detail.
- close()
-
Dispatches a 'close' event to notify parent components or listeners.
-
selectedCampaign() --
Object
-
Getter for the selectedCampaign value.
- selectedCampaign(value)
-
Setter for the selectedCampaign value.
-
appSettings() --
Object
-
Getter for the application settings.
- appSettings(value)
-
Setter for the application settings, updates call results based on the new settings.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- disconnectedCallback()
-
This method is triggered when the component is removed from the DOM.
- handleChildCmpConnected(event)
-
Handles the connection of child components, associating the event target with a property.
- handleChildCmpDisconnected(event)
-
Handles the disconnection of child components, setting the property to undefined.
-
handleNameClick(event) --
void
-
Handles the click event and navigating to the record page.
- handleSelectedCampaign(event)
-
Processes the selection of a campaign, including fetching related campaign members and updating campaign statuses.
-
setSelectedCampaign(temp) --
Promise.<void>
-
Asynchronously sets the selected campaign state to a new value, ensuring state consistency.
-
fetchCampaignMembers(campaignId) --
Promise
-
Fetches campaign members for the selected campaign.
-
fetchQuickCampaignByCampaignId(campaignId) --
Promise
-
Fetches the quick campaign associated with the selected campaign.
- handleCampaignDifferences(temp, selectedCampaign)
-
Handles the differences between the selected campaign and the fetched quick campaign.
- handleCreateQuickCampaign()
-
Creates a new quick campaign record for the selected campaign.
- handleCallCampaign()
-
Triggers an event to start the calling process for the current selected campaign.
- handleTextCampaign()
-
Triggers an event to start the texting campaign process for the current selected campaign.
- handleUpdateCampaign(callingPersonId)
-
Invokes status update processes for campaign items, optionally focusing on a specific calling person by ID.
-
isSalesforceCampaign() --
Boolean
-
Indicates whether the selected campaign is a Salesforce campaign.
-
disableCampaignOptions() --
Boolean
-
Computes a boolean value to enable or disable campaign options based on edit mode and campaign ID presence.
-
disableCallCampaignButton() --
Boolean
-
Computes a boolean value to enable or disable the Call Campaign button based on campaign JSON presence.
-
disableCreateButton() --
Boolean
-
Computes a boolean value to enable or disable the Edit Campaign button based on the edit mode.
- handleCampaignTypeChanged(event)
-
Handles the click event and toggles the edit mode.
-
disableTextCampaignButton() --
Boolean
-
Computes a boolean value to enable or disable the Text Campaign button based on campaign JSON presence.
-
handleUpdateQuickCampaignRecord() --
Promise.<void>
-
Updates the user record with SIP credentials.
-
handleAddMembersToCampaign() --
Promise.<void>
-
Handles the addition of new members to the selected campaign.
- handleCancelSave()
-
Cancels the save operation and reverts the campaign changes.
- handleUpdateCampaignItemsStatuses(callingPersonId)
-
Handles the update of campaign items' statuses, optionally scrolling to a specific calling person.
- scrollToElement(element)
-
Scrolls the main content to the provided element.
- handleContactClicked(event)
-
Handles the click event on a contact item.
- handleDragStart(event)
-
Handles the dragstart event on a campaign item.
- handleDragOver(event)
-
Handles the dragover event on a campaign item.
- handleDragEnter(event)
-
Handles the dragenter event on a campaign item.
- handleDragLeave(event)
-
Handles the dragleave event on a campaign item.
- handleDragEnd(event)
-
Handles the dragend event on a campaign item.
- handleDrop(event)
-
Handles the drop event on a campaign item.
- handleDeleteCampaignItem(event)
-
Handles the deletion of a campaign item.
- handleResetStatus(event)
-
Resets the status of a campaign item.
- handleShowDetails(event)
-
Shows the details of a campaign item.
- handleHideDetails(event)
-
Hides the details of a campaign item.
- prepareStartAnimation(event)
-
Prepares the start of an animation.
- prepareStopAnimation(event)
-
Prepares the stop of an animation.
- handleExit()
-
Emits an event to exit the settings interface.
- toggleAddCampaignScreen()
-
Allows users to either show or hide the Add Campaign screen, facilitating the addition of a new campaign.
- handleEditCampaign()
-
Sets the campaign that is about to be edited as the current selected campaign without changes and enables the edit mode.
- toggleDeleteConfirmation()
-
Allows users to confirm or cancel the deletion of a campaign item by showing or hiding the delete confirmation modal.
- handleRecordCreatedEvent(event)
-
Updates the selected campaign with the new record's details and toggles the Add Campaign screen's visibility.
-
handleMemberSelected(event) --
Promise.<void>
-
Updates the selected campaign with the new record's details and fetches the associated quick campaign.
-
clearMemberLookup() --
Promise.<void>
-
Clears the member lookup component and resets all relevant fields.
- handleRecordDeleteEvent()
-
Handles the deletion of a campaign item, refreshes the campaign list, displays a success message, and toggles the delete confirmation modal.
-
appSettings() --
Object
-
Getter for the application settings.
- appSettings(value)
-
Setter for the application settings, updates call results based on the new settings.
- handleSelectedObjects()
-
Updates the selected objects from the application settings.
-
restrictedSettings() --
Boolean
-
Getter that determines if settings are restricted based on the admin status of the user.
-
options() --
Array
-
Getter for options property that returns the list of available options.
- options(value)
-
Setter for options property that updates the list of available options.
-
isAdmin() --
Boolean
-
Getter for the admin status.
- isAdmin(value)
-
Setter for the admin status.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- handleChange(event)
-
Handles change events on the component, updating the list of selected objects.
- saveGlobalSettings()
-
Saves the current settings by storing the selected objects and dispatches a close event.
- close()
-
Dispatches a close event to signal that the component should be closed.
- handleUpdateParentSettings()
-
Dispatches an event to update parent component settings with the current application settings.
- prepareStartAnimation(event)
-
Prepares the start of an animation.
- prepareStopAnimation(event)
-
Prepares the stop of an animation.
-
devices() --
Object
|Object
-
Getter for the list of devices.
-
devices(value) --
void
-
Setter for the list of devices.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
-
loadDevices() --
void
-
Fetches the list of devices.
-
handleChangeSpeaker(event) --
void
-
Handles the change event for the speaker dropdown.
-
handleChangeMicrophone(event) --
void
-
Handles the change event for the microphone dropdown.
- handleSave()
-
Dispatches an event to update the devices.
- handleDispatchUpdateDevices()
-
Dispatches an event to update the devices.
- close()
-
Dispatches an event to close the modal.
- prepareStartAnimation(event)
-
Starts the animation on the given element.
- prepareStopAnimation(event)
-
Prepares the stop animation for the given event target.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- handleClick(event)
-
Captures the ID of the clicked button, updates the selected button state, and dispatches a 'itemselected' custom event with the clicked button's ID as detail.
- records(value)
-
Setter for the records property.
-
records() --
Object
-
Getter for the records property.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- handleChildCmpConnected(event)
-
Handles the event when a child component is connected.
- handleChildCmpDisconnected(event)
-
Handles the disconnection of child components, setting the property to undefined.
-
initializeRecordsSelection() --
void
-
Initializes the records selection based on the
shouldSelectAll
property. -
handleSelectAll(event) --
void
-
Handles the event when the user clicks the 'Select All' checkbox.
-
handleCheckboxChange(event) --
void
-
Handles the change event when a checkbox is clicked.
-
handleSelectedWhatId(event) --
void
-
Handles the event when a record is selected in the custom lookup component.
- handleSave()
-
Logs all selected records (their ID and Name) to the console.
- handleSkip()
-
Dispatches a 'skip' event to notify parent components or listeners.
- handleCancel()
-
Dispatches a 'cancel' event to notify parent components or listeners.
- prepareStartAnimation(event)
-
Prepares the start animation for the given event target.
- prepareStopAnimation(event)
-
Prepares the stop animation for the given event target.
-
handleExit(component) --
Promise.<void>
-
Handles the exit action
-
handleQuickCampaignNavigation(component) --
Promise.<void>
-
Handles the quick campaign navigation
-
handleNextNavigation(component) --
Promise.<void>
-
Handles the next navigation
-
finishNavigation(component, state) --
Promise.<void>
-
Finishes navigation
-
shouldShowMultipleRecords(component) --
boolean
-
Determines if we should show the multiple records screen
-
shouldShowUnsavedChanges(component) --
boolean
-
Determines if we should show the unsaved changes screen
-
canShowScreens(component) --
boolean
-
Determines if we can show screens
-
handleIdleState(component, action, state) --
Promise.<void>
-
Handles the idle state
-
handleStatusScreenState(component, action, state) --
Promise.<void>
-
Handles the status screen state
-
handleMultipleRecordsState(component, action, state) --
Promise.<void>
-
Handles the multiple records state
-
unsavedChangesState(component, action, state) --
Promise.<void>
-
Handles the unsaved changes state
-
handleNavigation(component, action, state) --
Promise.<void>
-
Handles the navigation
-
appSettings() --
Object
-
Getter for the app settings.
- appSettings(value)
-
Setter for the app settings.
-
userData() --
Object
-
Getter for the user data.
- userData(value)
-
Setter for the user data.
-
sidePanelEnabled() --
Boolean
-
Getter for the side panel enabled property.
- sidePanelEnabled(value)
-
Setter for the side panel enabled property. It toggles the side panel visibility based on the value.
-
sidebarAvailable() --
Boolean
-
Getter for the sidebar available property.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- disconnectedCallback()
-
This method is triggered when the component is removed from the DOM.
- handleSidebarChannel()
-
Lifecycle method called when component gets disconnected from DOM. It unsubscribes from the platform event channel.
-
wiredMessages() --
Promise.<void>
-
Lifecycle method called when component gets disconnected from DOM. It unsubscribes from the platform event channel.
- handleLoadMessages(event)
-
Handles the load messages event and loads the messages for the selected person.
- subscribeToPlatformEvent()
-
Subscribes to a platform event channel to listen for events.
- unsubscribeFromPlatformEvent()
-
Unsubscribes from the platform event channel to stop listening for events.
- handleSMSNotification(message)
-
Handles the notification of a received SMS message.
-
handleHideMessageSpinner() --
void
-
Hides the message spinner in the PhoneSidebarTextMessages component.
- handleRefreshMessagesAfterReceive(sender)
-
Refreshes the messages list after a new message is received.
-
handleFetchMessages(fetchFresh) --
Promise.<void>
-
Refreshes the messages list.
- handleRefreshMessagesAfterSent(recordId, phone)
-
Refreshes the messages list after a new message is sent.
- handleMessageSent(event)
-
Handles the message sent event and refreshes the messages list.
- handleChildCmpConnected(event)
-
Updates the current component reference when a child component is connected.
- handleChildCmpDisconnected(event)
-
Handles the disconnection of child components, setting the property to undefined.
-
sidebarClass() --
String
-
Getter for the sidebar class based on the visibility of the main section.
-
handleToggleSideBar() --
void
-
Toggles the visibility of the main section and updates the sidebar icon.
- handleChangeSubpage(event)
-
Handles the subpage change event and updates the selected subpage.
- handleSubpageSelect(event)
-
Handles the subpage select event and updates the selected subpage.
-
showTextMessages() --
Boolean
-
Getter for the text messages visibility based on the selected subpage.
-
showTranscript() --
Boolean
-
Getter for the transcript visibility based on the selected subpage.
-
showNextBestAction() --
Boolean
-
Getter for the next best action visibility based on the selected subpage.
-
showSurveysSection() --
Boolean
-
Getter for the surveys visibility based on the selected subpage.
- handleAddPhoneToList()
-
Handles the back to results event and updates the selected subpage.
- prepareTextMessageReceiver(data)
-
Prepares the person data to be added to the receivers list.
- addToReceivers(data)
-
Adds a person to the receivers list.
- sendTextCampaign(data)
-
Sends a text campaign to the selected person.
- handleAssignPerson()
-
Handles the back to results event and updates the selected subpage.
- handleCloseTextWindow()
-
Handles the back to results event and updates the selected subpage.
- handlePersonSelect()
-
Handles the back to results event and updates the selected subpage.
- handleCallPerson()
-
Handles call person event.
- handleMessageSend()
-
Handles message send event.
-
selectedSubpage() --
String
-
Determines which subpage is currently selected.
- selectedSubpage(value)
-
Setter for the _selectedSubpage value.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
-
smsFeatureAvailable() --
Boolean
-
Getter that determines if the Two Way SMS Feature is enabled.
-
getDisabledFeature() --
Boolean
-
Dummy method to return false for features that are not yet ready.
-
textMessagesButtonClass() --
String
-
Determines the class for the 'Text Messages' button.
-
transcriptButtonClass() --
String
-
Determines the class for the 'Transcript' button.
-
nextBestActionClass() --
String
-
Determines the class for the 'Next Best Action' button.
-
otherSectionClass() --
String
-
Determines the class for the 'Surveys' button.
-
handleClick() --
String
-
Determines the class for the 'Settings' button.
-
appSettings() --
Object
-
Getter for the app settings.
- appSettings(value)
-
Setter for the app settings.
-
userData() --
Object
-
Getter for the user data.
- userData(value)
-
Setter for the user data.
-
textMessagesConfigurated() --
Boolean
-
Getter for the text message configuration.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- disconnectedCallback()
-
This method is triggered when the component is removed from the DOM.
- selectedPerson()
-
Handles selecting a person from the list.
- selectedPerson(value)
-
Setter for the selected person.
- receivers()
-
Getter for the list of receivers.
- receivers(value)
-
Setter for the list of receivers.
- handleMessageSent(event)
-
Handles the event to show the spinner.
- handleChildCmpConnected(event)
-
Updates the current component reference when a child component is connected.
- handleChildCmpDisconnected(event)
-
Handles the disconnection of child components, setting the property to undefined.
-
handlePersonSelect(event) --
void
-
Handles person selection.
-
handleLoadMessages(event) --
void
-
Handles the load more messages event.
- hideMessageSpinner()
-
Handles the event to show the spinner.
- handleCallPerson()
-
Handles calling a person.
- handleCloseTextWindow()
-
Handles sending a text message to a person.
- handleAddPhoneToList()
-
Handles sending a text message to a person.
-
receivers() --
Array
-
Getter for the list of receivers.
- receivers(value)
-
Setter for the list of receivers.
-
selectedPerson() --
Object
-
Getter for the selected person.
- selectedPerson(value)
-
Setter for the selected person.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- disconnectedCallback()
-
This method is triggered when the component is removed from the DOM.
- handlePersonClick(event)
-
Handles the person click event.
-
getPersonItemClass(messageId) --
String
-
Determines the class for the person item.
-
isAdmin() --
Boolean
-
Getter for the admin status.
- isAdmin(value)
-
Setter for the admin status.
-
userData() --
Object
-
Getter for the user data.
- userData(value)
-
Setter for the user data.
-
appSettings() --
Object
-
Getter for the application settings.
- appSettings(value)
-
Setter for the application settings, updates call results based on the new settings.
-
decryptionKeyAvailable() --
Boolean
-
Getter for the decryption key field aviablity.
-
smsTwoWayFeatureAvailable() --
Boolean
-
Getter that determines if the user should see two way text messages settings.
-
handleSetValueForSelect() --
void
-
Handles the change event for the input fields.
-
textMessageProvider() --
Object
-
Getter for the text messages providers list.
- textMessageProvider(value)
-
Setter for the text messages providers list.
-
isProviderSelected() --
Boolean
-
Getter for the provider selected status.
- handleProviderChange(event)
-
Event handler for when the object type dropdown value changes. Clears and updates input fields based on the selected object type.
- handleUpdateInputs(providerName)
-
Updates the input fields based on the selected provider.
- handleChange(event)
-
Handles the change event for the input fields.
- handleChangePhone(event)
-
Handles the change event for the phone input field.
-
showUserToken() --
Boolean
-
Getter to determine if user token field should be displayed
-
showApiCredentials() --
Boolean
-
Getter to determine if API credentials should be displayed
-
saveSettings(event) --
void
-
Handles the click event for the save button.
- saveTextMessageSettings()
-
Handles the click event for the save button.
- saveGlobalSettings()
-
Saves the current settings by storing the selected objects and dispatches a close event.
- handleInformParentTextMessagesSettings()
-
Dispatches an event to update parent component settings with the current text message settings.
- handleUpdateParentSettings()
-
Dispatches an event to update parent component settings with the current application settings.
- handleUpdatePhone(event)
-
Handles the click event for the cancel button.
- close()
-
Dispatches a close event to signal that the component should be closed.
- prepareStartAnimation(event)
-
Starts the animation on the given element.
- prepareStopAnimation(event)
-
Prepares the stop animation for the given event target.
-
userData() --
Object
-
Getter for the user data.
- userData(value)
-
Setter for the user data.
-
playCookie() --
String
-
Getter for the playCookie property.
- playCookie(value)
-
Setter for the playCookie property.
-
playsessionId() --
String
-
Getter for the playsessionId property.
- playsessionId(value)
-
Setter for the playsessionId property.
-
showCallButton() --
Boolean
-
Getter for the showCallButton property.
-
messages() --
Array
-
Getter for the messages property.
-
objectIconUrl() --
String
-
Getter for the userIconUrl property.
- messages(value)
-
Setter for the messages property.
-
selectedPerson() --
Object
-
Getter for the selectedPerson property.
- selectedPerson(value)
-
Setter for the selectedPerson property.
-
smsTwoWayFeatureAvailable() --
Boolean
-
Getter that determines if the user should see two way text messages.
- scrollToBottom()
-
Scrolls to the bottom of the message history area.
- connectedCallback()
-
Lifecycle hook that gets called when the component is inserted into the DOM.
- disconnectedCallback()
-
This method is triggered when the component is removed from the DOM.
- handlePhoneNumberChange(event)
-
Handles the phone number change event.
- handleAddPhoneToList()
-
Handles the add phone to list event.
-
charactersLeft() --
String
-
Handles the character left counter.
- handleOnChangeText(event)
-
Handles the message text change event.
-
messageInputValue() --
String
-
Getter for the messageInputValue property.
- handleNameClick()
-
Handles the name click event.
- handleSendMessage(data)
-
Handles the send message event.
-
handleLoadMessages() --
void
-
Handles the load more messages event.
- handleSendSingleMessage()
-
Sends a single message.
-
fetchFreshPersonDetailsBeforeSent(recordId) --
void
-
Fetches fresh person details before sending the message.
- handleSendMessagesToCampaign()
-
Sends a message to a campaign.
- handleUpdateCampaignMessages()
-
Updates the message history and task for a campaign.
-
fetchCampaignMembers(campaignId) --
Promise
-
Fetches the campaign members.
-
fetchQuickCampaignById(campaignId) --
Promise
-
Fetches the quick campaign associated with the selected campaign.
- sendAndUpdateMessages(payload)
-
Updates the message history and task.
- handleInformParent(cookie, sessionId, refreshImmediately)
-
Informs the parent component that a message has been sent.
-
handleTimestampClick(event) --
void
-
Handles the timestamp click event.
- startSendingSpinnerTimeout()
-
Sets a timeout to hide the sending spinner after 30 seconds
- startMessageSpinnerTimeout()
-
Sets a timeout to hide the message spinner after 30 seconds
- hideSendingSpinner()
-
Handles hiding the sending spinner.
- hideMessageSpinner()
-
Handles hiding the message spinner.
- handleCloseWindow()
-
Handles the close window
- handleCallClick()
-
Handles the call click event.
- showError(message)
-
Handles the error.
- handleKeyDownMessenger(event)
-
Handles the key down event.
- handleKeyDownStartTextMsgFromInput(event)
-
Handles the key down event for starting conversation.
- handleKeyDownStartTextMsgFromNumber(event)
-
Handles the key down event for starting conversation.
-
isToAddPopulated() --
Boolean
-
Getter that returns true if toAdd is populated.
-
isToRemovePopulated() --
Boolean
-
Getter that returns true if toRemove is populated.
-
handleConfirm() --
void
-
Dispatches a 'confirm' event to notify parent components or listeners.
- handleClose()
-
Dispatches a 'close' event to notify parent components or listeners.
- prepareStartAnimation(event)
-
Starts the animation on the given element.
- prepareStopAnimation(event)
-
Prepares the stop animation for the given event target.
This module defines a Lightning Web Component for adding new phone numbers and associated records.
Requires: module:lwc
, module:lightning/uiRecordApi
, module:c/utils
, module:c/constants
, module:c/customLabelsUtils
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
AddNewNumber
-
module.exports 
LightningElement
--- new module.exports()
- .labels
- .connectedCallback()
- .handleShowAddNewNumberForm()
- .handleShowLinkNumberForm()
- .handleSelectCustomLookupRecord(event)
- .handleObjectTypeChange(event)
- .updateInputs()
- .handleInput(event)
- .linkRecord()
-
.isNumberValid() --
boolean
-
.sanitizeNumber(number) --
string
- .addRecord()
-
.validateInputs() --
boolean
-
.prepareFields() --
Object
- .handleSendRecordEvent(record)
- .clearInputs()
- .handleBack()
- .close()
- .prepareStartAnimation(event)
- .prepareStopAnimation(event)
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class for adding new phone numbers and associated records like accounts, leads, and contacts. Provides UI interaction for choosing record types and input fields based on selection.
A proxy object for the labelsList
which returns 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Properties
Type |
---|
Proxy |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Event handler for when the user clicks on the 'Create New Record' button. Shows the form picker to choose the record type.
Kind: instance method of module.exports
Event handler for when the user clicks on the 'Link Existing Record' button. Shows the form picker to choose the record type.
Kind: instance method of module.exports
Listens to the event of an custom lookup record being selected and updates the selected personId parameter.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the selected custom lookup record details. |
Event handler for when the object type dropdown value changes. Clears and updates input fields based on the selected object type.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object from the dropdown. |
Updates visibility of input fields based on the selected object type. This helps in showing appropriate fields to the user for Account, Contact, or Lead.
Kind: instance method of module.exports
Event handler for user input in any of the form fields. Updates the record
object with the new value.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object from the input field. |
Links a record by updating its fields such as 'Phone' using the salesforce 'updateRecord' method, handles the response by triggering appropriate UI feedback and closing the current view.
Kind: instance method of module.exports
Validates a phone number against a specific pattern, ignoring whitespace and hyphens.
Kind: instance method of module.exports
Returns: boolean
- - Whether the phone number is valid.
Removes all whitespace, hyphens, and parentheses from a phone number.
Kind: instance method of module.exports
Returns: string
- - The sanitized phone number.
Param | Type | Description |
---|---|---|
number | string |
The phone number to sanitize. |
Initiates the process to add a record in Salesforce, performs validations, and shows toast messages based on operation results.
Kind: instance method of module.exports
Validates the inputs based on the selected object type to ensure necessary fields are filled before creating a record. If fields are missing, constructs an error message.
Kind: instance method of module.exports
Returns: boolean
- - Returns true
if validation is successful, false
otherwise.
Prepares a fields object for creating a record based on the selected object type and current input values.
Kind: instance method of module.exports
Returns: Object
- - An object containing field names as keys and user input values as values.
Constructs a record object from the created Salesforce record and dispatches a 'recordcreated' event to notify parent components or listeners.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
record | Object |
The record object returned from Salesforce after a successful record creation. |
Clears the input values in the record
object. Useful to reset the form.
Kind: instance method of module.exports
Clears the record values and handling back navigation.
Kind: instance method of module.exports
Dispatches a 'close' event to notify parent components or listeners and clears input fields.
Kind: instance method of module.exports
Prepares the start animation for the given event target.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Prepares the stop animation for the given event target.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
This module defines a Lightning Web Component for adding new tasks in the context of phone interactions.
Requires: module:lwc
, module:@salesforce/apex/PhoneAppController.createTask
, module:c/utils
, module:c/constants
, module:c/customLabelsUtils
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
Kind: Exported class
Extends: LightningElement
A class for adding new tasks within the phone interactions environment. It interacts with the UI and Salesforce backend.
Converts the activity date to a string format suitable for UI representation.
Kind: instance property of module.exports
Getter:
A proxy object for the labelsList
which returns 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Properties
Type |
---|
Proxy |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Event handler that updates the task subject based on user input.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object from the input field. |
Event handler that updates the activity date based on user input.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object from the input field. |
Initiates the creation of a new task in Salesforce, and handles success and error scenarios.
Kind: instance method of module.exports
Dispatches a 'close' event to notify parent components or listeners.
Kind: instance method of module.exports
Starts the animation on the given element.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to animate. |
Prepares the stop animation for the given event target.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
This module defines a Lightning Web Component for managing and interacting with the call history.
Requires: module:lwc
, module:lightning/navigation
, module:c/customLabelsUtils
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
CallHistory
-
module.exports 
NavigationMixin(LightningElement)
--
-
module.exports 
Kind: Exported class
Extends: NavigationMixin(LightningElement)
A class responsible for displaying call history, managing click interactions on call subjects and names, and handling various associated events.
A proxy object for the labelsList
which returns 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Properties
Type |
---|
Proxy |
Getter for the call history.
Kind: instance method of module.exports
Returns: Object
- The current call history.
Setter for the history, updates call history parameter based on new value.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
value | Object |
The new call history. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
This method is triggered when the component is removed from the DOM.
Kind: instance method of module.exports
Handles the click on the call subject and navigates to the associated Event record.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The click event object. |
Handles the click on the name and navigates to the associated record.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The click event object. |
Dispatches an event to request a call based on the clicked call data.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The click event object. |
Handles the scroll event in the calls section, checks if the user has scrolled sufficiently to request more history data.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The scroll event object. |
Dispatches an event to update the offset for fetching more call history data.
Kind: instance method of module.exports
API method that allows external components to reset the fetched flag.
Kind: instance method of module.exports
Api:
This module defines a Lightning Web Component for managing the user interface for both outgoing and incoming calls.
Requires: module:lwc
, module:@salesforce/resourceUrl/call_icon
, module:@salesforce/resourceUrl/call_icon_static
, module:c/customLabelsUtils
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
Kind: Exported class
Extends: LightningElement
A class responsible for displaying the calling screen, managing the user interactions for accepting or rejecting calls, and handling associated events.
A proxy object for the labelsList
which returns 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Properties
Type |
---|
Proxy |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Dispatches an event to notify that the call has been accepted.
Kind: instance method of module.exports
Dispatches an event to notify that the call has been rejected.
Kind: instance method of module.exports
Dispatches an event with the selected contact's data when a contact is picked.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The custom event containing details about the picked contact. |
Updates the search results and dispatches an event with the updated search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The custom event containing the updated search results. |
Starts the animation on the given element.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to animate. |
Stops the animation on the given element.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to stop animating. |
This module defines utility functions for showing and hiding a spinner using the Lightning Message Service.
Requires: module:lightning/messageService
, module:@salesforce/messageChannel/spinnerMessageChannel__c
Publishes a message to show the spinner.
Kind: static method of SpinnerUtilities
Param | Type | Description |
---|---|---|
messageContext | MessageContext |
The context of the Lightning Message Service. |
Publishes a message to hide the spinner.
Kind: static method of SpinnerUtilities
Param | Type | Description |
---|---|---|
messageContext | MessageContext |
The context of the Lightning Message Service. |
Publishes a message to trigger the sidebar window.
Kind: static method of SpinnerUtilities
Param | Type | Description |
---|---|---|
messageContext | MessageContext |
The context of the Lightning Message Service. |
method | String |
The method to be called in the sidebar window. |
person | Object |
The person object to be passed to the sidebar window. |
Publishes a CampaignDataUpdated__e event
Kind: static method of SpinnerUtilities
Param | Type | Description |
---|---|---|
campaignId | String |
The ID of the campaign that was updated. |
Sends a custom notification to the specified recipients.
Kind: static method of SpinnerUtilities
Param | Type | Description |
---|---|---|
recipientsIds | Array.<String> |
The IDs of the recipients of the notification. |
targetsIds | Array.<Strin> |
The IDs of the targets of the notification. |
title | String |
The title of the notification. |
body | String |
The body of the notification. |
This module defines a Lightning Web Component for displaying and managing contact information.
Requires: module:lwc
, module:c/constants
, module:c/customLabelsUtils
, module:c/utils
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
ContactInfo
-
module.exports 
LightningElement
--- new module.exports()
- .contact
- .contact
- .isSingleContact
- .isSingleContact
- .callInitiated
- .callInitiated
- .callInProgress
- .callInProgress
- .isEveythingLoaded
- .showAddToCmpBtn
- .disableCallButton
- .disableMessageButton
- .labels
- .connectedCallback()
- .handleNameClick(event)
- .handleCallRequest()
- .handleBackToResults()
- .handleAddPersonToCampaign(event)
- .handleSendTextMessage(event)
- .handleShowSurveyWindow(event)
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class for managing the display of contact information, initiating calls, and handling user interactions.
Gets the contact information.
Kind: instance property of module.exports
Getter:
Sets the contact information
Kind: instance property of module.exports
Setter:
Param | Type | Description |
---|---|---|
value | Object |
The contact information. |
Determines if only one contact is being displayed
Kind: instance property of module.exports
Getter:
Sets whether only one contact is being displayed
Kind: instance property of module.exports
Setter:
Param | Type | Description |
---|---|---|
value | Boolean |
The single contact flag |
Determines if a call has been initiated
Kind: instance property of module.exports
Getter:
Sets whether a call has been initiated
Kind: instance property of module.exports
Setter:
Param | Type | Description |
---|---|---|
value | Boolean |
The call initiated flag |
Determines if a call is currently in progress
Kind: instance property of module.exports
Getter:
Sets whether a call is currently in progress
Kind: instance property of module.exports
Setter:
Param | Type | Description |
---|---|---|
value | Boolean |
The call in progress flag |
Checks if the contact information is loaded.
Kind: instance property of module.exports
Getter:
Checks if the contact is a lead or account or contact to show the 'Add to Campaign' button.
Kind: instance property of module.exports
Getter:
Checks if the contact phone is populated and return true if it's not to disable 'Call' button.
Kind: instance property of module.exports
Getter:
Checks if the contact phone is populated and sms feature is enabled.
Kind: instance property of module.exports
Getter:
A proxy object for the labelsList
which returns 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Properties
Type |
---|
Proxy |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Handles a click on a name by navigating to its associated record page.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the navigation. |
Dispatches an event to notify that a call request has been made.
Kind: instance method of module.exports
Dispatches an event to return to the list of contacts or search results.
Kind: instance method of module.exports
Stops event propagation and dispatches a custom event to add a person to a campaign, using this.contact parameter.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object, where the current target's dataset contains the person's details to be added. |
Handles the call request from the displayed search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The call request event. |
Handles the call request from the displayed search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The call request event. |
This module defines a Lightning Web Component for a custom lookup functionality in Salesforce.
Requires: module:lwc
, module:@salesforce/apex/CustomLookupController.fetchRecords
, module:@salesforce/apex/CustomLookupController.getObjectInfo
, module:lightning/messageService
, module:@salesforce/messageChannel/refreshPageMessageChannel__c
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
, module:c/customLabelsUtils
-
CustomLookup
-
module.exports 
LightningElement
--- new module.exports()
- .labels
-
.objectApiName() --
Object
- .objectApiName(value)
-
.objectsToAdditionalFields() --
Object
- .objectsToAdditionalFields(value)
- .connectedCallback()
- .disconnectedCallback()
-
.handleSearchForRecord(recordId) --
void
- .label()
- .handleLoadSettings()
- .handleGetObjectInfo()
- .handleAssignObjectProperties()
-
.methodInput() --
Object
- .handleChangeObject()
-
.handleDispatchEventObjectChange() --
void
- .handleObjectSelect(event)
-
.showRecentRecords() --
boolean
- .iconClass()
- .fetchSobjectRecords(loadEvent)
-
.isValueSelected() --
boolean
- .handleInputFocus(event)
- .handleChange(event)
- .handleDivClick()
- .handleCancelSelect()
- .handleAddNewRecord()
- .handleRecordCreatedEvent(event)
-
.handleCloseNewRecordForm(event) --
boolean
- .handleSelect(event)
- .handleSelectedDispatchEvent()
- .handleInputBlur(event)
- .handleRefreshDetailPage()
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class for implementing a custom lookup functionality, fetching Salesforce records based on user input and allowing record selection.
A proxy object for the labelsList
which returns 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Properties
Type |
---|
Proxy |
Getter for the objectApiName value.
Kind: instance method of module.exports
Returns: Object
- The current objectApiName object.
Api:
Setter for the objectApiName value.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new objectApiName object. |
Getter for the objectsToAdditionalFields value.
Kind: instance method of module.exports
Returns: Object
- The current objectsToAdditionalFields object.
Api:
Setter for the objectsToAdditionalFields value.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new objectsToAdditionalFields object. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
This method is triggered when the component is removed from the DOM.
Kind: instance method of module.exports
Handles the search for a record.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
recordId | String |
The ID of the record to search for. |
Retrieves the user-friendly label for the associated object or UI element.
Kind: instance method of module.exports
Loads settings and updates the styles for the phone app.
Kind: instance method of module.exports
Handles the retrieval of information about the provided object names from the backend.
Kind: instance method of module.exports
Assigns properties to the 'whatObject' based on the matched option from the list of object options.
Kind: instance method of module.exports
Constructs an input object for fetching sObject records.
Kind: instance method of module.exports
Returns: Object
- An object containing necessary properties for the fetch operation: objectApiName, nameField, additionalField, searchString, and selectedRecordId.
Toggles the visibility of the object dropdown and resets some properties related to record selection.
Kind: instance method of module.exports
Dispatches an event to the parent component with information about the object change.
Kind: instance method of module.exports
Handles the selection of an object from the dropdown list, updates the properties of 'whatObject', and updates the settings object.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the details of the selected object. |
Determines if there should be dropdown shown.
Kind: instance method of module.exports
Returns: boolean
- Returns true if there are any records in the list, otherwise false.
Returns the appropriate icon class or icon name for a given Salesforce object API name.
Kind: instance method of module.exports
Fetches Sobject records based on the provided method input.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
loadEvent | boolean |
Whether the fetch is triggered by a load event or not. |
Determines if a value has been selected and the lookup is not disabled.
Kind: instance method of module.exports
Returns: boolean
- Returns true if a value has been selected and lookup is enabled, otherwise false.
Reacts to changes in the input field, fetching Sobject records if the search string length exceeds 2 characters.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The input event containing the current search string. |
Reacts to changes in the input field, fetching Sobject records if the search string length exceeds 2 characters.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The input event containing the current search string. |
Handles click events on the DIV element surrounding the search panel to ensure the panel does not close unexpectedly.
Kind: instance method of module.exports
Resets the selected record details and dispatches a 'valueselected' event without a value, indicating the value has been cleared.
Kind: instance method of module.exports
Handles click add new record button, showing the new record form and clearing the records list.
Kind: instance method of module.exports
Processes the creation of a new record and updates the calling person's details.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the created record. |
Handles the closing of the new record form.
Kind: instance method of module.exports
Returns: boolean
- Returns true if the record was created successfully, otherwise false.
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the created record. |
Handles the selection of a record from the list, setting the selected record ID and name, clearing the list, and dispatching an event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the details of the selected record. |
Dispatches an event indicating a record has been selected.
Kind: instance method of module.exports
Handles the loss of focus on the input field, clearing the records list after a delay if necessary.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The blur event. |
Publishes a message to refresh the detail page.
Kind: instance method of module.exports
Api:
This module defines a Lightning Web Component for creating new records with custom lookup functionality.
Requires: module:lwc
, module:@salesforce/apex/CustomLookupController.getPicklistValues
, module:lightning/uiRecordApi
, module:c/customLabelsUtils
, module:c/utils
, module:c/constants
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
This module defines a Lightning Web Component that provides an interface for either staying on or exiting the phone call screen.
Requires: module:lwc
, module:c/customLabelsUtils
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
DhoneCallScreenExitScreen
-
module.exports 
LightningElement
--
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class that handles user interactions for staying on or exiting the phone call screen. It provides methods to handle both actions and uses custom styles for the component.
Proxy wrapper for the labelsList, providing a fallback label in case the requested label is missing.
Kind: instance property of module.exports
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Dispatches an event to indicate the user's desire to stay on the phone call screen.
Kind: instance method of module.exports
Dispatches an event to indicate the user's desire to exit the phone call screen.
Kind: instance method of module.exports
This module defines a Lightning Web Component for a dial pad slider in Salesforce.
Requires: module:lwc
, module:@salesforce/resourceUrl/erease_icon
, module:c/customLabelsUtils
Kind: Exported class
Extends: LightningElement
A class for implementing a dial pad slider with buttons and managing user interactions, allowing users to click and generate dial inputs.
Provides a proxy for label list, defaulting to 'label_error' if a specific label is not found.
Kind: instance property of module.exports
This method is triggered when the component is removed from the DOM.
Kind: instance method of module.exports
Handles the click event on the dial buttons, updating the search value and dispatching the change input event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The click event from the dial button. |
Handles keyup events on the input field, updating the search value and sending DTMF signals.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The keyup event from the input field. |
Scrolls the input element to ensure that the cursor is visible.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
inputElement | HTMLElement |
The HTML input element in which the cursor needs to be visible. This method calculates the cursor's position within the element and adjusts the scroll if the cursor is not in the visible area. |
Erases the last character from the search input and sets focus on the input.
Kind: instance method of module.exports
Sets focus on the search input field.
Kind: instance method of module.exports
Dispatches an event indicating a dial button has been clicked and DTMF was triggered.
Kind: instance method of module.exports
Dispatches an event indicating a dial button has been clicked and the input has changed.
Kind: instance method of module.exports
This module provides utility functions for managing feature flags in LWC components
Initializes the feature configuration with setup data
Kind: static method of featureUtils
Param | Type | Description |
---|---|---|
setup | object |
The setup object containing feature flags |
Checks if a specific feature is enabled
Kind: static method of featureUtils
Returns: boolean
- - Whether the feature is enabled
Param | Type | Description |
---|---|---|
featureName | string |
The name of the feature to check |
Throws a custom exception with the provided message
Kind: static method of featureUtils
Param | Type | Description |
---|---|---|
message | string |
The error message |
This module defines a Lightning Web Component for a footer menu in Salesforce.
Requires: module:lwc
, module:c/utils
, module:c/customLabelsUtils
-
FooterMenu
-
module.exports 
LightningElement
--- new module.exports()
- .labels
- .connectedCallback()
-
.hasNewHistory() --
boolean
-
.disableCallButton() --
boolean
- .disableCallButton(value)
-
.historyCounter() --
string
- .animateCallButton()
- .handleDialPad()
- .handleCallRequestEvent(event)
- .handleShowHomePanelEvent()
- .handleToggleDialPad()
- .prepareStartAnimation(event)
- .prepareStopAnimation(event)
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class for implementing a footer menu with various icons and functionalities, allowing users to interact with the dial pad, history, home, and call features.
A proxy object for the labelsList
which returns 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Properties
Type |
---|
Proxy |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Checks if there's any new call history.
Kind: instance method of module.exports
Returns: boolean
- Returns true if there's new call history.
Returns the status of the call button's disabled state.
Kind: instance method of module.exports
Returns: boolean
- If true, the call button is disabled.
Sets the status of the call button's disabled state and triggers its animation.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
value | boolean |
The value to set for the call button's disabled state. |
Retrieves the history counter.
Kind: instance method of module.exports
Returns: string
- Returns the history counter, maxed out at '20+' if it's more than 20.
Triggers the animation for the call button based on its state.
Kind: instance method of module.exports
Handles the click on the dial pad and dispatches a 'showdialpad' event.
Kind: instance method of module.exports
Handles the call request event based on the state of the call button.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The triggered event. |
Handles the click on the home icon and dispatches a 'showhomepanel' event.
Kind: instance method of module.exports
Toggles the dial pad and dispatches a 'toggledialpad' event.
Kind: instance method of module.exports
Starts the animation on the given element.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to animate. |
Stops the animation on the given element.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to stop animating. |
This module defines a Lightning Web Component for the home screen of the phone app.
Requires: module:lwc
, module:lightning/navigation
, module:@salesforce/apex
, module:lightning/messageService
, module:c/communicationUtils
, module:c/utils
, module:@salesforce/messageChannel/refreshPageMessageChannel__c
, module:@salesforce/apex/PhoneAppController.getAssignedTasks
, module:@salesforce/apex/PhoneAppController.getAssignedTasksFresh
, module:c/customLabelsUtils
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
HomeScreen
-
module.exports 
NavigationMixin
--- new module.exports()
- .labels
-
.userData() --
Object
- .userData(value)
- .connectedCallback()
- .disconnectedCallback()
-
.showNoCalls() --
boolean
- .handleSetInterval()
- .sendHideSpinnerMessage()
- .wiredTasks()
- .handleLoadMoreResults()
-
.formatDateTime(dateTimeValue) --
string
- .assignTaskToList(task)
- .updateTaskStatuses()
-
.isOverdue(dateTime) --
boolean
- .handleSubjectClick(event)
- .handleNameClick(event)
- .handleCallRequest(event)
-
.handleRefreshTaskList() --
Promise.<void>
- .handleRefreshDetailPage()
-
module.exports 
Kind: Exported class
Extends: NavigationMixin
A class for managing the home screen of the phone app, displaying upcoming, overdue, and all calls. It also handles user interactions like loading more results and updates the task statuses in real-time.
A proxy for handling labels and providing a default label if a label is not found.
Kind: instance property of module.exports
Getter for the user data.
Kind: instance method of module.exports
Returns: Object
- The current user data.
Setter for the user data.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new user data. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
This method is triggered when the component is removed from the DOM.
Kind: instance method of module.exports
Determines if there should be no calls section displayed.
Kind: instance method of module.exports
Returns: boolean
- Returns true if there are any records in the list, otherwise false.
Sets intervals to update the task statuses every minute.
Kind: instance method of module.exports
Sends a message to hide the spinner using the message context.
Kind: instance method of module.exports
Retrieves the assigned tasks based on the user's ID and current offset.
Kind: instance method of module.exports
Wire:
Handles the "Load More" button interaction to load more tasks.
Kind: instance method of module.exports
Formats a date-time value into a specific string representation.
Kind: instance method of module.exports
Returns: string
- The formatted date-time string.
Param | Type | Description |
---|---|---|
dateTimeValue | string |
The date-time value to format. |
Assigns a task to its respective list based on its timing relative to the current time.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
task | Object |
The task to be assigned. |
Updates the statuses of tasks by re-assigning them to their respective categories.
Kind: instance method of module.exports
Determines if a given date-time value represents an overdue time.
Kind: instance method of module.exports
Returns: boolean
- True if the given date-time is overdue, false otherwise.
Param | Type | Description |
---|---|---|
dateTime | string |
The date-time value to check. |
Handles a click on a task subject by navigating to its record page.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the navigation. |
Handles a click on a name by navigating to its associated record page.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the navigation. |
Handles a call request event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the call data. |
Refreshes the task list by re-fetching the tasks and updating their statuses. Also refreshes the detail page.
Kind: instance method of module.exports
Returns: Promise.<void>
- Represents the completion of an asynchronous operation.
Api:
Publishes a message to refresh the detail page.
Kind: instance method of module.exports
Api:
This module defines a Lightning Web Component for the main phone application interface.
Requires: module:lwc
, module:lightning/uiRecordApi
, module:lightning/messageService
, module:@salesforce/apex/PhoneAppController.getUserData
, module:@salesforce/apex/PhoneAppController.logCall
, module:@salesforce/apex/PhoneAppController.handleSearchPhoneNumber
, module:c/constants
, module:c/utils
, module:c/settingsConstants
, module:c/customLabelsUtils
, module:@salesforce/messageChannel/spinnerMessageChannel__c
, module:@salesforce/messageChannel/callToRecordMessageChannel__c
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
PhoneApp
-
module.exports 
LightningElement
--- new module.exports()
-
.readyToUse --
boolean
-
.dataFetched --
boolean
- .labels
- .connectedCallback()
- .disconnectedCallback()
-
.sidebarAvailable() --
void
-
.handleLoadUrls() --
void
-
.generateSessionId() --
string
- .handleAddWindowListeners()
- .handleRemoveWindowListeners()
- .handleCTIMessage(event)
-
.handleLoadDevices() --
void
-
.handleReorderDevices() --
void
-
.handleUpdateDevicesSettings(event) --
void
- .handleGetQuakkerAppSettings()
- .handleIsUserAdmin()
- .handleResize()
- .handleSettingsChanged(event)
- .handleUpdateAgentNumber(event)
- .updateDocumentStyles()
- .handleSettingsUpdate()
- .handleGlobalStylesUpdate()
-
.changeAgentStatusAura(statusName) --
void
- .handleSpinnerMessage(message)
- .handleChildCmpConnected(event)
- .handleChildCmpDisconnected(event)
- .handleNavigateToNextEvent(event)
- .handleCallRequestEvent(event)
- .handleCallPerson()
- .handleTextCampaignEvent(event)
- .handleTextMessageEvent(event)
- .handleTerminateCallEvent()
- .handleHoldCallEvent()
- .handleUnholdCallEvent()
- .handleMuteCallEvent()
- .handleUnmuteCallEvent()
- .handleDtmfEvent(event)
- .handleAcceptCallEvent()
- .handleRequestStatusChangeEvent(event)
- .handleLogoutAgent()
- .handleMissedCallEvent(event)
- .handleStatusChangeEvent(event)
- .handleNewSessionEvent(event)
- .handleSessionStateEvent(event)
- .handleShowQuakkerUtilityEvent()
- .handleCampaignUpdate(campaignId, callingPersonId)
- .handleSendShowQuakkerUtilityEvent(message)
- .handleClickToCall(message)
- .handleCallingCampaignEnded()
- .search(searchKey, event)
- .wiredUser(data, error)
-
.createGloabalSettingRecord() --
Promise.<void>
- .handleUpdateUserSettings()
- .handleCredentialsProvided(event)
- .handleRegistrationStatusEvent(event)
-
.updateUserRecord() --
Promise.<void>
- .handleLogout()
- .handleLogCall(event)
-
.handleMinimize() --
void
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class for managing the main phone application interface, controlling the user interface, handling phone interactions, managing the call state, and handling other user interactions such as changing settings.
Determines if the application is ready to use based on whether WebSocket is populated and user is registered.
Kind: instance property of module.exports
Returns: boolean
- True if the app is ready to use; false otherwise.
Getter:
Determines if necessary data has been fetched.
Kind: instance property of module.exports
Returns: boolean
- True if data has been fetched; false otherwise.
Getter:
A proxy object for the labelsList
which returns 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Properties
Type |
---|
Proxy |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Lifecycle hook that gets called when the component is removed from the DOM. Removes event listeners to prevent memory leaks.
Kind: instance method of module.exports
Side panel availability getter.
Kind: instance method of module.exports
Loads the URLs for the iframe.
Kind: instance method of module.exports
Generates a unique session ID.
Kind: instance method of module.exports
Returns: string
- A unique session ID.
Adds event listeners to the window object.
Kind: instance method of module.exports
Removes event listeners from the window object to prevent memory leaks.
Kind: instance method of module.exports
Handles messages received from the CTI adapter.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | MessageEvent |
The message event containing the data. |
Fetches the list of available devices and assigns the default devices.
Kind: instance method of module.exports
Reorders the list of devices based on the default devices.
Kind: instance method of module.exports
Handles the event when the user settings are updated.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the updated settings. |
Fetches the application settings from the Quakker app and updates the local state.
Kind: instance method of module.exports
Determines if the current user has admin privileges and updates the isAdmin state.
Kind: instance method of module.exports
Handles window resizing and updates app settings accordingly.
Kind: instance method of module.exports
Handles changes in settings from user interactions or other components.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the updated settings. |
Handles changes in the agent number from user interactions or other components.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the updated agent number. |
Updates document styles based on the application settings, particularly for call results.
Kind: instance method of module.exports
Updates the settings based on the current viewport size.
Kind: instance method of module.exports
Updates global styles for the application based on the settings.
Kind: instance method of module.exports
Changes the agent status in the SIP library.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
statusName | string |
The name of the status to change to. |
Handles messages related to displaying or hiding the spinner.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
message | Object |
The message containing spinner visibility data. |
Updates the current component reference when a child component is connected.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the child component's reference. |
Handles the disconnection of child components, setting the property to undefined.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Navigates to the next event when a call is completed.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the navigation details. |
Initiates a call when a call request is received.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the phone number for the call. |
Initiates a call when a call request is received.
Kind: instance method of module.exports
Initiates a call when a call request is received.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the phone number for the call. |
Initiates a call when a call request is received.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the phone number for the call. |
Terminates the current call.
Kind: instance method of module.exports
Puts the current call on hold.
Kind: instance method of module.exports
Resumes the call that was previously on hold.
Kind: instance method of module.exports
Mutes the current active call.
Kind: instance method of module.exports
Unmutes the current muted call.
Kind: instance method of module.exports
Handles DTMF (Dual-Tone Multi-Frequency) signals sent during a call.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the DTMF signal data. |
Accepts an incoming call event by invoking the appropriate SIP library method.
Kind: instance method of module.exports
Handles agent status change requests by invoking the appropriate SIP library method.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the status change request. |
Handles agent logout by invoking the appropriate SIP library method.
Kind: instance method of module.exports
Handles missed call events.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the missed call details. |
Handles agent status change events.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the updated agent status. |
Handles new session events.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the new session details. |
Handles session state change events.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the session state details. |
Handles the show Quakker utility event.
Kind: instance method of module.exports
Calls the updateCampaignRecord
function with the campaign ID, calling person ID, and new status. Displays a toast message to indicate success or failure of the update operation.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
campaignId | String |
The ID of the campaign to update. |
callingPersonId | String |
The ID of the person who is calling. |
Notifies the parent component about the click-to-dial event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
message | Object |
The message containing the click-to-dial data. |
Handles click-to-call messages.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
message | Object |
The message containing the click-to-call data. |
Handles the event when the calling campaign ends.
Kind: instance method of module.exports
Searches for a person based on a phone number key and handles logging of the call.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
searchKey | string |
The phone number to search. |
event | Event |
The event containing the call details. |
Retrieves user data and populates it into the component.
Kind: instance method of module.exports
Wire:
Param | Type | Description |
---|---|---|
data | Object |
The user data. |
error | Object |
Any error that occurred during data retrieval. |
Creates a global setting record for the Quakker app.
Kind: instance method of module.exports
Returns: Promise.<void>
- Represents the completion of an asynchronous operation.
Updates the user settings in the database.
Kind: instance method of module.exports
Handles the event when SIP credentials are provided.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the provided SIP credentials and websocket. |
Listens for registration status events and performs appropriate actions.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the status of the SIP registration. |
Updates the user record with SIP credentials.
Kind: instance method of module.exports
Returns: Promise.<void>
- Represents the completion of an asynchronous operation.
Logs out the agent, clears the SIP credentials and updates the user record.
Kind: instance method of module.exports
Handles logging of calls.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the call to be logged. |
Handles the event when the user clicks the minimize button.
Kind: instance method of module.exports
This module defines a Lightning Web Component for handling phone app settings.
Requires: module:lwc
, module:c/customLabelsUtils
, module:c/utils
, module:lightning/messageService
, module:c/communicationUtils
, module:@salesforce/resourceUrl/close_icon
, module:@salesforce/resourceUrl/close_icon_static
, module:@salesforce/resourceUrl/exit_icon
, module:@salesforce/resourceUrl/exit_icon_static
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
Kind: Exported class
Extends: LightningElement
This module defines a Lightning Web Component for managing the phone call screen.
Requires: module:lwc
, module:c/utils
, module:c/constants
, module:lightning/messageService
, module:c/communicationUtils
, module:@salesforce/resourceUrl/call_icon_static
, module:@salesforce/resourceUrl/exit_icon
, module:@salesforce/resourceUrl/addtask_icon
, module:@salesforce/resourceUrl/addtask_icon_static
, module:@salesforce/resourceUrl/addnumber_icon
, module:@salesforce/resourceUrl/addnumber_icon_static
, module:@salesforce/resourceUrl/dialpad_icon
, module:@salesforce/resourceUrl/dialpad_icon_static
, module:c/customLabelsUtils
, module:@salesforce/apex/PhoneAppController.logCall
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
PhoneCallScreen
- .callingPerson
- .callingPerson
- .isSingleContact
- .isSingleContact
- .callInitiated
- .callInitiated
- .callInProgress
- .callInProgress
-
.disableTaskBtn --
boolean
-
.disableInputs --
boolean
-
.disableWhatIdLookup --
boolean
-
.holdButtonLabel --
string
-
.muteButtonLabel --
string
-
.noteInputValue --
string
- .labels
-
.selectedCampaign() --
Object
- .selectedCampaign(value)
-
.appSettings() --
Object
- .appSettings(value)
-
.phoneNumber() --
string
- .phoneNumber(value)
- .connectedCallback()
- .disconnectedCallback()
-
.beforeUnloadHandler(event) --
void
-
.handleNewSessionEvent(event) --
void
-
.handleCustomLookupSet() --
void
-
.handleFetchRelatedRecords(event) --
void
- .campaignMembersStatusesResults(param0)
- .handleChildCmpConnected(event)
- .handleChildCmpDisconnected(event)
- .handleContactPicked(event)
- .handleShowDialpad()
- .handleSendDTMFEvent(event)
- .handleLoadTimerClass()
- .handleLoadHoldButtonClass()
- .handleLoadMuteButtonClass()
- .handleLoadDialpadButtonClass()
- .handleTerminateCall()
- .changeTimerManually()
-
.handleTimer(status) --
void
-
.handleUpdateCampaign(status) --
void
-
.disableCallNext() --
boolean
-
.handleCallNextBtnClick() --
void
- .resetAllButtons()
- .startTimer()
- .pauseTimer()
- .toggleAddNumber()
- .toggleStatusScreen()
- .handleNewTaskClick()
- .toggleNewTask()
- .handleSelectedWhatId(event)
- .handleCallResultChange(event)
-
.handleUpdateCampaignItemEvent(status, endInteraction) --
void
- .handleButtonStyleChange(buttonName)
- .handleLoadClass(elementName)
- .handleHold()
- .handleMute()
- .handleTerminateCallEvent()
- .handleRecordCreatedEvent(event)
-
.handleConfirmStatus(event) --
void
-
.handleUpdateCampaignMemberStatus(status) --
void
-
.handleCancelMultipleRecords() --
void
-
.handleUpdateQuickCampaign() --
void
- .resetVariables()
- .handleOnChangeNote(event)
-
.handleSaveMultipleTasks(event) --
void
-
.handleSkipSaveMultipleTasks() --
void
- .handleLogCall()
-
.handleNavigateToNextBtnClicked() --
void
- .handleExitEvent()
- .handleStayEvent()
- .handleCancelStatus()
- .handleClosePhoneCallScreenEvent()
- .handleExit()
- .prepareStartAnimation(event)
- .prepareStopAnimation(event)
Gets the contact information.
Kind: instance property of PhoneCallScreen
Getter:
Sets the contact information
Kind: instance property of PhoneCallScreen
Setter:
Param | Type | Description |
---|---|---|
value | Object |
The contact information. |
Determines if only one contact is being displayed
Kind: instance property of PhoneCallScreen
Getter:
Sets whether only one contact is being displayed
Kind: instance property of PhoneCallScreen
Setter:
Param | Type | Description |
---|---|---|
value | Boolean |
The single contact flag |
Determines if a call has been initiated
Kind: instance property of PhoneCallScreen
Getter:
Sets whether a call has been initiated
Kind: instance property of PhoneCallScreen
Setter:
Param | Type | Description |
---|---|---|
value | Boolean |
The call initiated flag |
Determines if a call is currently in progress
Kind: instance property of PhoneCallScreen
Getter:
Sets whether a call is currently in progress
Kind: instance property of PhoneCallScreen
Setter:
Param | Type | Description |
---|---|---|
value | Boolean |
The call in progress flag |
Determines if the task button should be disabled.
Kind: instance property of PhoneCallScreen
Returns: boolean
- True if the button should be disabled, false otherwise.
Getter:
Determines if the inputs should be disabled.
Kind: instance property of PhoneCallScreen
Returns: boolean
- True if the inputs should be disabled, false otherwise.
Getter:
Determines if the WhatId functionality should be disabled.
Kind: instance property of PhoneCallScreen
Returns: boolean
- True if WhatId functionality should be disabled, false otherwise.
Getter:
Defines which label to show on the hold button.
Kind: instance property of PhoneCallScreen
Returns: string
- The label to show on the hold button.
Getter:
Defines which label to show on the mute button.
Kind: instance property of PhoneCallScreen
Returns: string
- The label to show on the mute button.
Getter:
Retrieves the current value of the note input.
Kind: instance property of PhoneCallScreen
Returns: string
- The current value of the note input.
Getter:
A proxy for label list which returns a default error label if a specific label is not found.
Kind: instance property of PhoneCallScreen
Getter for the selectedCampaign value.
Kind: instance method of PhoneCallScreen
Returns: Object
- The current selectedCampaign object.
Api:
Setter for the selectedCampaign value.
Kind: instance method of PhoneCallScreen
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new selectedCampaign object. |
Getter for the application settings.
Kind: instance method of PhoneCallScreen
Returns: Object
- The current application settings.
Setter for the application settings, updates call results based on the new settings.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
value | Object |
The new application settings. |
Getter for the phoneNumber value.
Kind: instance method of PhoneCallScreen
Returns: string
- The current phoneNumber value.
Setter for the phoneNumber value.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
value | string |
The new phoneNumber value. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of PhoneCallScreen
This method is triggered when the component is removed from the DOM.
Kind: instance method of PhoneCallScreen
Unloads the event listener for the beforeunload event.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the event of a new session being initiated.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing the details of the new session. |
Sets the custom lookup objects based on the selected campaign.
Kind: instance method of PhoneCallScreen
Handles the event of a new record being selected and updates the selected record.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing the selected record's details. |
Handles the result of the getPicklistValues wire adapter for campaign member statuses.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
param0 | object |
The result object containing error and data properties. |
param0.error | Error |
The error object if an error occurred during the wire adapter call. |
param0.data | object |
The data object containing the picklist values. |
Listens to child component's connected event and initializes the corresponding variable.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the connected child component. |
Handles the disconnection of child components, setting the property to undefined.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Listens to contact picked event and dispatches a custom event with the selected contact details.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the picked contact. |
Toggles the visibility of the dial pad.
Kind: instance method of PhoneCallScreen
Dispatches a 'dtmf' custom event with the provided detail.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing the DTMF (Dual-Tone Multi-Frequency) signal data. |
Loads the CSS class for the timer display.
Kind: instance method of PhoneCallScreen
Loads the CSS class for the hold button.
Kind: instance method of PhoneCallScreen
Loads the CSS class for the mute button.
Kind: instance method of PhoneCallScreen
Loads the CSS class for the dial pad button.
Kind: instance method of PhoneCallScreen
Handles the termination of a call. Changes the timer background color and pauses the timer.
Kind: instance method of PhoneCallScreen
Api:
Sets the timer class and background color, and updates the timer text to "Calling...".
Kind: instance method of PhoneCallScreen
Handles the timer based on the provided status.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
status | string |
The status of the timer ('failed', 'start', 'calling'). |
Updates the campaign status and performs corresponding actions.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
status | string |
The new status of the campaign. |
Determines if the call next button should be disabled.
Kind: instance method of PhoneCallScreen
Returns: boolean
- - True if the call next button should be disabled, false otherwise.
Handles the click event of the "Call Next" button.
Kind: instance method of PhoneCallScreen
Resets the styles of all buttons to their default state. This method iterates through a predefined list of button classes and applies default styling to each.
Kind: instance method of PhoneCallScreen
Api:
Initiates the timer which updates every second, showing the duration of the ongoing call.
Kind: instance method of PhoneCallScreen
Pauses the timer and formats the call duration to show hours, minutes, and seconds.
Kind: instance method of PhoneCallScreen
Toggles the visibility of the add number functionality.
Kind: instance method of PhoneCallScreen
Toggles the visibility of the set status functionality.
Kind: instance method of PhoneCallScreen
Resets the task subject and toggles the new task view.
Kind: instance method of PhoneCallScreen
Toggles the visibility of the new task creation functionality.
Kind: instance method of PhoneCallScreen
Listens to the event of an WhatId being selected and updates the selected WhatId parameter.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing the selected WhatId's details. |
Listens to changes in fast notes and formats the note input accordingly. If certain fast note options are selected, a new task modal may be triggered.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing the selected fast note's details. |
Handles the update campaign item event.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
status | string |
The status of the campaign item. |
endInteraction | boolean |
Indicates whether the interaction should be ended. |
Changes the styles of the specified button based on its current state (clicked or unclicked).
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
buttonName | string |
The class name of the button to be styled. This method dynamically checks if the button is loaded and applies style changes based on its current state. |
Dynamically loads the CSS class for a specified element.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
elementName | string |
The name of the element for which to load the CSS class. This method uses a naming convention to determine the CSS selector and the variable name where the class is stored. |
Toggles the hold state of the call, updating UI elements and dispatching events accordingly.
Kind: instance method of PhoneCallScreen
Toggles the mute state of the call, updating UI elements and dispatching events accordingly.
Kind: instance method of PhoneCallScreen
Handles the termination of a call by invoking the terminate call method and dispatching a custom event to notify of the termination.
Kind: instance method of PhoneCallScreen
Processes the creation of a new record and updates the calling person's details.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the created record. |
Handles the confirmation status of the phone call.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event object containing the details of the confirmation status. |
Updates the status of a Campaign Member.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
status | string |
The new status value for the Campaign Member. |
Handles the cancellation of multiple records and navigates to the previous screen.
Kind: instance method of PhoneCallScreen
Updates the Quick Campaign record with the selected campaign's JSON.
Kind: instance method of PhoneCallScreen
Resets specific variables to their default values.
Kind: instance method of PhoneCallScreen
Updates the note input based on user input.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing the note's text. |
Handles the event of a new task being created and updates the task subject.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event containing the new task's details. |
Handles the event of skipping the creation of multiple tasks and exits the phone call screen.
Kind: instance method of PhoneCallScreen
Logs the call with provided details and shows a success or error message accordingly.
Kind: instance method of PhoneCallScreen
Handles the click event of the "Navigate To Next" button.
Kind: instance method of PhoneCallScreen
Handles the exit event by invoking the exit method.
Kind: instance method of PhoneCallScreen
Handles the decision to stay on the current screen and hides the unsaved changes modal.
Kind: instance method of PhoneCallScreen
Handles the event of a status being cancelled and navigates to the previous screen.
Kind: instance method of PhoneCallScreen
Manages the event to close the phone call screen, ensuring there are no unsaved changes.
Kind: instance method of PhoneCallScreen
Manages the process of exiting the phone call screen, logging the call and resetting variables.
Kind: instance method of PhoneCallScreen
Initiates the animation for a specific event target.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event that triggers the animation. |
Stops the animation for a specific event target.
Kind: instance method of PhoneCallScreen
Param | Type | Description |
---|---|---|
event | Event |
The event that stops the animation. |
This module defines a Lightning Web Component that provides an interface for either staying on or exiting the phone call screen.
Requires: module:lwc
, module:c/customLabelsUtils
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
PhoneCallScreenExitScreen
-
module.exports 
LightningElement
--
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class that handles user interactions for staying on or exiting the phone call screen. It provides methods to handle both actions and uses custom styles for the component.
Proxy wrapper for the labelsList, providing a fallback label in case the requested label is missing.
Kind: instance property of module.exports
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Dispatches an event to indicate the user's desire to stay on the phone call screen.
Kind: instance method of module.exports
Dispatches an event to indicate the user's desire to exit the phone call screen.
Kind: instance method of module.exports
This module defines a Lightning Web Component for handling phone interactions.
Requires: module:lwc
, module:lightning/navigation
, module:@salesforce/apex
, module:@salesforce/resourceUrl
, module:lightning/platformResourceLoader
, module:c/constants
, module:c/utils
, module:c/customLabelsUtils
-
PhoneContainer
-
module.exports 
NavigationMixin
--- new module.exports()
-
instance
- .labels
- .connectedCallback()
- .disconnectedCallback()
-
.userData() --
Object
- .userData(value)
-
.appSettings() --
Object
- .appSettings(value)
-
.isAdmin() --
Boolean
- .isAdmin(value)
-
.devices() --
Object
- .devices(value)
-
.defaultDevices() --
Object
- .defaultDevices(value)
- .handleFetchNewCampaignData(message)
- .handleUpdateAgentNumber(event)
- .handleUpdateCampaignJSON(newCampaignJSON)
-
.agentStatus() --
string
- .agentStatus(value)
- .handleChildCmpConnected(event)
- .handleChildCmpDisconnected(event)
-
.getCallingPersonId() --
string
- .wiredFieldLabels()
- .wiredcallHistory(result)
- .handleUpdateOffsetEvent()
- .updateMissedCallsCounter()
- .handleCallingPersonUpdateEvent(event)
- .handleUpdateCallingPerson(event)
- .navigateToRecordDetail()
- .handleChangeScreen(screen)
- .handleChangeSection(section)
- .setHomeScreen()
- .setPhoneCallScreen()
- .setCallingScreen()
- .setHomeSection()
- .setHistorySection()
- .setContactInfoSection()
- .setDialPadSection()
- .handleToggleAddToCampaign()
- .displayAppSettings()
- .hideAppSettings()
- .handleChangeInputEventSearchBar(event)
- .handleChangeInputEventDialPad(event)
-
.sanitizeNumber(number) --
string
-
.isNumberValid(number) --
boolean
- .handleUpdateResultsEvent(event)
- .handleContactPicked(event)
- .handleSingleContactEvent()
- .handleTextMessageEvent(event)
- .handleHistoryCallEvent(event)
- .handleUpcomingCallEvent(event)
- .handleSearchbarCallEvent()
- .handleRequestStatusChangeEvent(event)
- .handleClickToCallEvent(message)
- .updateAgentStatus(newStatus)
- .handleCallCampaignEvent(event)
- .handleCallNextEvent()
- .handleTextCampaignEvent(event)
- .handleCampaignSelectedEvent(event)
- .fetchQuickCampaignById(quickCampaignId)
- .handleNavigateToNextEvent()
- .handleDispatchNavigateToNextEvent()
- .handleAssignDataToCallingPerson(personData)
- .handleCallRequestEvent()
- .handleSettingsChanged(event)
-
.handleUpdateDevicesSettings(event) --
void
- .handleSendDTMFEvent(event)
- .handleHoldCallEvent()
- .handleUnholdCallEvent()
- .handleMuteCallEvent()
- .handleUnmuteCallEvent()
- .handleTerminateCallEvent()
-
.handleNewSessionEvent(event) --
void
- .handleSessionStateEvent(event)
- .handleCallAccepted()
- .handleInvokeTimerMethod(status)
- .handleUpdateCampaignItemEvent(event)
- .handleUpdateCampaign(status, endInteraction)
- .handleTaskCompleted()
- .handleCallEnded()
- .handleCallConfirmed()
- .handleCallFailed()
- .handleCallInProgress()
- .handleSendShowQuakkerUtilityEvent()
- .clearData()
- .prepareDataForCallNext()
- .handleRejectCallEvent()
- .handleAcceptCallEvent()
- .handleClosePhoneCallScreenEvent()
- .handleShowHomePanelEvent()
- .handleShowCampaignScreenEvent()
- .handleExitCampaignScreenEvent()
- .handleItemSelected(event)
- .handleShowHistoryPanelEvent()
- .handleCallEventCreated()
- .handleLogout()
- .updateHistoryCounter(counter)
- .handleRefreshHistoryList()
- .playRingtone()
- .stopRingtone()
- .prepareStartAnimation(event)
- .prepareStopAnimation(event)
- .handleMinimize()
- inner
-
module.exports 
Kind: Exported class
Extends: NavigationMixin
A class for managing phone interactions, controlling UI based on call state, and handling user interactions like dialing, accepting, or ending a call. It also manages the call history and missed calls.
A proxy object for the labelsList
which returns 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Properties
Type |
---|
Proxy |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
This method is triggered when the component is removed from the DOM.
Kind: instance method of module.exports
Getter for the user data.
Kind: instance method of module.exports
Returns: Object
- The current user data.
Setter for the user data.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new user data. |
Getter for the application settings.
Kind: instance method of module.exports
Returns: Object
- The current application settings.
Setter for the application settings, updates call results based on the new settings.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
value | Object |
The new application settings. |
Getter for the admin status.
Kind: instance method of module.exports
Returns: Boolean
- True if the user is an admin, false otherwise.
Setter for the admin status.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
value | Boolean |
The new admin status. |
Getter for the devices.
Kind: instance method of module.exports
Returns: Object
- The current devices.
Setter for the devices.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
value | Object |
The new devices. |
Getter for the default devices.
Kind: instance method of module.exports
Returns: Object
- The default devices.
Setter for the default devices.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new default devices. |
Handles new data received for a campaign from a platform event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
message | Object |
The message payload from the platform event. |
Dispatches an event to update agent number settings based on user interaction.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the updated agent number settings. |
Updates the campaign JSON with new data fetched from the server.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
newCampaignJSON | Object |
The new campaign data to be used. |
Getter for the agentStatus value.
Kind: instance method of module.exports
Returns: string
- The current agentStatus value.
Api:
Setter for the agentStatus value.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | string |
The new agentStatus value. |
Handles the connection of child components, associating the event target with a property.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the disconnection of child components, setting the property to undefined.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Retrieves the ID of the calling person if available.
Kind: instance method of module.exports
Returns: string
- - The ID of the calling person or null if not available.
Wired method to fetch field labels.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
Object |
Destructured object containing error and data properties. |
Wired method to fetch call history.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
result | Object |
The result object containing data and error properties. |
Handler for updating the offset for paginated call history fetching.
Kind: instance method of module.exports
Updates the missed calls counter from local storage.
Kind: instance method of module.exports
Handler for updating the calling person information upon receiving an event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Updates the calling person information.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Navigates to the record detail page of the calling person.
Kind: instance method of module.exports
Changes the screen view based on the screen type provided.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
screen | string |
The screen type. |
Changes the section view based on the section type provided.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
section | string |
The section type. |
Sets the view to the home screen and changes the section to the home section.
Kind: instance method of module.exports
Sets the view to the phone call screen.
Kind: instance method of module.exports
Sets the view to the calling screen.
Kind: instance method of module.exports
Sets the view to the home section.
Kind: instance method of module.exports
Sets the view to the history section.
Kind: instance method of module.exports
Sets the view to the contact info section.
Kind: instance method of module.exports
Toggles the view of the dial pad section.
Kind: instance method of module.exports
Toggles the view of the dial pad section.
Kind: instance method of module.exports
Displays the application settings.
Kind: instance method of module.exports
Hides the application settings.
Kind: instance method of module.exports
Handles the change of input from search bar, updating the input value, and determining whether to enable the call button and show results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the change of input from dial pad, updating the input value, and determining whether to enable the call button and show results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Removes all whitespace, hyphens, and parentheses from a phone number.
Kind: instance method of module.exports
Returns: string
- - The sanitized phone number.
Param | Type | Description |
---|---|---|
number | string |
The phone number to sanitize. |
Validates a phone number against a specific pattern, ignoring whitespace and hyphens.
Kind: instance method of module.exports
Returns: boolean
- - Whether the phone number is valid.
Param | Type | Description |
---|---|---|
number | string |
The phone number to validate. |
Handles the update of search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the selection of a contact, updating the calling person and navigating to the record detail.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the event of a single contact, triggering a call request event.
Kind: instance method of module.exports
Handles the event of a message being sent, updating the calling person and triggering a call request event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the event of a history call, updating the calling person and triggering a call request event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles an upcoming call event, setting up the calling person, phone number, and new task details.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing call details. |
Handles a call event triggered from the search bar, setting up the phone number and calling person, and initiating the call request.
Kind: instance method of module.exports
Dispatches an agent status change event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing the new status. |
Handles a click to call event, looking up the record by ID and updating the calling person and phone number.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
message | object |
The message object containing the record ID. |
Updates the agent status and propagates the change to the child component.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
newStatus | string |
The new status of the agent. |
Handles the event for initiating a call within a campaign.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing campaign details. |
Handles the event for initiating a call within a campaign.
Kind: instance method of module.exports
Handles the event for initiating a call within a campaign.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing campaign details. |
Handles the event when a campaign is selected by the user.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing the selected campaign details. |
Fetches a quick campaign by its ID from the server.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
quickCampaignId | String |
The ID of the quick campaign to fetch. |
Handles the event navigate to next contact in the campaign list.
Kind: instance method of module.exports
Prepares the data for the next call in the campaign.
Kind: instance method of module.exports
Assigns fetched data to the calling person object in the component state.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
personData | Object |
The data of the person to be assigned. |
Initiates a call request if the phone number is valid, or shows a toast message if it's not.
Kind: instance method of module.exports
Dispatches a settings changed event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing the updated settings. |
Handles the event for updating the devices settings.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing the updated devices settings. |
Dispatches a 'dtmf' custom event with the provided detail.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the DTMF (Dual-Tone Multi-Frequency) signal data. |
Dispatches a 'holdcall' custom event indicating a request to hold the current call.
Kind: instance method of module.exports
Dispatches an 'unholdcall' custom event indicating a request to unhold the current call.
Kind: instance method of module.exports
Dispatches a 'mutecall' custom event indicating a request to mute the current call.
Kind: instance method of module.exports
Dispatches an 'unmutecall' custom event indicating a request to unmute the current call.
Kind: instance method of module.exports
Dispatches a terminate call event.
Kind: instance method of module.exports
Handles the event for starting the new session event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing the session details. |
Handles a session state event, updating the phone number, unique call ID, and handling the call state accordingly.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
event | Event |
The event object containing the session state, phone number, and unique call ID. |
Handles a call accepted state, stopping the ringtone if the call was not initiated, changing the screen to the phone call screen, and marking the task as completed.
Kind: instance method of module.exports
Invokes a method related to the call timer on the child component.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
status | String |
The status to pass to the timer method. |
Handles the event for updating a specific item within a campaign.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing details for the update. |
Updates the campaign status based on interactions or decisions made during a call.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
status | String |
The new status to apply to the campaign or campaign item. |
endInteraction | Boolean |
Indicates whether the interaction with the current campaign item has ended. |
Marks the task as completed asynchronously, and refreshes the detail page if the update is successful.
Kind: instance method of module.exports
Handles a call ended state, terminating the call on the phone call screen, and showing a toast message to notify the user.
Kind: instance method of module.exports
Handles a call confirmed state, changing the screen to the phone call screen, and showing a toast message to notify the user.
Kind: instance method of module.exports
Handles a failed call event by stopping the ringtone (if not initiated by the user), clearing data, and redirecting the user to the home screen with a toast message.
Kind: instance method of module.exports
Handles a call in progress event by playing the ringtone (if not initiated by the user), changing the screen to the calling screen, and displaying a toast message.
Kind: instance method of module.exports
Handles the event for showing the Quakker utility.
Kind: instance method of module.exports
Clears the current data related to the call, search results, and input fields.
Kind: instance method of module.exports
Prepares the component state for the next call within a campaign by resetting relevant data.
Kind: instance method of module.exports
Dispatches a custom event to reject the call.
Kind: instance method of module.exports
Dispatches a custom event to accept the call.
Kind: instance method of module.exports
Clears data, refreshes the task list on the home screen, updates agent status and navigates the user back to the home screen.
Kind: instance method of module.exports
Clears data and navigates the user to the home section.
Kind: instance method of module.exports
Handles the event to show the campaign screen.
Kind: instance method of module.exports
Handles the event to exit the campaign screen and return to the previous state.
Kind: instance method of module.exports
Handles selection events in the UI, such as selecting tasks or campaigns from a menu.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing details of the item selected. |
Clears data and navigates the user to the history section, updating the missed calls counter if necessary.
Kind: instance method of module.exports
Handles the event when a call is created by refreshing the history list.
Kind: instance method of module.exports
Dispatches a custom event to logout.
Kind: instance method of module.exports
Updates the history counter with the number of new missed calls.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
counter | number |
The number of new missed calls. |
Refreshes the call history list and updates the missed calls counter asynchronously if the call history data has changed.
Kind: instance method of module.exports
Api:
Initiates the ringtone play and updates the document title with the incoming call information.
Kind: instance method of module.exports
Stops the ringtone play and restores the document title.
Kind: instance method of module.exports
Prepares the start of an animation on a specified element.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Prepares the stop of an animation on a specified element.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the minimize button click event.
Kind: instance method of module.exports
Subscribes to a platform event channel to listen for events.
Kind: inner method of module.exports
Unsubscribes from the platform event channel to stop listening for events.
Kind: inner method of module.exports
Initiates the process of adding a person to a campaign by toggling the UI component and setting the person data.
Kind: inner method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
Contains details of the person to be added to the campaign. |
This module defines a Lightning Web Component (LWC) that serves as a welcome screen for the Quakker application.
Requires: module:api
, module:LightningElement
, module:wire
, module:quakkerLogoWelcome
, module:loadStyle
, module:Styles
, module:toastStyling
, module:communicationUtils
, module:MessageContext
, module:labelsList
-
quakkerWelcomeScreen
-
module.exports 
LightningElement
--- new module.exports()
- .labels
- .connectedCallback()
- .disconnectedCallback()
- .sendHideSpinnerMessage()
-
.userData() --
Object
- .userData(value)
- .handleCredentialsProvided(event)
- .handleCreateTrialAccount()
- .handleStandardPanel()
- .handleBackToOptions()
-
.showWelcomeOptions() --
Boolean
-
.showStandardLogin() --
Boolean
-
.showTrialForm() --
Boolean
-
module.exports 
Kind: Exported class
Extends: LightningElement
A Lightning Web Component that displays a welcome screen for Quakker. It handles user interactions for navigating between different modes (welcome, trial, standard).
Provides a proxy for label list, defaulting to 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Lifecycle hook that is invoked when the component is inserted into the DOM. It sets the initial display mode and loads necessary styles.
Kind: instance method of module.exports
Lifecycle hook that is invoked when the component is removed from the DOM.
Kind: instance method of module.exports
Sends a message to hide the spinner.
Kind: instance method of module.exports
Getter for the user data.
Kind: instance method of module.exports
Returns: Object
- The current user data.
Setter for the user data.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new user data. |
Handles the event when credentials are provided.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the provided credentials. |
Handles the action to create a trial account. It changes the display mode to 'trial' and hides the welcome logo.
Kind: instance method of module.exports
Handles the action to show the standard login panel. It changes the display mode to 'standard' and hides the welcome logo.
Kind: instance method of module.exports
Handles the action to go back to the welcome options. It changes the display mode to 'welcome' and shows the welcome logo.
Kind: instance method of module.exports
Getter that determines if the welcome options should be displayed.
Kind: instance method of module.exports
Returns: Boolean
- True if the display mode is 'welcome', false otherwise.
Getter that determines if the standard login panel should be displayed.
Kind: instance method of module.exports
Returns: Boolean
- True if the display mode is 'standard', false otherwise.
Getter that determines if the trial form should be displayed.
Kind: instance method of module.exports
Returns: Boolean
- True if the display mode is 'trial', false otherwise.
This module defines a Lightning Web Component for handling search bar interactions.
Requires: module:lwc
, module:c/customLabelsUtils
, module:@salesforce/resourceUrl/erease_icon
, module:@salesforce/resourceUrl/search_icon
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
SearchBar
-
module.exports --
- new module.exports()
-
.searchValue --
string
- .searchValue
- .labels
- .connectedCallback()
- .disconnectedCallback()
- .handleChangeInput(event)
- .handleKeyUp(event)
- .handleEraseInput()
- .focusOnInput()
- .handleChangeInputEvent()
- .handleCallRequestEvent()
- .prepareStartAnimation(event)
- .prepareStopAnimation(event)
-
module.exports --
A class for managing search bar interactions, such as typing in search value, triggering search when pressing the enter key, and erasing input value.
Returns the current value of the search input.
Kind: instance property of module.exports
Returns: string
- The current value of the search input field.
Getter:
Sets the value of the search input and triggers the input change event handler.
Kind: instance property of module.exports
Setter:
Param | Type | Description |
---|---|---|
value | string |
The new value to set for the search input field. |
Provides a proxy for label list, defaulting to 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
This method is triggered when the component is removed from the DOM.
Kind: instance method of module.exports
Handles changes in the input field and dispatches a corresponding event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The change event from the input field. |
Handles key up event, triggering a call request event when enter key is pressed.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The key up event from the input field. |
Erases the last character from the search input and sets focus on the input.
Kind: instance method of module.exports
Sets focus on the search input field.
Kind: instance method of module.exports
Dispatches a change input event with the current search value.
Kind: instance method of module.exports
Dispatches a call request event.
Kind: instance method of module.exports
Starts the animation on the given element.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to animate. |
Stops the animation on the given element.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to stop animating. |
This module defines a Lightning Web Component for managing search functionality within a container.
Requires: module:lwc
, module:c/utils
, module:@salesforce/apex/PhoneAppController.handleSearchPhoneNumber
, module:c/customLabelsUtils
, module:lightning/platformResourceLoader
, module:@salesforce/resourceUrl/Styles
-
SearchContainer
-
module.exports --
- new module.exports()
-
instance
- .contact
- .contact
- .isSingleContact
- .isSingleContact
- .callInitiated
- .callInitiated
- .callInProgress
- .callInProgress
- .labels
- .connectedCallback()
- .disconnectedCallback()
-
.inputValue() --
string
- .inputValue(value)
- .updateContact(record)
- .renderedCallback()
- .handleContactPickedEvent()
- .handleContactClicked(event)
- .handleUpdateResultsEvent(event)
- .handleCallRequestFromResults(event)
- .handleTextMessageEvent(event)
- .handleContactAssign(event)
- .handleCallRequest()
- .handleBackToResults()
- .handleClearContactData()
- .handleResetBeforeSearch()
- .handleSearch()
- .search(searchKey)
- .handleLoadMoreResults(event)
- .handleChangeSection(section)
- .setContactSection()
- .setResultsSection()
- .setNodataSection()
- .setDefaultSection()
- inner
-
module.exports --
A class for managing search functionality, handling search results, displaying specific sections based on data and user interactions.
Gets the contact information.
Kind: instance property of module.exports
Getter:
Sets the contact information
Kind: instance property of module.exports
Setter:
Param | Type | Description |
---|---|---|
value | Object |
The contact information. |
Determines if only one contact is being displayed
Kind: instance property of module.exports
Getter:
Sets whether only one contact is being displayed
Kind: instance property of module.exports
Setter:
Param | Type | Description |
---|---|---|
value | Boolean |
The single contact flag |
Determines if a call has been initiated
Kind: instance property of module.exports
Getter:
Sets whether a call has been initiated
Kind: instance property of module.exports
Setter:
Param | Type | Description |
---|---|---|
value | Boolean |
The call initiated flag |
Determines if a call is currently in progress
Kind: instance property of module.exports
Getter:
Sets whether a call is currently in progress
Kind: instance property of module.exports
Setter:
Param | Type | Description |
---|---|---|
value | Boolean |
The call in progress flag |
Provides a proxy for label list, defaulting to 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
This method is triggered when the component is removed from the DOM.
Kind: instance method of module.exports
Getter for the input value.
Kind: instance method of module.exports
Returns: string
- The current input value.
Api:
Setter for the input value.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | string |
The new input value. |
Updates the contact data.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
record | Object |
The new contact record. |
Callback invoked once the component has been rendered.
Kind: instance method of module.exports
Handles a contact being picked.
Kind: instance method of module.exports
Handles the event when a contact is clicked.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The click event. |
Handles the event to update the search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The results update event. |
Handles the event to initiate a call from the search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The call request event. |
Handles the event to initiate a call from the search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The call request event. |
Assigns a specific contact.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The contact assignment event. |
Handles the request to initiate a call.
Kind: instance method of module.exports
Handles the action to navigate back to the results section.
Kind: instance method of module.exports
Clears the contact data.
Kind: instance method of module.exports
Resets the necessary fields before initiating a search operation.
Kind: instance method of module.exports
Initiates the search operation based on the input value.
Kind: instance method of module.exports
Executes the search operation based on the provided search key.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
searchKey | string |
The key to search for. |
Handles the event to load more search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The load more results event. |
Handles the display and functionality of different sections in the component.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
section | string |
The section identifier. |
Sets the view to the contact section.
Kind: instance method of module.exports
Sets the view to the results section.
Kind: instance method of module.exports
Sets the view to the no-data section.
Kind: instance method of module.exports
Sets the view to the default section.
Kind: instance method of module.exports
Dispatches a custom event to add a person to a campaign, using details from the original event payload.
Kind: inner method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object containing the details of the person to be added. |
This module defines a Lightning Web Component for displaying search results.
Requires: module:lwc
, module:c/customLabelsUtils
, module:c/utils
Kind: Exported class
Extends: LightningElement
A class responsible for rendering and managing search results, handling user interactions with the results, and emitting appropriate events based on user actions.
Checks if the sms feature is enabled.
Kind: instance property of module.exports
Getter:
Provides a proxy for label list, defaulting to 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Handles the event when a contact is clicked.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The click event. |
Stops event propagation and dispatches a custom event to add a person to a campaign, using dataset information from the current target of the event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The event object, where the current target's dataset contains the person's details to be added. |
Handles the call request from the displayed search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The call request event. |
Handles the call request from the displayed search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The call request event. |
Handles the event to load more search results.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The load more results event. |
Prepares the contact data before emitting any events.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The contact preparation event. |
This module defines a Lightning Web Component for handling SIP based communication using the JsSIP library.
Requires: module:lwc
, module:@salesforce/resourceUrl/jssip3100min
, module:lightning/platformResourceLoader
, module:lightning/messageService
, module:c/communicationUtils
, module:c/constants
, module:c/customLabelsUtils
, module:c/utils
-
SipLibController
-
module.exports 
LightningElement
--- new module.exports()
-
.appSettings --
Object
- .appSettings
-
.userData --
Object
- .userData
-
.defaultDevices --
Object
- .defaultDevices
-
.agentStatus --
string
- .agentStatus
- .labels
- .connectedCallback()
- .disconnectedCallback()
- .renderedCallback()
- .initializeJsSip()
- .handleIncomingCall(newSession, completeSession, cmpThis)
- .handleOutgoingCall(newSession, completeSession, cmpThis)
- .handleSessionState(state)
- .handleRegistration(status)
- .handleAgentStatusChange(agentStatus)
- .handleInformParentAboutNewSession(phone)
- .handleMissedCall(phone, missedCall, uniqueCallId, inProgress)
- .handleHoldCall()
- .handleUnholdCall()
- .handleMuteCall()
- .handleUnmuteCall()
- .handleDtmf(event)
- .handleTerminateCall()
- .answerCall()
- .makeCall(callRequest)
- .changeAgentStatus(event)
- .logoutAgent()
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class for managing SIP based communication using the JsSIP library, which helps in initiating, managing, and terminating SIP sessions. It also handles the SIP registration and various SIP events.
Getter for the appSettings value.
Kind: instance property of module.exports
Returns: Object
- The current appSettings object.
Api:
Getter:
Setter for the appSettings value.
Kind: instance property of module.exports
Api:
Setter:
Param | Type | Description |
---|---|---|
value | Object |
The new appSettings object. |
Getter for the userData value.
Kind: instance property of module.exports
Returns: Object
- The current userData object.
Api:
Getter:
Setter for the userData value.
Kind: instance property of module.exports
Api:
Setter:
Param | Type | Description |
---|---|---|
value | Object |
The new userData object. |
Getter for the defaultDevices value.
Kind: instance property of module.exports
Returns: Object
- The current defaultDevices object.
Getter:
Setter for the defaultDevices value.
Kind: instance property of module.exports
Api:
Setter:
Param | Type | Description |
---|---|---|
value | Object |
The new defaultDevices object. |
Getter for the agentStatus value.
Kind: instance property of module.exports
Returns: string
- The current agentStatus value.
Api:
Getter:
Setter for the agentStatus value.
Kind: instance property of module.exports
Api:
Setter:
Param | Type | Description |
---|---|---|
value | string |
The new agentStatus value. |
Proxy wrapper for the labelsList, providing a fallback label in case the requested label is missing.
Kind: instance property of module.exports
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
This method is triggered when the component is removed from the DOM.
Kind: instance method of module.exports
Lifecycle method called after every render of the component. Used for initializing the JsSIP library.
Kind: instance method of module.exports
Initializes the JsSIP library with provided user configuration and sets up various SIP events.
Kind: instance method of module.exports
Handles incoming SIP calls by setting up various SIP events and configurations.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
newSession | Object |
The SIP session object for the incoming call. |
completeSession | function |
A callback function to be called upon completion or termination of the session. |
cmpThis | Object |
The current context of the component. |
Handles outgoing SIP calls by setting up various SIP events and configurations.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
newSession | Object |
The SIP session object for the outgoing call. |
completeSession | function |
A callback function to be called upon completion or termination of the session. |
cmpThis | Object |
The current context of the component. |
Handles the various states of a SIP session and dispatches a 'sessionstatechange' event.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
state | string |
The current state of the SIP session. |
Dispatches a 'registrationstatuschange' event to notify of changes in SIP registration status.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
status | string |
The registration status. |
Dispatches an 'agentstatuschange' event to notify of changes in agent status.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
agentStatus | string |
The current status of the agent. |
Dispatches a 'newsession' event to notify of a new SIP call session.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
phone | string |
The phone number associated with the new session. |
Dispatches a 'missedcall' event to notify of missed calls.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
phone | string |
The phone number of the missed call. |
missedCall | boolean |
Indicates whether the call was missed or not. |
uniqueCallId | string |
The unique ID associated with the call. |
inProgress | boolean |
Indicates whether the call is still in progress. |
Places the current SIP call session on hold.
Kind: instance method of module.exports
Api:
Resumes a SIP call session that was previously on hold.
Kind: instance method of module.exports
Api:
Mutes the current SIP call session.
Kind: instance method of module.exports
Api:
Unmutes the current SIP call session that was muted.
Kind: instance method of module.exports
Api:
Sends a DTMF (Dual-Tone Multi-Frequency) signal during a SIP call session.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
event | Event |
The event containing the DTMF signal data. |
Terminates an ongoing SIP call session.
Kind: instance method of module.exports
Api:
Answers an incoming SIP call.
Kind: instance method of module.exports
Api:
Initiates an outgoing SIP call to the provided phone number.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
callRequest | Object |
The call request object containing the phone number to call. |
Changes the status of the SIP agent based on the event detail.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the agent status to change to. |
Logs out the SIP agent by terminating ongoing sessions and unregistering the user agent.
Kind: instance method of module.exports
Api:
This module defines a Lightning Web Component for changing and displaying the agent's status.
Requires: module:lwc
, module:c/constants
, module:c/utils
, module:lightning/messageService
, module:c/communicationUtils
, module:c/customLabelsUtils
-
StatusChanger
-
module.exports 
LightningElement
--
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class responsible for changing and displaying the agent's status, including the ability to toggle between different status options and emit relevant events based on user actions.
Returns the appropriate CSS class based on the agent's current status.
Kind: instance property of module.exports
Returns: string
- The CSS class corresponding to the agent's status.
Getter:
Provides a proxy for label list, defaulting to 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Getter for the agent status.
Kind: instance method of module.exports
Returns: Object
- The current agent status.
Setter for the agent status, updates agent status parameter based on new value.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
value | Object |
The new agent status. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Loads the status options for the dropdown.
Kind: instance method of module.exports
This method is triggered when the component is removed from the DOM.
Kind: instance method of module.exports
Toggles the visibility of the status dropdown.
Kind: instance method of module.exports
Handles the selection of a status option and dispatches an event with the selected status.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The select event. |
Updates the displayed agent status.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
newStatus | string |
The new status to be set for the agent. |
This module defines a Lightning Web Component for user registration, specifically for SIP (Session Initiation Protocol) user registration.
Requires: module:lwc
, module:lightning/messageService
, module:c/communicationUtils
, module:c/customLabelsUtils
, module:c/utils
, module:c/constants
-
UserRegister
-
module.exports 
LightningElement
--- new module.exports()
- .labels
-
.userData() --
Object
- .userData(value)
-
.sipWebsocket() --
String
- .sipWebsocket(value)
- .connectedCallback()
-
.notAdmin() --
Boolean
-
.showFirstRunAlert() --
Boolean
-
.smsFeatureAvailable() --
Boolean
- .sendShowSpinnerMessage()
- .sendHideSpinnerMessage()
- .handleSipLoginChange(event)
- .handleSipPasswordChange(event)
- .handleWebsocketAddressChange(event)
- .handleAgentPhoneChange(event)
- .handleSave()
- .handleSendCredentialsEvent()
- .generateSipUri()
- .openCreateVoipStudioAccount()
- .handleConfirm()
-
.generatePassword() --
String
-
.isPasswordValid() --
Boolean
- .showToast(title, message, variant)
-
module.exports 
Kind: Exported class
Extends: LightningElement
A class for handling SIP user registration. It manages user inputs for SIP login, password, and WebSocket validates them, and emits a custom event with the provided credentials.
Provides a proxy for label list, defaulting to 'label_error' if a specific label is not found.
Kind: instance property of module.exports
Getter for the user data.
Kind: instance method of module.exports
Returns: Object
- The current user data.
Setter for the user data.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new user data. |
Getter for the WebSocket address.
Kind: instance method of module.exports
Returns: String
- The current WebSocket address.
Setter for the WebSocket address.
Kind: instance method of module.exports
Api:
Param | Type | Description |
---|---|---|
value | String |
The new WebSocket address. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Kind: instance method of module.exports
Returns the negation of the isAdmin
property.
Kind: instance method of module.exports
Returns: Boolean
- - The negation of the isAdmin
property.
Returns a boolean indicating whether the component is in its first run.
Kind: instance method of module.exports
Returns: Boolean
- - A boolean indicating whether the component is in its first run.
Getter that determines if the user should see text messages settings.
Kind: instance method of module.exports
Returns: Boolean
- Returns true if the user has access to text messages settings due to feature availability.
Publikuje wiadomo┼Ť─ç pokazuj─ůc─ů spinner.
Kind: instance method of module.exports
Publishes a hide spinner message to the message context.
Kind: instance method of module.exports
Updates the sipLogin
property based on user input.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The input change event. |
Updates the sipPassword
property based on user input.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The input change event. |
Updates the sipWebsocket
property based on user input.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The input change event. |
Updates the agentPhone
property based on user input.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
event | Event |
The input change event. |
Handles the user's request to save the provided credentials. It validates the credentials, generates a SIP URI, and dispatches a custom event.
Kind: instance method of module.exports
Dispatches a custom event with the provided SIP credentials.
Kind: instance method of module.exports
Generates a SIP URI using the provided sipWebsocket
and sipLogin
properties.
Kind: instance method of module.exports
Opens the VoipStudio account creation form and populates it with user details.
Kind: instance method of module.exports
Handles the confirm action for creating a VoipStudio account. Validates the password and sends a request to create the account.
Kind: instance method of module.exports
Generates a random password that meets security requirements.
Kind: instance method of module.exports
Returns: String
- The generated password.
Validates the generated password to ensure it meets security requirements.
Kind: instance method of module.exports
Returns: Boolean
- True if the password is valid, false otherwise.
Displays a toast message with the specified title, message, and variant.
Kind: instance method of module.exports
Param | Type | Description |
---|---|---|
title | String |
The title of the toast message. |
message | String |
The message of the toast. |
variant | String |
The variant of the toast (e.g., 'success', 'error'). |
This module defines a set of utility functions for Lightning Web Components which assist in showing toast messages, animations, invoking methods, and more.
Requires: module:lightning/platformShowToastEvent
-
Utils
-
static
- .showToastMessage(component, title, message, variant, [mode])
- .universalErrorHandler(exception, component)
-
.sendConnectedChildEvent(componentInstance, componentName) --
void
-
.sendDisconnectedChildEvent(componentInstance, componentName) --
void
- .startAnimation(currentTarget)
- .stopAnimation(currentTarget)
- .toggleImageSource(elementClass, toggleCondition)
-
.invokeChildMethod(parentCmp, childCmpName, funcName, args) --
Promise
- .initializeFieldLabels(context, fieldName)
-
.comparePhoneNumbers(phone1, phone2) --
boolean
- inner
-
static
Shows a toast message with the provided parameters.
Kind: static method of Utils
Param | Type | Default | Description |
---|---|---|---|
component | object |
The Lightning component instance to display the toast message in. | |
title | string |
The title for the toast. | |
message | string |
The main message for the toast. | |
variant | string |
The visual variant for the toast, e.g., 'success' or 'error'. | |
[mode] | string |
"'dismissible'" |
The mode for the toast, defaults to 'dismissible'. |
Handles any error in LWC components by displaying a toast message with the error message.
Kind: static method of Utils
Param | Type | Description |
---|---|---|
exception | object |
The error object returned from either Apex method or JavaScript try/catch. |
component | object |
The Lightning component instance to display the toast message in. |
Dispatches a 'connected' event with the component's name from the given component instance.
Kind: static method of Utils
Param | Type | Description |
---|---|---|
componentInstance | object |
The Lightning component instance dispatching the event. |
componentName | string |
The name of the component. |
Dispatches a 'disconnected' event with the component's name from the given component instance.
Kind: static method of Utils
Param | Type | Description |
---|---|---|
componentInstance | object |
The Lightning component instance dispatching the event. |
componentName | string |
The name of the component. |
Starts an animation by changing the image source to the animated version.
Kind: static method of Utils
Param | Type | Description |
---|---|---|
currentTarget | object |
The DOM element that has the image. |
Stops an animation by reverting the image source to the static version.
Kind: static method of Utils
Param | Type | Description |
---|---|---|
currentTarget | object |
The DOM element that has the image. |
Toggles the image source between static and animation URLs.
Kind: static method of Utils
Param | Type | Description |
---|---|---|
elementClass | object |
The class of the DOM element that contains the image. |
toggleCondition | boolean |
The condition to decide which image URL to use. |
Invokes a method on a child component from its parent.
Kind: static method of Utils
Returns: Promise
- - A promise that resolves with the result of the invoked method or rejects with an error.
Param | Type | Description |
---|---|---|
parentCmp | object |
The parent Lightning component instance. |
childCmpName | string |
The name/variable referencing the child component on the parent. |
funcName | string |
The name of the function to be invoked. |
args | Array |
The arguments to be passed to the function. |
Waits for field labels to be available and then creates a proxy for them.
Kind: static method of Utils
Param | Type | Description |
---|---|---|
context | object |
The context within which the field labels exist (usually 'this' in a component). |
fieldName | string |
The name of the field labels property. |
Compares two phone numbers by their last 9 digits
Kind: static method of Utils
Returns: boolean
- True if last 9 digits match, false otherwise
Param | Type | Description |
---|---|---|
phone1 | string |
First phone number to compare |
phone2 | string |
Second phone number to compare |
Waits for a truthy value to be assigned to a specified field, and then applies a given callback to it.
Kind: inner method of Utils
Param | Type | Description |
---|---|---|
context | object |
The context within which to check the field value (usually 'this' in a component). |
fieldName | string |
The name of the field to be checked. |
callback | function |
The callback to execute once the field has a truthy value. |
Creates a proxy to handle field labels, providing a default value if a property is missing.
Kind: inner method of Utils
Returns: Proxy
- - A proxy wrapped around the fieldLabels object.
Param | Type | Description |
---|---|---|
fieldLabels | object |
The object containing field labels. |
Cleans a phone number by removing non-digit characters
Kind: inner method of Utils
Returns: string
- Cleaned phone number containing only digits
Param | Type | Description |
---|---|---|
phoneNumber | string |
The phone number to clean |
If the tasks section is visible, returns a CSS class indicating an active (green background) state; otherwise, returns a class for an inactive (white background) state.
Kind: global variable
Returns: String
- The CSS class for the tasks button.
Get:
If the tasks section is not visible, returns a CSS class indicating an active (green background) state; otherwise, returns a class for an inactive (white background) state.
Kind: global variable
Returns: String
- The CSS class for the campaigns button.
Get:
Lifecycle hook that gets called when the component is inserted into the DOM.
Event handler for user input in any of the form fields. Updates the record
object with the new value.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object from the input field. |
Initiates the process to add a record in Salesforce, performs validations, and shows toast messages based on operation results.
Validates the inputs based on the selected object type to ensure necessary fields are filled before creating a record. If fields are missing, constructs an error message.
Kind: global function
Returns: boolean
- - Returns true
if validation is successful, false
otherwise.
Prepares a fields object for creating a record based on the selected object type and current input values.
Kind: global function
Returns: Object
- - An object containing field names as keys and user input values as values.
Constructs a record object from the created Salesforce record and dispatches a 'recordcreated' event to notify parent components or listeners.
Kind: global function
Param | Type | Description |
---|---|---|
record | Object |
The record object returned from Salesforce after a successful record creation. |
Dispatches a 'close' event to notify parent components or listeners and clears input fields.
Starts the animation on the given element.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to animate. |
Prepares the stop animation for the given event target.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Determines if the Add button should be disabled based on campaign selection.
Kind: global function
Returns: boolean
- - True if the Add button should be disabled, false otherwise.
Handles the event when a child component is connected.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the connected child component. |
Handles the disconnection of child components, setting the property to undefined.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the creation of a new campaign.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the created campaign. |
Toggles the visibility of the Add Campaign screen.
Handles the selection of a campaign.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the selected campaign. |
Adds the person to the selected campaign or campaign.
Adds a member to the selected campaign.
Updates the selected campaign with the new person added.
Closes the component and emits a close event.
Starts the animation on the given element.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to animate. |
Prepares the stop animation for the given event target.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Getter for the application settings.
Kind: global function
Returns: Object
- The current application settings.
Setter for the application settings, updates call results based on the new settings.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The new application settings. |
Getter for options property that returns the list of available options.
Kind: global function
Returns: Array
- The current set of options.
Setter for options property that updates the list of available options.
Kind: global function
Param | Type | Description |
---|---|---|
value | Array |
The new set of options to be used. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Updates the value of a call result based on user input.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
Contains information about the input change. |
Changes the color of a specific call result item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
Contains the new color value and the index of the item. |
Deletes a call result item based on its index.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
Contains the index of the item to delete. |
Adds a new call result item with default values.
Saves the current settings by storing the selected objects and dispatches a close event.
Validates the values in 'callResults'. Ensures that there is at least one item present and that all items have non-empty values, showing toast messages for any validation errors.
Kind: global function
Returns: Boolean
- Indicates whether the validation passed.
Dispatches a close event to signal that the component should be closed.
Dispatches an event to update parent component settings with the current application settings.
Prepares the start of an animation.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the animation. |
Prepares the stop of an animation.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the stop of the animation. |
Handles changes in input fields and updates the record object with new values.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object from the input field. |
Dispatches a custom event called 'confirm' with the status as the event detail.
Dispatches a 'close' event to notify parent components or listeners.
Getter for the selectedCampaign value.
Kind: global function
Returns: Object
- The current selectedCampaign object.
Api:
Setter for the selectedCampaign value.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new selectedCampaign object. |
Getter for the application settings.
Kind: global function
Returns: Object
- The current application settings.
Setter for the application settings, updates call results based on the new settings.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The new application settings. |
Lifecycle hook that gets called when the component is inserted into the DOM.
This method is triggered when the component is removed from the DOM.
Handles the connection of child components, associating the event target with a property.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the disconnection of child components, setting the property to undefined.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the click event and navigating to the record page.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Processes the selection of a campaign, including fetching related campaign members and updating campaign statuses.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the selected campaign. |
Asynchronously sets the selected campaign state to a new value, ensuring state consistency.
Kind: global function
Returns: Promise.<void>
- A promise that resolves once the selected campaign has been updated.
Param | Type | Description |
---|---|---|
temp | Object |
The temporary campaign object representing the new state. |
Fetches campaign members for the selected campaign.
Kind: global function
Returns: Promise
- A promise that resolves with the fetched campaign members.
Param | Type | Description |
---|---|---|
campaignId | String |
The ID of the campaign. |
Fetches the quick campaign associated with the selected campaign.
Kind: global function
Returns: Promise
- A promise that resolves with the fetched quick campaign.
Param | Type | Description |
---|---|---|
campaignId | String |
The ID of the campaign. |
Handles the differences between the selected campaign and the fetched quick campaign.
Kind: global function
Param | Type | Description |
---|---|---|
temp | Object |
The temporary campaign object. |
selectedCampaign | Object |
The currently selected campaign object. |
Creates a new quick campaign record for the selected campaign.
Triggers an event to start the calling process for the current selected campaign.
Triggers an event to start the texting campaign process for the current selected campaign.
Invokes status update processes for campaign items, optionally focusing on a specific calling person by ID.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
callingPersonId | String |
The ID of the person being called. This parameter is optional. |
Indicates whether the selected campaign is a Salesforce campaign.
Kind: global function
Returns: Boolean
- True if the object is a Salesforce campaign, otherwise false.
Computes a boolean value to enable or disable campaign options based on edit mode and campaign ID presence.
Kind: global function
Returns: Boolean
- True if the options should be disabled, otherwise false.
Computes a boolean value to enable or disable the Call Campaign button based on campaign JSON presence.
Kind: global function
Returns: Boolean
- True if the button should be disabled, otherwise false.
Computes a boolean value to enable or disable the Edit Campaign button based on the edit mode.
Kind: global function
Returns: Boolean
- True if the button should be disabled, otherwise false.
Handles the click event and toggles the edit mode.
Kind: global function
Param | Type | Description |
---|---|---|
event | Object |
The event object containing the campaign type. |
Computes a boolean value to enable or disable the Text Campaign button based on campaign JSON presence.
Kind: global function
Returns: Boolean
- True if the button should be disabled, otherwise false.
Updates the user record with SIP credentials.
Kind: global function
Returns: Promise.<void>
- Represents the completion of an asynchronous operation.
Handles the addition of new members to the selected campaign.
Kind: global function
Returns: Promise.<void>
- Represents the completion of an asynchronous operation.
Cancels the save operation and reverts the campaign changes.
Handles the update of campaign items' statuses, optionally scrolling to a specific calling person.
Kind: global function
Param | Type | Description |
---|---|---|
callingPersonId | String |
The ID of the calling person to scroll to. |
Scrolls the main content to the provided element.
Kind: global function
Param | Type | Description |
---|---|---|
element | HTMLElement |
The element to scroll to. |
Handles the click event on a contact item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The click event. |
Handles the dragstart event on a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The dragstart event. |
Handles the dragover event on a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The dragover event. |
Handles the dragenter event on a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The dragenter event. |
Handles the dragleave event on a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The dragleave event. |
Handles the dragend event on a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The dragend event. |
Handles the drop event on a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The drop event. |
Handles the deletion of a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggered by the deletion action. |
Resets the status of a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggered by the reset status action. |
Shows the details of a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggered by the show details action. |
Hides the details of a campaign item.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggered by the hide details action. |
Prepares the start of an animation.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the animation. |
Prepares the stop of an animation.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the stop of the animation. |
Emits an event to exit the settings interface.
Allows users to either show or hide the Add Campaign screen, facilitating the addition of a new campaign.
Sets the campaign that is about to be edited as the current selected campaign without changes and enables the edit mode.
Allows users to confirm or cancel the deletion of a campaign item by showing or hiding the delete confirmation modal.
Updates the selected campaign with the new record's details and toggles the Add Campaign screen's visibility.
Kind: global function
Param | Type | Description |
---|---|---|
event | CustomEvent |
The event containing details about the created campaign record. |
Updates the selected campaign with the new record's details and fetches the associated quick campaign.
Kind: global function
Returns: Promise.<void>
- A promise that resolves once the selected campaign has been updated.
Param | Type | Description |
---|---|---|
event | CustomEvent |
The event containing details about the selected campaign. |
Clears the member lookup component and resets all relevant fields.
Kind: global function
Returns: Promise.<void>
- A promise that resolves once the member lookup has been cleared.
Handles the deletion of a campaign item, refreshes the campaign list, displays a success message, and toggles the delete confirmation modal.
Getter for the application settings.
Kind: global function
Returns: Object
- The current application settings.
Setter for the application settings, updates call results based on the new settings.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The new application settings. |
Updates the selected objects from the application settings.
Getter that determines if settings are restricted based on the admin status of the user.
Kind: global function
Returns: Boolean
- Returns true if the user is not an admin, restricting access to certain settings.
Getter for options property that returns the list of available options.
Kind: global function
Returns: Array
- The current set of options.
Setter for options property that updates the list of available options.
Kind: global function
Param | Type | Description |
---|---|---|
value | Array |
The new set of options to be used. |
Getter for the admin status.
Kind: global function
Returns: Boolean
- True if the user is an admin, false otherwise.
Setter for the admin status.
Kind: global function
Param | Type | Description |
---|---|---|
value | Boolean |
The new admin status. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Handles change events on the component, updating the list of selected objects.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The change event containing the updated value. |
Saves the current settings by storing the selected objects and dispatches a close event.
Dispatches a close event to signal that the component should be closed.
Dispatches an event to update parent component settings with the current application settings.
Prepares the start of an animation.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the animation. |
Prepares the stop of an animation.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event triggering the stop of the animation. |
Getter for the list of devices.
Setter for the list of devices.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The list of devices. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Fetches the list of devices.
Handles the change event for the speaker dropdown.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The change event. |
Handles the change event for the microphone dropdown.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The change event. |
Dispatches an event to update the devices.
Dispatches an event to update the devices.
Dispatches an event to close the modal.
Starts the animation on the given element.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to animate. |
Prepares the stop animation for the given event target.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Captures the ID of the clicked button, updates the selected button state, and dispatches a 'itemselected' custom event with the clicked button's ID as detail.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The click event object. |
Setter for the records property.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The records to be assigned. |
Getter for the records property.
Kind: global function
Returns: Object
- The records.
Lifecycle hook that gets called when the component is inserted into the DOM.
Handles the event when a child component is connected.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing details of the connected child component. |
Handles the disconnection of child components, setting the property to undefined.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Initializes the records selection based on the shouldSelectAll
property.
Handles the event when the user clicks the 'Select All' checkbox.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the change event when a checkbox is clicked.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the event when a record is selected in the custom lookup component.
Kind: global function
Param | Type | Description |
---|---|---|
event | CustomEvent |
The event object. |
Logs all selected records (their ID and Name) to the console.
Dispatches a 'skip' event to notify parent components or listeners.
Dispatches a 'cancel' event to notify parent components or listeners.
Prepares the start animation for the given event target.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Prepares the stop animation for the given event target.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the exit action
Kind: global function
Param | Type | Description |
---|---|---|
component | object |
The component |
Handles the quick campaign navigation
Kind: global function
Param | Type | Description |
---|---|---|
component | object |
The component |
Handles the next navigation
Kind: global function
Param | Type | Description |
---|---|---|
component | object |
The component |
Finishes navigation
Kind: global function
Param | Type | Description |
---|---|---|
component | object |
The component |
state | object |
The state |
Determines if we should show the multiple records screen
Kind: global function
Returns: boolean
- - True if we should show the multiple records screen
Param | Type | Description |
---|---|---|
component | object |
The component |
Determines if we should show the unsaved changes screen
Kind: global function
Returns: boolean
- - True if we should show the unsaved changes screen
Param | Type | Description |
---|---|---|
component | object |
The component |
Determines if we can show screens
Kind: global function
Returns: boolean
- - True if we can show screens
Param | Type | Description |
---|---|---|
component | object |
The component |
Handles the idle state
Kind: global function
Param | Type | Description |
---|---|---|
component | object |
The component |
action | string |
The action |
state | object |
The state |
Handles the status screen state
Kind: global function
Param | Type | Description |
---|---|---|
component | object |
The component |
action | string |
The action |
state | object |
The state |
Handles the multiple records state
Kind: global function
Param | Type | Description |
---|---|---|
component | object |
The component |
action | string |
The action |
state | object |
The state |
Handles the unsaved changes state
Kind: global function
Param | Type | Description |
---|---|---|
component | object |
The component |
action | string |
The action |
state | object |
The state |
Handles the navigation
Kind: global function
Param | Type | Description |
---|---|---|
component | object |
The component |
action | string |
The action |
state | object |
The state |
Getter for the app settings.
Kind: global function
Returns: Object
- The current app settings.
Setter for the app settings.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The new app settings. |
Getter for the user data.
Kind: global function
Returns: Object
- The current user data.
Setter for the user data.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new user data. |
Getter for the side panel enabled property.
Kind: global function
Returns: Boolean
- The current value of the side panel enabled property.
Setter for the side panel enabled property. It toggles the side panel visibility based on the value.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Boolean |
The new value for the side panel enabled property. |
Getter for the sidebar available property.
Kind: global function
Returns: Boolean
- The current value of the sidebar available property.
Lifecycle hook that gets called when the component is inserted into the DOM.
This method is triggered when the component is removed from the DOM.
Lifecycle method called when component gets disconnected from DOM. It unsubscribes from the platform event channel.
Lifecycle method called when component gets disconnected from DOM. It unsubscribes from the platform event channel.
Handles the load messages event and loads the messages for the selected person.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the message ID. |
Subscribes to a platform event channel to listen for events.
Unsubscribes from the platform event channel to stop listening for events.
Handles the notification of a received SMS message.
Kind: global function
Param | Type | Description |
---|---|---|
message | Object |
The message object containing the notification details. |
Hides the message spinner in the PhoneSidebarTextMessages component.
Refreshes the messages list after a new message is received.
Kind: global function
Param | Type | Description |
---|---|---|
sender | String |
The phone number of the message sender. |
Refreshes the messages list.
Kind: global function
Param | Type | Description |
---|---|---|
fetchFresh | Boolean |
The flag to fetch fresh messages. |
Refreshes the messages list after a new message is sent.
Kind: global function
Param | Type | Description |
---|---|---|
recordId | String |
The ID of the message record. |
phone | String |
The phone number of the message receiver. |
Handles the message sent event and refreshes the messages list.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the message sent details. |
Updates the current component reference when a child component is connected.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the child component's reference. |
Handles the disconnection of child components, setting the property to undefined.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Getter for the sidebar class based on the visibility of the main section.
Kind: global function
Returns: String
- The sidebar class based on the visibility of the main section.
Toggles the visibility of the main section and updates the sidebar icon.
Handles the subpage change event and updates the selected subpage.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the new subpage name. |
Handles the subpage select event and updates the selected subpage.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the new subpage name. |
Getter for the text messages visibility based on the selected subpage.
Kind: global function
Returns: Boolean
- The visibility of the text messages section.
Getter for the transcript visibility based on the selected subpage.
Kind: global function
Returns: Boolean
- The visibility of the transcript section.
Getter for the next best action visibility based on the selected subpage.
Kind: global function
Returns: Boolean
- The visibility of the next best action section.
Getter for the surveys visibility based on the selected subpage.
Kind: global function
Returns: Boolean
- The visibility of the surveys section.
Handles the back to results event and updates the selected subpage.
Prepares the person data to be added to the receivers list.
Kind: global function
Param | Type | Description |
---|---|---|
data | Object |
The person data to be added to the receivers list. |
Adds a person to the receivers list.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
data | Object |
The person data to be added to the receivers list. |
Sends a text campaign to the selected person.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
data | Object |
The person data to send the text campaign to. |
Handles the back to results event and updates the selected subpage.
Handles the back to results event and updates the selected subpage.
Handles the back to results event and updates the selected subpage.
Handles call person event.
Handles message send event.
Determines which subpage is currently selected.
Kind: global function
Returns: String
- The name of the selected subpage.
Setter for the _selectedSubpage value.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new _selectedSubpage object. |
Lifecycle hook that gets called when the component is inserted into the DOM.
Getter that determines if the Two Way SMS Feature is enabled.
Kind: global function
Returns: Boolean
- Returns true if the user has access the feature.
Dummy method to return false for features that are not yet ready.
Kind: global function
Returns: Boolean
- Returns false.
Determines the class for the 'Text Messages' button.
Kind: global function
Returns: String
- The class for the 'Text Messages' button
Determines the class for the 'Transcript' button.
Kind: global function
Returns: String
- The class for the 'Transcript' button
Determines the class for the 'Next Best Action' button.
Kind: global function
Returns: String
- The class for the 'Next Best Action' button
Determines the class for the 'Surveys' button.
Kind: global function
Returns: String
- The class for the 'Surveys' button
Determines the class for the 'Settings' button.
Kind: global function
Returns: String
- The class for the 'Settings' button
Getter for the app settings.
Kind: global function
Returns: Object
- The current app settings.
Setter for the app settings.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The new app settings. |
Getter for the user data.
Kind: global function
Returns: Object
- The current user data.
Setter for the user data.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new user data. |
Getter for the text message configuration.
Kind: global function
Returns: Boolean
- True if the text message provider is configured.
Lifecycle hook that gets called when the component is inserted into the DOM.
This method is triggered when the component is removed from the DOM.
Handles selecting a person from the list.
Setter for the selected person.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The selected person object. |
Getter for the list of receivers.
Setter for the list of receivers.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The list of receivers. |
Handles the event to show the spinner.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the spinner details. |
Updates the current component reference when a child component is connected.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the child component's reference. |
Handles the disconnection of child components, setting the property to undefined.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles person selection.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object |
Handles the load more messages event.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the event to show the spinner.
Handles calling a person.
Handles sending a text message to a person.
Handles sending a text message to a person.
Getter for the list of receivers.
Kind: global function
Returns: Array
- An array of receivers.
Setter for the list of receivers.
Kind: global function
Param | Type | Description |
---|---|---|
value | Array |
The list of receivers. |
Getter for the selected person.
Kind: global function
Returns: Object
- The selected person.
Setter for the selected person.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The selected person. |
Lifecycle hook that gets called when the component is inserted into the DOM.
This method is triggered when the component is removed from the DOM.
Handles the person click event.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object |
Determines the class for the person item.
Kind: global function
Returns: String
- The class for the person item.
Param | Type | Description |
---|---|---|
messageId | String |
The message ID. |
Getter for the admin status.
Kind: global function
Returns: Boolean
- True if the user is an admin, false otherwise.
Setter for the admin status.
Kind: global function
Param | Type | Description |
---|---|---|
value | Boolean |
The new admin status. |
Getter for the user data.
Kind: global function
Returns: Object
- The current user data.
Setter for the user data.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new user data. |
Getter for the application settings.
Kind: global function
Returns: Object
- The current application settings.
Setter for the application settings, updates call results based on the new settings.
Kind: global function
Param | Type | Description |
---|---|---|
value | Object |
The new application settings. |
Getter for the decryption key field aviablity.
Kind: global function
Returns: Boolean
- True if the decryption key field should be shown, false otherwise.
Getter that determines if the user should see two way text messages settings.
Kind: global function
Returns: Boolean
- Returns true if the user has access to text two way messages settings due to feature availability.
Handles the change event for the input fields.
Getter for the text messages providers list.
Kind: global function
Returns: Object
- The current text messages providers list.
Setter for the text messages providers list.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new text messages providers list. |
Getter for the provider selected status.
Kind: global function
Returns: Boolean
- True if a provider is selected, false otherwise.
Event handler for when the object type dropdown value changes. Clears and updates input fields based on the selected object type.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object from the dropdown. |
Updates the input fields based on the selected provider.
Kind: global function
Param | Type | Description |
---|---|---|
providerName | String |
The name of the selected provider |
Handles the change event for the input fields.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the change event for the phone input field.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Getter to determine if user token field should be displayed
Kind: global function
Returns: Boolean
- True if VoIPstudio is selected, false otherwise
Getter to determine if API credentials should be displayed
Kind: global function
Returns: Boolean
- True if a provider other than VoIPstudio is selected
Handles the click event for the save button.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Handles the click event for the save button.
Saves the current settings by storing the selected objects and dispatches a close event.
Dispatches an event to update parent component settings with the current text message settings.
Dispatches an event to update parent component settings with the current application settings.
Handles the click event for the cancel button.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Dispatches a close event to signal that the component should be closed.
Starts the animation on the given element.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to animate. |
Prepares the stop animation for the given event target.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |
Getter for the user data.
Kind: global function
Returns: Object
- The current user data.
Setter for the user data.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new user data. |
Getter for the playCookie property.
Kind: global function
Returns: String
- The playCookie property.
Setter for the playCookie property.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | String |
The new playCookie value. |
Getter for the playsessionId property.
Kind: global function
Returns: String
- The playsessionId property.
Setter for the playsessionId property.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | String |
The new playsessionId value. |
Getter for the showCallButton property.
Kind: global function
Returns: Boolean
- True if the phone number is not empty.
Getter for the messages property.
Kind: global function
Returns: Array
- The messages property.
Getter for the userIconUrl property.
Kind: global function
Returns: String
- The userIconUrl property.
Setter for the messages property.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Array |
The new messages value. |
Getter for the selectedPerson property.
Kind: global function
Returns: Object
- The selectedPerson property.
Setter for the selectedPerson property.
Kind: global function
Api:
Param | Type | Description |
---|---|---|
value | Object |
The new selectedPerson value. |
Getter that determines if the user should see two way text messages.
Kind: global function
Returns: Boolean
- Returns true if the user has access to text two way messages due to feature availability.
Scrolls to the bottom of the message history area.
Lifecycle hook that gets called when the component is inserted into the DOM.
This method is triggered when the component is removed from the DOM.
Handles the phone number change event.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The phone number change event. |
Handles the add phone to list event.
Handles the character left counter.
Kind: global function
Returns: String
- The new message text.
Handles the message text change event.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The message text change event. |
Getter for the messageInputValue property.
Kind: global function
Returns: String
- The messageInputValue property.
Handles the name click event.
Handles the send message event.
Kind: global function
Param | Type | Description |
---|---|---|
data | Object |
The data object. |
Handles the load more messages event.
Sends a single message.
Fetches fresh person details before sending the message.
Kind: global function
Param | Type | Description |
---|---|---|
recordId | String |
The record ID of the person. |
Sends a message to a campaign.
Updates the message history and task for a campaign.
Fetches the campaign members.
Kind: global function
Returns: Promise
- A promise that resolves with the fetched campaign members.
Param | Type | Description |
---|---|---|
campaignId | String |
The campaign ID. |
Fetches the quick campaign associated with the selected campaign.
Kind: global function
Returns: Promise
- A promise that resolves with the fetched quick campaign.
Param | Type | Description |
---|---|---|
campaignId | String |
The ID of the campaign. |
Updates the message history and task.
Kind: global function
Param | Type | Description |
---|---|---|
payload | Object |
The SMS message payload |
Informs the parent component that a message has been sent.
Kind: global function
Param | Type | Description |
---|---|---|
cookie | String |
The cookie. |
sessionId | String |
The session ID. |
refreshImmediately | Boolean |
True if the parent should refresh immediately |
Handles the timestamp click event.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The timestamp click event. |
Sets a timeout to hide the sending spinner after 30 seconds
Sets a timeout to hide the message spinner after 30 seconds
Handles hiding the sending spinner.
Handles hiding the message spinner.
Handles the close window
Handles the call click event.
Handles the error.
Kind: global function
Param | Type | Description |
---|---|---|
message | String |
The error message. |
Handles the key down event.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The key down event. |
Handles the key down event for starting conversation.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The key down event. |
Handles the key down event for starting conversation.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The key down event. |
Getter that returns true if toAdd is populated.
Kind: global function
Returns: Boolean
- - True if toAdd is populated.
Getter that returns true if toRemove is populated.
Kind: global function
Returns: Boolean
- - True if toRemove is populated.
Dispatches a 'confirm' event to notify parent components or listeners.
Dispatches a 'close' event to notify parent components or listeners.
Starts the animation on the given element.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event containing the current target to animate. |
Prepares the stop animation for the given event target.
Kind: global function
Param | Type | Description |
---|---|---|
event | Event |
The event object. |