Files
weiyu/deploy/server/admin/3833.1211497d.async.js

1 line
81 KiB
JavaScript
Raw Normal View History

2025-06-19 18:33:55 +08:00
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3833],{27522: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(55735),d=i(41159);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),{},{client:a.bVn})}));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),{},{client:a.bVn})}));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),{},{client:a.bVn})}));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),{},{client:a.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},87491: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(55735),d=i(41159);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),{},{client:a.bVn})}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},43705: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(86803),p=i(99885),f=i(66916),m=i(76750),h=i(66310),w=i(40612),q=i(5321),S=i(69169),b=i(48708),F=i(84881),U=i(41159),y=i(3849),k=i(75365),x=i(44194),C=i(1902),M=i(95490),j=i(55735),T=i(24170),R=i(72614),P=i(11184),I=i(27522),Z=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),A=(0,P.M)(),K=A.config,L=A.updateConfig,V=(0,w.u)((function(e){return e.currentOrg})),W=(0,x.useState)(),N=v()(W,2),D=N[0],_=N[1],O=(0,x.useState)(),E=v()(O,2),Q=E[0],X=E[1],$=(0,x.useState)(),B=v()($,2),G=B[0],z=B[1],Y=(0,h.V)((function(e){return{currentRobot:e.currentRobot,setCurrentRobot:e.setCurrentRobot}})),H=Y.currentRobot,J=Y.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.xtN,chatSid:H.uid}:n===j.Njn?{chatType:j.scI,chatSid:te.uid}:n===j.aZD?{chatType:j.vPY,chatSid:oe.uid}:{chatType:j.xtN,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,I.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.orgUi