23 lines
721 B
C#
23 lines
721 B
C#
using BotSharp.Abstraction.Agents.Models;
|
|
using BotSharp.Plugin.Twilio.OutboundPhoneCallHandler.Enums;
|
|
|
|
namespace BotSharp.Plugin.Twilio.OutboundPhoneCallHandler.Hooks;
|
|
|
|
public class OutboundPhoneCallHandlerUtilityHook : IAgentUtilityHook
|
|
{
|
|
private static string PREFIX = "util-twilio-";
|
|
private static string OUTBOUND_PHONE_CALL_FN = $"{PREFIX}twilio_outbound_phone_call";
|
|
|
|
public void AddUtilities(List<AgentUtility> utilities)
|
|
{
|
|
var utility = new AgentUtility
|
|
{
|
|
Name = UtilityName.OutboundPhoneCall,
|
|
Functions = [new($"{OUTBOUND_PHONE_CALL_FN}")],
|
|
Templates = [new($"{OUTBOUND_PHONE_CALL_FN}.fn")]
|
|
};
|
|
|
|
utilities.Add(utility);
|
|
}
|
|
}
|