Interface ISession
- All Superinterfaces:
IDisposable, IEntity
Represents a session.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the DataTransactionStartedListener.voidRegisters the InstantMessagingInteractionStartedListener.voidRegisters the PhoneInteractionStartedListener.voidRegisters the SessionClearedListener.callSupervisor(String campaignName, int directoryId, int contactProfileId, Attribute[] attributes, byte[] blindData, boolean synchronous) Calls the supervisor and returns the phone media object created or updated.callSupervisorMedia(int mediaId, String campaignName, int directoryId, int contactProfileId, Attribute[] attributes, byte[] blindData, boolean synchronous) Calls the supervisor and returns the phone media object created or updated.intforwardEmailDocument(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) Forwards an email with document.intforwardEmailDocument(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) Forwards an email with document.intforwardEmailDocumentMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) Forwards an email with document.intforwardEmailDocumentMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) Forwards an email with document.intforwardEmailText(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, BodyType bodyType, String body, Attachment[] attachments) Forwards an email with text.intforwardEmailTextMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, BodyType bodyType, String body, Attachment[] attachments) Replies to an email with text.getAgent()The agent associated with the session.Operations that the agent can perform in the session.The session creation mode.The current session info.Data transaction associated with the session.Information about the email media.intgetGuiId()Identifier of the session GUI.The session GUI text.getGuiText(PurposeFilter purposeFilter) Gets the session GUI text.intgetId()Identifier of the session.The initial session direction.The initial session info.Information about the instant messaging media.Information about the phone media.Information about the social media.Start time of the session.Data statistics when the session is created, or when a data transaction is restarted whithin the session.Information about the workflow media.instantMessagingConnect(String agentName, String campaignName, boolean differentInstance, Attribute[] attributes, byte[] blindData, boolean synchronous) Starts a new instant messaging interaction.instantMessagingConnectMedia(int mediaId, String agentName, String campaignName, boolean differentInstance, Attribute[] attributes, byte[] blindData, boolean synchronous) Starts a new instant messaging interaction.instantMessagingConnectMediaToAddress(int mediaId, String fromAddress, String toAddress, boolean synchronous) Starts a new instant messaging interaction.booleanisInDoNotCallList(String number, String uniqueId) If the session has data, checks if a number is in the session service do not call list, or in the global do not call lists.newDataTransaction(String campaignName) Creates a data transaction associated with this session for the specified campaign.phoneDial(String agentName, String number, String campaignName, boolean differentInstance, boolean usesDoNotCallList, Attribute[] attributes, byte[] blindData, boolean synchronous) Starts a new phone call.phoneDial(String agentName, String number, String campaignName, boolean differentInstance, boolean usesDoNotCallList, String uniqueIdInDoNotCallList, Attribute[] attributes, byte[] blindData, boolean synchronous) Starts a new phone call.phoneDialMedia(int mediaId, String agentName, String number, String campaignName, boolean differentInstance, boolean usesDoNotCallList, Attribute[] attributes, byte[] blindData, boolean synchronous) Starts a new phone call.phoneDialMedia(int mediaId, String agentName, String number, String campaignName, boolean differentInstance, boolean usesDoNotCallList, String uniqueIdInDoNotCallList, Attribute[] attributes, byte[] blindData, boolean synchronous) Starts a new phone call.voidUnregisters the DataTransactionStartedListener.voidremoveInstantMessagingInteractionStartedListener(InstantMessagingInteractionStartedListener listener) Unregisters the InstantMessagingInteractionStartedListener.voidUnregisters the PhoneInteractionStartedListener.voidUnregisters the SessionClearedListener.intreplyEmailDocument(String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) Replies to an email with document.intreplyEmailDocument(String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) Replies to an email with document.intreplyEmailDocumentMedia(int mediaId, String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) Replies to an email with document.intreplyEmailDocumentMedia(int mediaId, String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) Replies to an email with document.intreplyEmailText(String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, BodyType bodyType, String body, Attachment[] attachments) Replies to an email with text.intreplyEmailTextMedia(int mediaId, String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, BodyType bodyType, String body, Attachment[] attachments) Replies to an email with text.intsendEmailDocument(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) Sends an email with a document.intsendEmailDocument(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) Sends an email with a document.intsendEmailDocumentMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) Sends an email with a media document.intsendEmailDocumentMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) Sends an email with a media document.intsendEmailMime(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, byte[] mime) Sends an email encoded in MIME format and returns the identifier of the email.intsendEmailMimeMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, byte[] mime) Sends an email encoded in MIME format and returns the identifier of the email.intsendEmailText(String sentFrom, String sendTo, String sendCc, String sendBcc, String subject, BodyType bodyType, String body, Attachment[] attachments) Sends an email with text.intsendEmailTextMedia(int mediaId, String sentFrom, String sendTo, String sendCc, String sendBcc, String subject, BodyType bodyType, String body, Attachment[] attachments) Sends an email with attachments.Sends a text IM Message(outbound direction).sendIMTemplatedMessage(String mediaName, String campaignName, String fromAddress, String to, String templateNamespace, String templateName, String language, TemplateParameter[] headerTemplateData, TemplateParameter[] bodyTemplateData, TemplateParameter[] footerTemplateData) Sends a templated IM Message(outbound direction, typically for WhatsApp media).startOutboundSocialInteraction(int mediaId, String campaignName, String sendFrom, String sendTo, boolean agentIsBusy, String contentType, byte[] data) Sends an social document and returns the identifier of the social document.voidunreserveAgent(boolean synchronous) Ends the reservation associated with the session.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
addDataTransactionStartedListener
Registers the DataTransactionStartedListener.- Parameters:
listener- Event listener to add.
-
removeDataTransactionStartedListener
Unregisters the DataTransactionStartedListener.- Parameters:
listener- Event listener to remove.
-
addInstantMessagingInteractionStartedListener
void addInstantMessagingInteractionStartedListener(InstantMessagingInteractionStartedListener listener) Registers the InstantMessagingInteractionStartedListener.- Parameters:
listener- Event listener to add.
-
removeInstantMessagingInteractionStartedListener
void removeInstantMessagingInteractionStartedListener(InstantMessagingInteractionStartedListener listener) Unregisters the InstantMessagingInteractionStartedListener.- Parameters:
listener- Event listener to remove.
-
addPhoneInteractionStartedListener
Registers the PhoneInteractionStartedListener.- Parameters:
listener- Event listener to add.
-
removePhoneInteractionStartedListener
Unregisters the PhoneInteractionStartedListener.- Parameters:
listener- Event listener to remove.
-
addSessionClearedListener
Registers the SessionClearedListener.- Parameters:
listener- Event listener to add.
-
removeSessionClearedListener
Unregisters the SessionClearedListener.- Parameters:
listener- Event listener to remove.
-
callSupervisor
CallSupervisorResult callSupervisor(String campaignName, int directoryId, int contactProfileId, Attribute[] attributes, byte[] blindData, boolean synchronous) throws Exception, altitude.integrationServer.exceptions.ISException Calls the supervisor and returns the phone media object created or updated.- Parameters:
campaignName- Name of the campaign that needs help from the supervisor.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.attributes- Attributes attached to the phone call. The value can be NULL.blindData- Data stream transferred with the phone call. The value can be NULL.synchronous- If true, the method is synchronous.- Returns:
- A
CallSupervisorResultobject with result. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
callSupervisorMedia
CallSupervisorResult callSupervisorMedia(int mediaId, String campaignName, int directoryId, int contactProfileId, Attribute[] attributes, byte[] blindData, boolean synchronous) throws Exception, altitude.integrationServer.exceptions.ISException Calls the supervisor and returns the phone media object created or updated.- Parameters:
mediaId- Identifier of the media.campaignName- Name of the campaign that needs help from the supervisor.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.attributes- Attributes attached to the phone call. The value can be NULL.blindData- Data stream transferred with the phone call. The value can be NULL.synchronous- If true, the method is synchronous.- Returns:
- A
CallSupervisorResultobject with result. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
forwardEmailDocument
int forwardEmailDocument(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Forwards an email with document.- Parameters:
sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
forwardEmailDocument
int forwardEmailDocument(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Forwards an email with document.- Parameters:
sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.purposeFilter- Purpose filter.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
forwardEmailDocumentMedia
int forwardEmailDocumentMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Forwards an email with document.- Parameters:
mediaId- The identifier of the media.sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
forwardEmailDocumentMedia
int forwardEmailDocumentMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Forwards an email with document.- Parameters:
mediaId- The identifier of the media.sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.purposeFilter- Purpose filter.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
forwardEmailText
int forwardEmailText(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, BodyType bodyType, String body, Attachment[] attachments) throws Exception, altitude.integrationServer.exceptions.ISException Forwards an email with text.- Parameters:
sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.bodyType- Type of the body of the email.body- Text body of the email.attachments- Attachments.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
forwardEmailTextMedia
int forwardEmailTextMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int emailId, BodyType bodyType, String body, Attachment[] attachments) throws Exception, altitude.integrationServer.exceptions.ISException Replies to an email with text.- Parameters:
mediaId- The identifier of the media.sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.bodyType- Type of the body of the email.body- Text body of the email.attachments- Attachments.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getAgent
-
getAllowedOperations
SessionCanDo getAllowedOperations() throws Exception, altitude.integrationServer.exceptions.ISExceptionOperations that the agent can perform in the session.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCreationMode
SessionCreationMode getCreationMode() throws Exception, altitude.integrationServer.exceptions.ISExceptionThe session creation mode.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getCurrentInfo
The current session info.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getDataTransaction
IDataTransaction getDataTransaction() throws Exception, altitude.integrationServer.exceptions.ISExceptionData transaction associated with the session.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getEmailMedia
Information about the email media.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getGuiId
-
getGuiText
-
getGuiText
GuiText getGuiText(PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Gets the session GUI text.- Parameters:
purposeFilter- Purpose filter.- Returns:
- The session GUI text.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getId
-
getInitialDirection
SessionDirection getInitialDirection() throws Exception, altitude.integrationServer.exceptions.ISExceptionThe initial session direction.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getInitialInfo
The initial session info.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getInstantMessagingMedia
IInstantMessagingMedia getInstantMessagingMedia() throws Exception, altitude.integrationServer.exceptions.ISExceptionInformation about the instant messaging media.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getPhoneMedia
Information about the phone media.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getSocialMedia
Information about the social media.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getStartTime
GregorianCalendar getStartTime() throws Exception, altitude.integrationServer.exceptions.ISExceptionStart time of the session.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getStatisticalData
StatisticalData getStatisticalData() throws Exception, altitude.integrationServer.exceptions.ISExceptionData statistics when the session is created, or when a data transaction is restarted whithin the session.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getWorkflowMedia
IWorkflowMedia getWorkflowMedia() throws Exception, altitude.integrationServer.exceptions.ISExceptionInformation about the workflow media.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
instantMessagingConnect
IInstantMessagingMedia instantMessagingConnect(String agentName, String campaignName, boolean differentInstance, Attribute[] attributes, byte[] blindData, boolean synchronous) throws Exception, altitude.integrationServer.exceptions.ISException Starts a new instant messaging interaction.- Parameters:
agentName- Name of the agent.campaignName- Target campaign of the operation. The value can be NULL.differentInstance- If true, the operation has a different instance as destination.attributes- Attributes attached to the instant messaging interaction. The value can be NULL.blindData- Data stream transferred with the instant messaging interaction. The value can be NULL.synchronous- If true, the method is synchronous.- Returns:
- A
IPhoneMediaobject with the new instant messaging interaction. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
instantMessagingConnectMedia
IInstantMessagingMedia instantMessagingConnectMedia(int mediaId, String agentName, String campaignName, boolean differentInstance, Attribute[] attributes, byte[] blindData, boolean synchronous) throws Exception, altitude.integrationServer.exceptions.ISException Starts a new instant messaging interaction.- Parameters:
mediaId- Identifier of the media.agentName- Name of the agent.campaignName- Target campaign of the operation. The value can be NULL.differentInstance- If true, the operation has a different instance as destination.attributes- Attributes attached to the instant messaging interaction. The value can be NULL.blindData- Data stream transferred with the instant messaging interaction. The value can be NULL.synchronous- If true, the method is synchronous.- Returns:
- A
IPhoneMediaobject with the new instant messaging interaction. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
instantMessagingConnectMediaToAddress
IInstantMessagingMedia instantMessagingConnectMediaToAddress(int mediaId, String fromAddress, String toAddress, boolean synchronous) throws Exception, altitude.integrationServer.exceptions.ISException Starts a new instant messaging interaction. ThisSessionmust haveDataTransaction.- Parameters:
mediaId- Identifier of the media.fromAddress- Address of the sender. The value must match a dnis configured in the InstantMessaging gateway assigned to theCampaignof theDataTransactionof thisSession, and an entry point configured in the Media Channels Service.toAddress- Address of the contact.synchronous- If true, the method is synchronous.- Returns:
- A
IPhoneMediaobject with the new instant messaging interaction. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
isInDoNotCallList
boolean isInDoNotCallList(String number, String uniqueId) throws Exception, altitude.integrationServer.exceptions.ISException If the session has data, checks if a number is in the session service do not call list, or in the global do not call lists. If the session has no data, checks if a number is in the global do not call lists.- Parameters:
number- The phone number. This parameter is optional.uniqueId- Unique identifier of the contact profile. This parameter is optional.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newDataTransaction
IDataTransaction newDataTransaction(String campaignName) throws Exception, altitude.integrationServer.exceptions.ISException Creates a data transaction associated with this session for the specified campaign.- Parameters:
campaignName- Name of the campaign.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
phoneDial
IPhoneMedia phoneDial(String agentName, String number, String campaignName, boolean differentInstance, boolean usesDoNotCallList, Attribute[] attributes, byte[] blindData, boolean synchronous) throws Exception, altitude.integrationServer.exceptions.ISException Starts a new phone call.- Parameters:
agentName- Name of the agent.number- Phone number.campaignName- Target campaign of the operationdial. The value can be NULL.differentInstance- If true, the operationdialhas a different instance as destination.usesDoNotCallList- If true, the do not call list is used.attributes- Attributes attached to the phone call. The value can be NULL.blindData- Data stream transferred with the phone call. The value can be NULL.synchronous- If true, the method is synchronous.- Returns:
- A
IPhoneMediaobject with the new phone call. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
phoneDial
IPhoneMedia phoneDial(String agentName, String number, String campaignName, boolean differentInstance, boolean usesDoNotCallList, String uniqueIdInDoNotCallList, Attribute[] attributes, byte[] blindData, boolean synchronous) throws Exception, altitude.integrationServer.exceptions.ISException Starts a new phone call.- Parameters:
agentName- Name of the agent.number- Phone number.campaignName- Target campaign of the operationdial. The value can be NULL.differentInstance- If true, the operationdialhas a different instance as destination.usesDoNotCallList- If true, the do not call list is used.uniqueIdInDoNotCallList- Unique identifier of the contact profile to look in the do not call list. This parameter is optional, and will only be considered ifusesDoNotCallListis true.attributes- Attributes attached to the phone call. The value can be NULL.blindData- Data stream transferred with the phone call. The value can be NULL.synchronous- If true, the method is synchronous.- Returns:
- A
IPhoneMediaobject with the new phone call. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
phoneDialMedia
IPhoneMedia phoneDialMedia(int mediaId, String agentName, String number, String campaignName, boolean differentInstance, boolean usesDoNotCallList, Attribute[] attributes, byte[] blindData, boolean synchronous) throws Exception, altitude.integrationServer.exceptions.ISException Starts a new phone call.- Parameters:
mediaId- Identifier of the media.agentName- Name of the agent.number- Phone number.campaignName- Target campaign of the operationdial. The value can be NULL.differentInstance- If true, the operationdialhas a different instance as destination.usesDoNotCallList- If true, the do not call list is used.attributes- Attributes attached to the phone call. The value can be NULL.blindData- Data stream transferred with the phone call. The value can be NULL.synchronous- If true, the method is synchronous.- Returns:
- A
IPhoneMediaobject with the new phone call. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
phoneDialMedia
IPhoneMedia phoneDialMedia(int mediaId, String agentName, String number, String campaignName, boolean differentInstance, boolean usesDoNotCallList, String uniqueIdInDoNotCallList, Attribute[] attributes, byte[] blindData, boolean synchronous) throws Exception, altitude.integrationServer.exceptions.ISException Starts a new phone call.- Parameters:
mediaId- Identifier of the media.agentName- Name of the agent.number- Phone number.campaignName- Target campaign of the operationdial. The value can be NULL.differentInstance- If true, the operationdialhas a different instance as destination.usesDoNotCallList- If true, the do not call list is used.uniqueIdInDoNotCallList- Unique identifier of the contact profile to look in the do not call list. This parameter is optional, and will only be considered ifusesDoNotCallListis true.attributes- Attributes attached to the phone call. The value can be NULL.blindData- Data stream transferred with the phone call. The value can be NULL.synchronous- If true, the method is synchronous.- Returns:
- A
IPhoneMediaobject with the new phone call. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
replyEmailDocument
int replyEmailDocument(String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Replies to an email with document.- Parameters:
sendFrom- Email senders.replyAll- If true, the reply will be forwarded to all recipients.sendTo- Optional sendTo.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
replyEmailDocument
int replyEmailDocument(String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Replies to an email with document.- Parameters:
sendFrom- Email senders.replyAll- If true, the reply will be forwarded to all recipients.sendTo- Optional sendTo.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.purposeFilter- Purpose filter.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
replyEmailDocumentMedia
int replyEmailDocumentMedia(int mediaId, String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Replies to an email with document.- Parameters:
mediaId- The identifier of the media.sendFrom- Email senders.replyAll- If true, the reply will be forwarded to all recipients.sendTo- Optional sendTo.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
replyEmailDocumentMedia
int replyEmailDocumentMedia(int mediaId, String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Replies to an email with document.- Parameters:
mediaId- The identifier of the media.sendFrom- Email senders.replyAll- If true, the reply will be forwarded to all recipients.sendTo- Optional sendTo.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.purposeFilter- Purpose filter.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
replyEmailText
int replyEmailText(String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, BodyType bodyType, String body, Attachment[] attachments) throws Exception, altitude.integrationServer.exceptions.ISException Replies to an email with text.- Parameters:
sendFrom- Email senders.replyAll- Reply all.sendTo- Optional sendTo.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- Optional subject.emailId- Identifier of the email.bodyType- Type of the body of the email.body- Text body of the email.attachments- Attachments.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
replyEmailTextMedia
int replyEmailTextMedia(int mediaId, String sendFrom, boolean replyAll, String sendTo, String sendCc, String sendBcc, String subject, int emailId, BodyType bodyType, String body, Attachment[] attachments) throws Exception, altitude.integrationServer.exceptions.ISException Replies to an email with text.- Parameters:
mediaId- The identifier of the media.sendFrom- Email senders.replyAll- If true, the reply will be forwarded to all recipients.sendTo- Optional sendTo.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectemailId- Identifier of the email.bodyType- Type of the body of the email.body- Text body of the email.attachments- Attachments.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendEmailDocument
int sendEmailDocument(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Sends an email with a document.- Parameters:
sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectkBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendEmailDocument
int sendEmailDocument(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Sends an email with a document.- Parameters:
sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- optional subjectkBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.purposeFilter- Purpose filter.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendEmailDocumentMedia
int sendEmailDocumentMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId) throws Exception, altitude.integrationServer.exceptions.ISException Sends an email with a media document.- Parameters:
mediaId- The identifier of the media.sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- Subject of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendEmailDocumentMedia
int sendEmailDocumentMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, int kBDocumentId, Attachment[] attachments, Attribute[] attributes, int directoryId, int contactProfileId, PurposeFilter purposeFilter) throws Exception, altitude.integrationServer.exceptions.ISException Sends an email with a media document.- Parameters:
mediaId- The identifier of the media.sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- Subject of the email.kBDocumentId- Identifier of the knowledge base document.attachments- Attachments.attributes- Attributes attached to the phone call. The value can be NULL.directoryId- Identifier of the directory.contactProfileId- Identifier of the contact profile.purposeFilter- Purpose filter.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendEmailMime
int sendEmailMime(String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, byte[] mime) throws Exception, altitude.integrationServer.exceptions.ISException Sends an email encoded in MIME format and returns the identifier of the email.- Parameters:
sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- Subject of the email.mime- MIME message of the email.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendEmailMimeMedia
int sendEmailMimeMedia(int mediaId, String sendFrom, String sendTo, String sendCc, String sendBcc, String subject, byte[] mime) throws Exception, altitude.integrationServer.exceptions.ISException Sends an email encoded in MIME format and returns the identifier of the email.- Parameters:
mediaId- The identifier of the media.sendFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- Subject of the email.mime- MIME message of the email.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendEmailText
int sendEmailText(String sentFrom, String sendTo, String sendCc, String sendBcc, String subject, BodyType bodyType, String body, Attachment[] attachments) throws Exception, altitude.integrationServer.exceptions.ISException Sends an email with text.- Parameters:
sentFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- Subject of the email.bodyType- Type of the body of the email.body- Text body of the email.attachments- Attachments.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendEmailTextMedia
int sendEmailTextMedia(int mediaId, String sentFrom, String sendTo, String sendCc, String sendBcc, String subject, BodyType bodyType, String body, Attachment[] attachments) throws Exception, altitude.integrationServer.exceptions.ISException Sends an email with attachments.- Parameters:
mediaId- The identifier of the media.sentFrom- Email senders.sendTo- Email receivers.sendCc- Courtesy copy receivers.sendBcc- Blind courtesy copy receivers.subject- Subject of the email.bodyType- Type of the body of the email.body- Text body of the email.attachments- Attachments.- Returns:
- The identifier of the email.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendIMMessage
String sendIMMessage(String mediaName, String campaignName, String fromAddress, String to, String message) throws Exception, altitude.integrationServer.exceptions.ISException Sends a text IM Message(outbound direction).- Parameters:
mediaName- The media name.campaignName- The campaign name.fromAddress- The from address.to- The destination address.message- The text message.- Returns:
- The interaction key.
When the media is a whatsapp media, the text message only reaches the client if the from address has received a message from the destination in the last 24h, otherwise the SendIMTemplatedMessage method must be used.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
sendIMTemplatedMessage
String sendIMTemplatedMessage(String mediaName, String campaignName, String fromAddress, String to, String templateNamespace, String templateName, String language, TemplateParameter[] headerTemplateData, TemplateParameter[] bodyTemplateData, TemplateParameter[] footerTemplateData) throws Exception, altitude.integrationServer.exceptions.ISException Sends a templated IM Message(outbound direction, typically for WhatsApp media).- Parameters:
mediaName- The media name.campaignName- The campaign name.fromAddress- The from address.to- The destination address.templateNamespace- The template namespace(for some providers it is optional).templateName- The template name.language- The template language.headerTemplateData- The parameters to be applied in the header template section.bodyTemplateData- The parameters to be applied in the body template section>.footerTemplateData- The parameters to be applied in the footer template section.- Returns:
- The interaction key.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
startOutboundSocialInteraction
String startOutboundSocialInteraction(int mediaId, String campaignName, String sendFrom, String sendTo, boolean agentIsBusy, String contentType, byte[] data) throws Exception, altitude.integrationServer.exceptions.ISException Sends an social document and returns the identifier of the social document.- Parameters:
mediaId- The identifier of the media.campaignName- Name of the campaign where the interaction will be created.sendFrom- Social senders.sendTo- Social receivers.agentIsBusy- If true, the agent is busy.contentType- Content type.data- Data of the social.- Returns:
- The identifier of the social interaction key.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
unreserveAgent
-