public class DeskManagementBot extends Object implements BotService
Modifier and Type | Field and Description |
---|---|
protected ConversationPermissionService |
conversationPermissionService |
protected ConversationService |
conversationService |
protected DeskService |
deskService |
protected PlatformIdentityService |
identityService |
protected MessageService |
messageService |
protected UserDefinitionService |
userDefinitionService |
Constructor and Description |
---|
DeskManagementBot(ConversationService conversationService,
ConversationPermissionService conversationPermissionService,
MessageService messageService,
PlatformIdentityService identityService,
UserDefinitionService userDefinitionService,
DeskService deskService) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
String |
getKey() |
String |
getName() |
protected void |
handleAssignTicketAction(String conversationId,
String currentUserId,
Map<String,Object> payload) |
protected void |
handleCreateNewTicketAction(String conversationId,
String currentUserId,
Map<String,Object> payload) |
protected void |
handleRemoveDeskMemberFromTicketAction(String conversationId,
String currentUserId,
Map<String,Object> payload) |
BotActionResult |
invokeBot(HistoricActionInstance actionInstance,
ActionDefinition actionDefinition,
Map<String,Object> payload) |
protected final ConversationService conversationService
protected final ConversationPermissionService conversationPermissionService
protected final MessageService messageService
protected final PlatformIdentityService identityService
protected final UserDefinitionService userDefinitionService
protected final DeskService deskService
public DeskManagementBot(ConversationService conversationService, ConversationPermissionService conversationPermissionService, MessageService messageService, PlatformIdentityService identityService, UserDefinitionService userDefinitionService, DeskService deskService)
public String getKey()
getKey
in interface BotService
public String getName()
getName
in interface BotService
public String getDescription()
getDescription
in interface BotService
public BotActionResult invokeBot(HistoricActionInstance actionInstance, ActionDefinition actionDefinition, Map<String,Object> payload)
invokeBot
in interface BotService
protected void handleCreateNewTicketAction(String conversationId, String currentUserId, Map<String,Object> payload)
protected void handleAssignTicketAction(String conversationId, String currentUserId, Map<String,Object> payload)