import * as Contact from './types'; import AqmReqs from '../core/aqm-reqs'; /** * Returns an object with AQM dialer functions used for outbound contact handling. * * @param {AqmReqs} aqm - An instance of AQM request handler. * @returns {{ * startOutdial: (params: {data: Contact.DialerPayload}) => Promise * }} Object containing methods for outbound dialing. * @ignore */ export default function aqmDialer(aqm: AqmReqs): { /** * Initiates an outbound contact (outdial) request. * * @param {Object} p - Parameters object. * @param {Contact.DialerPayload} p.data - Payload for the outbound call. * @returns {Promise} A promise that resolves or rejects based on the outbound call response. * * Emits: * - `CC_EVENTS.AGENT_OFFER_CONTACT` on success * - `CC_EVENTS.AGENT_OUTBOUND_FAILED` on failure * @ignore */ startOutdial: import("../core/types").Res; /** * Accepts a campaign preview contact, initiating the outbound call. * * @param {Object} p - Parameters object. * @param {Contact.PreviewContactPayload} p.data - Payload containing interactionId and campaignId. * @returns {Promise} A promise that resolves with agent contact on success. * * Emits: * - `CC_EVENTS.AGENT_CONTACT_ASSIGNED` on success * - `CC_EVENTS.CAMPAIGN_PREVIEW_ACCEPT_FAILED` on failure * @ignore */ acceptPreviewContact: import("../core/types").Res; };