mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-14 11:18:02 +00:00
1 line
9.1 KiB
JavaScript
1 line
9.1 KiB
JavaScript
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[1403],{24170:function(t,n,r){r.d(n,{AT:function(){return l},Lr:function(){return R},_t:function(){return f},i8:function(){return b},n1:function(){return m},sE:function(){return v},x_:function(){return g}});var e=r(90819),u=r.n(e),o=r(73193),a=r.n(o),i=r(89933),c=r.n(i),p=r(55735),s=r(41159);function f(t){return d.apply(this,arguments)}function d(){return(d=c()(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/agent/query/org",{method:"GET",params:a()(a()({},n),{},{client:p.bVn})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(t){return h.apply(this,arguments)}function h(){return(h=c()(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/agent/query/uid",{method:"GET",params:a()(a()({},n),{},{client:p.bVn})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(t){return w.apply(this,arguments)}function w(){return(w=c()(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/agent/create",{method:"POST",data:a()(a()({},n),{},{client:p.bVn})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(t){return k.apply(this,arguments)}function k(){return(k=c()(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/agent/update",{method:"POST",data:a()(a()({},n),{},{client:p.bVn})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function m(t){return y.apply(this,arguments)}function y(){return(y=c()(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/agent/update/avatar",{method:"POST",data:a()(a()({},n),{},{client:p.bVn})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(t){return x.apply(this,arguments)}function x(){return(x=c()(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/agent/update/autoreply",{method:"POST",data:a()(a()({},n),{},{client:p.bVn})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function R(t){return W.apply(this,arguments)}function W(){return(W=c()(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/agent/delete",{method:"POST",data:a()(a()({},n),{},{client:p.bVn})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},60150:function(t,n,r){r.d(n,{RU:function(){return f},xL:function(){return l}});var e=r(90819),u=r.n(e),o=r(73193),a=r.n(o),i=r(89933),c=r.n(i),p=r(55735),s=r(41159);function f(t){return d.apply(this,arguments)}function d(){return(d=c()(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/service/statistic/query/date",{method:"GET",params:a()(a()({},n),{},{client:p.bVn})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function l(t){return h.apply(this,arguments)}function h(){return(h=c()(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/service/statistic/calculate",{method:"POST",data:a()(a()({},n),{},{client:p.bVn})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},72614:function(t,n,r){r.d(n,{LE:function(){return s},W5:function(){return w},c$:function(){return d},n1:function(){return k},p0:function(){return h},zl:function(){return y}});var e=r(90819),u=r.n(e),o=r(73193),a=r.n(o),i=r(89933),c=r.n(i),p=r(41159);function s(t){return f.apply(this,arguments)}function f(){return(f=c()(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/workgroup/query/org",{method:"GET",params:a()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(t){return l.apply(this,arguments)}function l(){return(l=c()(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/workgroup/query/uid",{method:"GET",params: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=c()(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/workgroup/create",{method:"POST",data:a()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t){return v.apply(this,arguments)}function v(){return(v=c()(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/workgroup/update",{method:"POST",data:a()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function k(t){return m.apply(this,arguments)}function m(){return(m=c()(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/workgroup/update/avatar",{method:"POST",data:a()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(t){return b.apply(this,arguments)}function b(){return(b=c()(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/workgroup/delete",{method:"POST",data:a()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},1902:function(t,n,r){r.d(n,{E:function(){return f}});var e=r(73193),u=r.n(e),o=r(76711),a=r.n(o),i=r(55735),c=r(44435),p=r(83642),s=r(83890),f=(0,c.Ue)()((0,p.mW)((0,p.tJ)((0,s.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 i=[].concat(a()(e.slice(0,o)),[r],a()(e.slice(o+1))),c=u()(u()({},n().agentResult),{},{data:{content:i}});t({agentResult:c,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:i.zzK})))},95490:function(t,n,r){r.d(n,{$:function(){return f}});var e=r(73193),u=r.n(e),o=r(76711),a=r.n(o),i=r(55735),c=r(44435),p=r(83642),s=r(83890),f=(0,c.Ue)()((0,p.mW)((0,p.tJ)((0,s.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 i=[].concat(a()(e.slice(0,o)),[r],a()(e.slice(o+1))),c=u()(u()({},n().workgroupResult),{},{data:{content:i}});t({workgroupResult:c,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:i.b6l})))}}]); |