Files
weiyu/deploy/server/admin/2174.0ffef19c.async.js

1 line
81 KiB
JavaScript
Raw Normal View History

2025-07-31 17:51:33 +08:00
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[2174],{15535:function(e,t,i){i.d(t,{AP:function(){return c},_J:function(){return h},t5:function(){return f},v_:function(){return g}});var n=i(90819),o=i.n(n),s=i(73193),r=i.n(s),u=i(89933),l=i.n(u),a=i(25191),d=i(75699);function c(e){return v.apply(this,arguments)}function v(){return(v=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/kbase/query/org",{method:"GET",params:r()(r()({},t),{},{channel:a.XtJ})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return p.apply(this,arguments)}function p(){return(p=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/kbase/create",{method:"POST",data:r()(r()({},t),{},{channel:a.XtJ})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return m.apply(this,arguments)}function m(){return(m=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/kbase/update",{method:"POST",data:r()(r()({},t),{},{channel:a.XtJ})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return w.apply(this,arguments)}function w(){return(w=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/kbase/delete",{method:"POST",data:r()(r()({},t),{},{channel:a.XtJ})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},41482:function(e,t,i){i.d(t,{Wq:function(){return c}});var n=i(90819),o=i.n(n),s=i(73193),r=i.n(s),u=i(89933),l=i.n(u),a=i(25191),d=i(75699);function c(e){return v.apply(this,arguments)}function v(){return(v=l()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,d.request)("/api/v1/queue/query/org",{method:"GET",params:r()(r()({},t),{},{channel:a.XtJ})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},28359:function(e,t,i){var n=i(76711),o=i.n(n),s=i(73193),r=i.n(s),u=i(90819),l=i.n(u),a=i(89933),d=i.n(a),c=i(45332),v=i.n(c),g=i(31756),p=i(23288),f=i(92556),m=i(30234),h=i(24875),w=i(31881),q=i(58896),S=i(6373),b=i(3e3),F=i(31051),U=i(75699),y=i(43413),k=i(77407),x=i(44194),C=i(76001),M=i(12273),j=i(25191),T=i(7999),R=i(20621),A=i(62010),P=i(15535),I=i(31549);t.Z=function(e){var t,i,n=e.type,s=S.A.useForm(),u=v()(s,1)[0],a=(0,U.useIntl)(),c=((0,U.useNavigate)(),(0,m.Z)().translateString),Z=(0,A.M)(),K=Z.config,L=Z.updateConfig,V=(0,w.u)((function(e){return e.currentOrg})),W=(0,x.useState)(),N=v()(W,2),_=N[0],X=N[1],D=(0,x.useState)(),O=v()(D,2),E=O[0],Q=O[1],$=(0,x.useState)(),B=v()($,2),G=B[0],J=B[1],z=(0,h.V)((function(e){return{currentRobot:e.currentRobot,setCurrentRobot:e.setCurrentRobot}})),H=z.currentRobot,Y=z.setCurrentRobot,ee=(0,C.E)((function(e){return{currentAgent:e.currentAgent,setCurrentAgent:e.setCurrentAgent}})),te=ee.currentAgent,ie=ee.setCurrentAgent,ne=(0,M.$)((function(e){return{currentWorkgroup:e.currentWorkgroup,setCurrentWorkgroup:e.setCurrentWorkgroup}})),oe=ne.currentWorkgroup,se=ne.setCurrentWorkgroup,re=(0,x.useMemo)((function(){return n===j._X4?{chatType:j.ACv,chatSid:H.uid}:n===j.Njn?{chatType:j._0X,chatSid:te.uid}:n===j.aZD?{chatType:j.I$6,chatSid:oe.uid}:{chatType:j.ACv,chatSid:""}}),[n,H,te,oe]),ue=re.chatType,le=re.chatSid,ae=function(){var e=d()(l()().mark((function e(){var t,i,o,s,r,d,c,v;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g.yw.loading(a.formatMessage({id:"loading",defaultMessage:"Loading"})),t={pageNumber:0,pageSize:50,type:j.QPQ,orgUid:null==V?void 0:V.uid},e.prev=2,e.next=5,(0,P.AP)(t);case 5:i=e.sent,console.log("getKbases response:",t,i),g.yw.destroy(),200===i.code?(c={code:i.code,message:i.message,data:{content:i.data.content.map((function(e){return{uid:e.uid,name:e.name,type:e.type,orgUid:e.o