package Ġcom . team xen ox . co doc 1 9 . controllers Ċ Ċ import Ġcom . team xen ox . co doc 1 9 . core . Bot s Manager Ċ import Ġcom . team xen ox . co doc 1 9 . data . repos . Analytics Repo Ċ import Ġcom . team xen ox . co doc 1 9 . data . repos . Chart Repo Ċ import Ġcom . team xen ox . co doc 1 9 . data . repos . User Repo Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . http . HttpStatus Ċ import Ġorg . springframework . stereotype . Controller Ċ import Ġorg . springframework . web . bind . annotation .* Ċ Ċ @ Controller Ċ class ĠGet Response Controller Ġ{ ĊĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġlateinit Ġvar Ġuser Repo : ĠUser Repo ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġlateinit Ġvar Ġanalytics Repo : ĠAnalytics Repo ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġlateinit Ġvar Ġchart Repo : ĠChart Repo ĊĊĠĠĠ Ġ@ PostMapping ("/ get _ response /{ agent Key }") ĊĠĠĠ Ġ@ ResponseStatus ( HttpStatus . OK ) ĊĠĠĠ Ġ@ ResponseBody ĊĠĠĠ Ġfun Ġget Response (@ PathVariable Ġagent Key : ĠString , Ġ@ RequestBody Ġupdate : ĠAny ): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġprintln (" ---------------- ----------- ") ĊĠĠĠĠĠĠĠ Ġprintln (" Hit !! ") ĊĠĠĠĠĠĠĠ Ġval Ġbm Ġ= ĠB ots Manager ( user Repo , Ġanalytics Repo , Ġchart Repo ) ĊĠĠĠĠĠĠĠ Ġval Ġagent Ġ= Ġbm . get Agent OrThrow ( agent Key ) ĊĠĠĠĠĠĠĠ Ġagent . handle ( update ) ĊĠĠĠĠĠĠĠ Ġreturn Ġ" ok " ĊĠĠĠ Ġ} Ċ }