mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-13 10:52:37 +00:00
1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8043],{75580:function(t,n,r){r.d(n,{$l:function(){return g},Xd:function(){return b},gf:function(){return m},lg:function(){return l},lz:function(){return w},p0:function(){return d}});var e=r(90819),u=r.n(e),o=r(73193),a=r.n(o),c=r(89933),i=r.n(c),s=r(39497),p=r(14906);function d(t){return f.apply(this,arguments)}function f(){return(f=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/robot/query/org",{method:"GET",params:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(t){return h.apply(this,arguments)}function h(){return(h=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/robot/create",{method:"POST",data:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(t){return v.apply(this,arguments)}function v(){return(v=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/robot/update",{method:"POST",data:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t){return k.apply(this,arguments)}function k(){return(k=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/robot/update/avatar",{method:"POST",data:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(t){return R.apply(this,arguments)}function R(){return(R=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/robot/update/kbUid",{method:"POST",data:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function m(t){return y.apply(this,arguments)}function y(){return(y=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/robot/delete",{method:"POST",data:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},33019:function(t,n,r){r.d(n,{Lr:function(){return w},_t:function(){return d},sE:function(){return g},x_:function(){return l}});var e=r(90819),u=r.n(e),o=r(73193),a=r.n(o),c=r(89933),i=r.n(c),s=r(39497),p=r(14906);function d(t){return f.apply(this,arguments)}function f(){return(f=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/agent/query/org",{method:"GET",params:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(t){return h.apply(this,arguments)}function h(){return(h=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/agent/create",{method:"POST",data:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(t){return v.apply(this,arguments)}function v(){return(v=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/agent/update",{method:"POST",data:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t){return k.apply(this,arguments)}function k(){return(k=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.request)("/api/v1/agent/delete",{method:"POST",data:a()(a()({},n),{},{channel:s.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},2077:function(t,n,r){r.d(n,{LE:function(){return p},W5:function(){return h},p0:function(){return f},zl:function(){return v}});var e=r(90819),u=r.n(e),o=r(73193),a=r.n(o),c=r(89933),i=r.n(c),s=r(14906);function p(t){return d.apply(this,arguments)}function d(){return(d=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)("/api/v1/workgroup/query/org",{method:"GET",params:a()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(t){return l.apply(this,arguments)}function l(){return(l=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)("/api/v1/workgroup/create",{method:"POST",data:a()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function h(t){return g.apply(this,arguments)}function g(){return(g=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)("/api/v1/workgroup/update",{method:"POST",data:a()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(t){return w.apply(this,arguments)}function w(){return(w=i()(u()().mark((function t(n){return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,s.request)("/api/v1/workgroup/delete",{method:"POST",data:a()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},8938:function(t,n,r){r.d(n,{V:function(){return d}});var e=r(73193),u=r.n(e),o=r(76711),a=r.n(o),c=r(39497),i=r(58063),s=r(66266),p=r(31403),d=(0,i.Ue)()((0,s.mW)((0,s.tJ)((0,p.n)((function(t,n){return{robotResult:{data:{content:[]}},currentRobot:{uid:"",nickname:""},insertRobot:function(n){t((function(t){t.robotResult.data.content.unshift(n)}))},setRobotResult:function(r){t({robotResult:r});var e,u=n().currentRobot;""!==u.uid&&void 0!==u||(null===(e=r.data)||void 0===e||null===(e=e.content)||void 0===e?void 0:e.length)>0&&t({currentRobot:r.data.content[0]})},setCurrentRobot:function(r){var e=n().robotResult.data.content,o=e.findIndex((function(t){return t.uid===r.uid}));if(-1!==o){var c=[].concat(a()(e.slice(0,o)),[r],a()(e.slice(o+1))),i=u()(u()({},n().robotResult),{},{data:{content:c}});t({robotResult:i,currentRobot:r})}else console.warn("Robot with the specified uid not found."),t({currentRobot:r})},deleteCurrentRobot:function(r){var e=n().robotResult.data.content,o=e.findIndex((function(t){return t.uid===r}));-1!==o?t({robotResult:u()(u()({},n().robotResult),{},{data:{content:[].concat(a()(e.slice(0,o)),a()(e.slice(o+1)))}})}):console.warn("Robot not found in cache:",r),n().currentRobot.uid===r&&t({currentRobot:{uid:""}})},deleteRobotCache:function(){return t({},!0)}}})),{name:c.Eis})))},10404:function(t,n,r){r.d(n,{E:function(){return d}});var e=r(73193),u=r.n(e),o=r(76711),a=r.n(o),c=r(39497),i=r(58063),s=r(66266),p=r(31403),d=(0,i.Ue)()((0,s.mW)((0,s.tJ)((0,p.n)((function(t,n){return{agentResult:{data:{content:[]}},currentAgent:{uid:"",orgUid:""},insertAgent:function(n){t((function(t){t.agentResult.data.content.unshift(n)}))},updateAgent:function(n){t((function(t){var r=t.agentResult.data.content,e=r.findIndex((function(t){return t.uid===n.uid}));-1!==e?r[e]=n:console.warn("Agent with uid ".concat(n.uid," not found."))}))},setAgentResult:function(r){var e;(t({agentResult:r}),""===n().currentAgent.uid)&&((null===(e=r.data)||void 0===e||null===(e=e.content)||void 0===e?void 0:e.length)>0&&t({currentAgent:r.data.content[0]}))},setCurrentAgent:function(r){var e=n().agentResult.data.content,o=e.findIndex((function(t){return t.uid===r.uid}));if(-1!==o){var c=[].concat(a()(e.slice(0,o)),[r],a()(e.slice(o+1))),i=u()(u()({},n().agentResult),{},{data:{content:c}});t({agentResult:i,currentAgent:r})}else console.warn("Agent with the specified uid not found."),t({currentAgent:r})},deleteCurrentAgent:function(r){var e=n().agentResult.data.content,o=e.findIndex((function(t){return t.uid===r}));-1!==o?t({agentResult:u()(u()({},n().agentResult),{},{data:{content:[].concat(a()(e.slice(0,o)),a()(e.slice(o+1)))}})}):console.warn("Agent not found in cache:",r),n().currentAgent.uid===r&&t({currentAgent:{uid:"",orgUid:""}})},deleteAgentCache:function(){return t({},!0)}}})),{name:c.zzK})))},24388:function(t,n,r){r.d(n,{$:function(){return d}});var e=r(73193),u=r.n(e),o=r(76711),a=r.n(o),c=r(39497),i=r(58063),s=r(66266),p=r(31403),d=(0,i.Ue)()((0,s.mW)((0,s.tJ)((0,p.n)((function(t,n){return{workgroupResult:{data:{content:[]}},currentWorkgroup:{uid:"",nickname:"",avatar:"",description:"",orgUid:""},insertWorkgroup:function(n){t((function(t){t.workgroupResult.data.content.unshift(n)}))},updateWorkgroup:function(n){t((function(t){var r=t.workgroupResult.data.content,e=r.findIndex((function(t){return t.uid===n.uid}));-1!==e?r[e]=n:console.warn("Workgroup with uid ".concat(n.uid," not found."))}))},deleteWorkgroup:function(n){t((function(t){var r=t.workgroupResult.data.content,e=r.findIndex((function(t){return t.uid===n.uid}));-1!==e?r.splice(e,1):console.warn("Workgroup with uid ".concat(n.uid," not found."))}))},setWorkgroupResult:function(r){var e;(t({workgroupResult:r}),""===n().currentWorkgroup.uid)&&((null===(e=r.data)||void 0===e||null===(e=e.content)||void 0===e?void 0:e.length)>0&&t({currentWorkgroup:r.data.content[0]}))},setCurrentWorkgroup:function(r){var e=n().workgroupResult.data.content,o=e.findIndex((function(t){return t.uid===r.uid}));if(-1!==o){var c=[].concat(a()(e.slice(0,o)),[r],a()(e.slice(o+1))),i=u()(u()({},n().workgroupResult),{},{data:{content:c}});t({workgroupResult:i,currentWorkgroup:r})}else console.warn("Workgroup with the specified uid not found."),t({currentWorkgroup:r})},deleteCurrentWorkgroup:function(r){var e=n().workgroupResult.data.content,o=e.findIndex((function(t){return t.uid===r}));-1!==o?t({workgroupResult:u()(u()({},n().workgroupResult),{},{data:{content:[].concat(a()(e.slice(0,o)),a()(e.slice(o+1)))}})}):console.warn("Workgroup not found in cache:",r),n().currentWorkgroup.uid===r&&t({currentWorkgroup:{uid:"",orgUid:""}})},deleteWorkgroupCache:function(){return t({},!0)}}})),{name:c.b6l})))}}]); |