Options
All
  • Public
  • Public/Protected
  • All
Menu

Directory Adapter class to handle the agent api's data response

Hierarchy

  • CXoneDirectoryAdapter

Index

Constructors

Methods

  • This method to formatAddressBookEntries

    example
    formatAddressBookEntries(entries);
    

    Parameters

    • entries: any[]

      address book entries

    Returns AddressBooksEntries[]

    • formatted address book entries
  • Used to handle the directory response and return the combined directory model object

    example
    const directoryAdapter = new CXoneDirectoryAdapter();
    this.directoryAdapter.handleEvent(data);

    Parameters

    • response: any

      the directory api response - state,skill and address book

    Returns Promise<DirectoryResponse>

Generated using TypeDoc