import { XMPPService } from "../XMPPService"; import { XMPPUTils } from "../../common/XMPPUtils"; import { Call } from "../../common/models/Call"; import { GenericHandler } from "./GenericHandler"; export {}; declare class TelephonyEventHandler extends GenericHandler { MESSAGE: any; IQ_RESULT: any; IQ_ERROR: any; telephonyService: any; contactService: any; promiseQueue: any; _profiles: any; xmppUtils: XMPPUTils; static getClassName(): string; getClassName(): string; static getAccessorName(): string; getAccessorName(): string; constructor(xmppService: XMPPService, telephonyService: any, contactService: any, profileService: any); onIqResultReceived(msg: any, stanzaTab: any): void; onIqGetPbxAgentStatusReceived(stanza: any, node: any): void; onMessageReceived(msg: any, stanzaTab: any): boolean; onProposeMessageReceived(node: any, from: any): Promise; onRetractMessageReceived(node: any, from: any): Promise; onAcceptMessageReceived(node: any, from: any): Promise; /*********************************************************************/ /** INITIATED CALL STUFF **/ /*********************************************************************/ onInitiatedEvent(initiatedElem: any): Promise; /*********************************************************************/ /** ORIGINATED CALL STUFF **/ /*********************************************************************/ onOriginatedEvent(originatedElem: any): Promise; /*********************************************************************/ /** DELIVERED STUFF **/ /*********************************************************************/ onDeliveredEvent(deliveredElem: any): Promise; /*********************************************************************/ /** ESTABLISHED STUFF **/ /*********************************************************************/ onEstablishedEvent(establishedElem: any): Promise; /*********************************************************************/ /** RETRIEVE CALL STUFF **/ /*********************************************************************/ onRetrieveCallEvent(retrieveElem: any): Promise; /*********************************************************************/ /** CLEAR CALL STUFF **/ /*********************************************************************/ onClearCallEvent(clearElem: any): Promise; /*********************************************************************/ /** HOLD CALL STUFF **/ /*********************************************************************/ onHeldEvent(heldElem: any): Promise; /*********************************************************************/ /** QUEUED STUFF **/ /*********************************************************************/ onQueuedEvent(queuedElem: any): Promise; /*********************************************************************/ /** DIVERTED STUFF **/ /*********************************************************************/ onDivertedEvent(divertedElem: any): Promise; /*********************************************************************/ /** TRANSFER STUFF **/ /*********************************************************************/ onTransferEvent(transferElem: any): Promise; /*********************************************************************/ /** CONFERENCE STUFF **/ /*********************************************************************/ onConferenceEvent(conferencedElem: any): Promise; /*********************************************************************/ /** VOICE MESSAGE STUFF **/ /*********************************************************************/ onVoiceMessageEvent(messagingElem: any): any; /*********************************************************************/ /** UPDATECALL STUFF **/ /*********************************************************************/ onUpDateCallEvent(updatecallElem: any): Promise; /*********************************************************************/ /** FAILURE STUFF **/ /*********************************************************************/ onFailCallEvent(failedElem: any): Promise; /*********************************************************************/ /** FORWARD CALL STUFF **/ /*********************************************************************/ onCallForwardedEvent(forwardElem: any): Promise; /*********************************************************************/ /** NOMADIC STATUS STUFF **/ /*********************************************************************/ onNomadicStatusEvent(eventElem: any): Promise; /*********************************************************************/ /** VOICE MESSAGES /*********************************************************************/ onVoiceMessagesEvent(eventElem: any): Promise; /*********************************************************************/ /** PRIVATE UTILITY METHODS **/ /*********************************************************************/ getCall(elem: any): Promise; getOrCreateCall(connectionId: any, jid: any, deviceType: any, phoneNumber: any): Promise; createConferenceCall(connectionId: any, participants: any): Promise; /*********************************************************************/ /** CALL UPDATE STUFF **/ /*********************************************************************/ /** * Method analyzeContactChange * Analyse if a setContact has to be done following situation * @public * @param jid [required] jid from PCG * @param phoneNumber [required] phone number from PCG * @param call [required] the call to update * @returns object:{ updateContactToBeDone : boolean, searchOutlookToBeDone :boolean} * updateContactToBeDone true if the contact has to be updated in the call (by setContact) * searchOutlookToBeDone true if an outlook search has to be performed to resolve call identity * @memberof TelephonyServiceEventHandler */ analyzeContactChange(jid: any, phoneNumber: any, call: any): { updateContactToBeDone: boolean; }; /** * Method updateCallContact * @public * @param jid [required] jid from PCG * @param phoneNumber [required] phone number from PCG * @param actionElemName [required] name of the action event * @param call [required] the call to update * @returns {ng.IPromise<{}>} status promise * @memberof TelephonyServiceEventHandler */ updateCallContact(jid: any, phoneNumber: any, actionElemName: any, call: any): any; makeUpdateContact(call: any, contact: any, phoneNumber: any, actionElemName: any): void; } export { TelephonyEventHandler };