OTRS API Reference JavaScript

Namespace: Core.Agent.CustomerSearchSMS

Core.Agent. CustomerSearchSMS

This namespace contains the special module functions for the SMS customer search.
Author:
  • OTRS AG

Methods

(static) AddTicketCustomerPhoneNumber(Field, CustomerValue, CustomerKey, AddressBook, SetAsTicketCustomer) → {Boolean}

This function adds a new customer phone number.
Parameters:
Name Type Description
Field String
CustomerValue String The readable customer phone number.
CustomerKey String Customer key on system.
AddressBook String Customer is from AddressBook.
SetAsTicketCustomer String Set this customer as main ticket customer.
Returns:
Returns false.
Type
Boolean

(static) InitCustomerField()

This function initializes the customer fields.

(static) ReloadCustomerInfo(CustomerKey)

This function reloads info for selected customer.
Parameters:
Name Type Description
CustomerKey String

(static) RemoveCustomerTicket(Object)

This function removes a customer ticket entry.
Parameters:
Name Type Description
Object jQueryObject JQuery object used as base to delete it's parent.

(static) ResetCustomerInfo()

This function clears all selected customer info.

(static) ShowDuplicatedDialog(Field)

This function shows an alert dialog for duplicated entries.
Parameters:
Name Type Description
Field String ID object of the element should receive the focus on close event.

(static) ShowInvalidDialog(Field, PhoneNumber)

This function shows an alert dialog for invalid phone numbers.
Parameters:
Name Type Description
Field String ID object of the element should receive the focus on close event.
PhoneNumber String Entered invalid phone number.