Clean up old SMS callback endpoints
This commit is contained in:
parent
a42c5824af
commit
182175254e
2 changed files with 2 additions and 7 deletions
|
|
@ -67,7 +67,7 @@ func convertHistory(history []Message) genai.Message {
|
||||||
The agent rarely asks questions, preferring to just answer direct queries.
|
The agent rarely asks questions, preferring to just answer direct queries.
|
||||||
For complex or highly specific requests, the agent will need to defer to the mosquito abatement district. This will take some time because contacting the district may take a few hours to get a response. When the agent needs to contact the district, the agent should tell the customer they are reaching out to the district and to expect a delay.
|
For complex or highly specific requests, the agent will need to defer to the mosquito abatement district. This will take some time because contacting the district may take a few hours to get a response. When the agent needs to contact the district, the agent should tell the customer they are reaching out to the district and to expect a delay.
|
||||||
When conversations start to veer away from the agent's job they should contact a supervisor.
|
When conversations start to veer away from the agent's job they should contact a supervisor.
|
||||||
Transcript starts:`,
|
Transcript:\n`,
|
||||||
)
|
)
|
||||||
for _, h := range history {
|
for _, h := range history {
|
||||||
if h.IsFromCustomer {
|
if h.IsFromCustomer {
|
||||||
|
|
|
||||||
|
|
@ -54,19 +54,14 @@ func Router() chi.Router {
|
||||||
r.Get("/qr-code/report/{code}", getQRCodeReport)
|
r.Get("/qr-code/report/{code}", getQRCodeReport)
|
||||||
r.Get("/signin", getSignin)
|
r.Get("/signin", getSignin)
|
||||||
r.Post("/signin", postSignin)
|
r.Post("/signin", postSignin)
|
||||||
r.Method("GET", "/signout", auth.NewEnsureAuth(getSignout))
|
|
||||||
r.Get("/signup", getSignup)
|
r.Get("/signup", getSignup)
|
||||||
r.Post("/signup", postSignup)
|
r.Post("/signup", postSignup)
|
||||||
r.Get("/sms", getSMS)
|
|
||||||
r.Post("/sms", postSMS)
|
|
||||||
r.Get("/sms.php", getSMS)
|
|
||||||
r.Get("/sms/{org}", getSMS)
|
|
||||||
r.Post("/sms/{org}", postSMS)
|
|
||||||
|
|
||||||
// Authenticated endpoints
|
// Authenticated endpoints
|
||||||
r.Route("/api", api.AddRoutes)
|
r.Route("/api", api.AddRoutes)
|
||||||
r.Method("GET", "/cell/{cell}", auth.NewEnsureAuth(getCellDetails))
|
r.Method("GET", "/cell/{cell}", auth.NewEnsureAuth(getCellDetails))
|
||||||
r.Method("GET", "/settings", auth.NewEnsureAuth(getSettings))
|
r.Method("GET", "/settings", auth.NewEnsureAuth(getSettings))
|
||||||
|
r.Method("GET", "/signout", auth.NewEnsureAuth(getSignout))
|
||||||
r.Method("GET", "/source/{globalid}", auth.NewEnsureAuth(getSource))
|
r.Method("GET", "/source/{globalid}", auth.NewEnsureAuth(getSource))
|
||||||
r.Method("GET", "/trap/{globalid}", auth.NewEnsureAuth(getTrap))
|
r.Method("GET", "/trap/{globalid}", auth.NewEnsureAuth(getTrap))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue