"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[3685],{66942:function(t,n,r){r.d(n,{AT:function(){return l},Lr:function(){return W},_t:function(){return f},i8:function(){return x},n1:function(){return m},sE:function(){return v},x_:function(){return g}});var e=r(90819),u=r.n(e),a=r(73193),o=r.n(a),c=r(89933),i=r.n(c),p=r(18232),s=r(43906);function f(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/agent/query/org",{method:"GET",params:o()(o()({},n),{},{channel:p.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,s.request)("/api/v1/agent/query/uid",{method:"GET",params:o()(o()({},n),{},{channel:p.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(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/agent/create",{method:"POST",data:o()(o()({},n),{},{channel:p.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(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,s.request)("/api/v1/agent/update",{method:"POST",data:o()(o()({},n),{},{channel:p.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,s.request)("/api/v1/agent/update/avatar",{method:"POST",data:o()(o()({},n),{},{channel:p.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function x(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,s.request)("/api/v1/agent/update/autoreply",{method:"POST",data:o()(o()({},n),{},{channel:p.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function W(t){return q.apply(this,arguments)}function q(){return(q=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/agent/delete",{method:"POST",data:o()(o()({},n),{},{channel:p.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},56293:function(t,n,r){r.d(n,{RU:function(){return f},xL:function(){return l}});var e=r(90819),u=r.n(e),a=r(73193),o=r.n(a),c=r(89933),i=r.n(c),p=r(18232),s=r(43906);function f(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/service/statistic/query/date",{method:"GET",params:o()(o()({},n),{},{channel:p.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,s.request)("/api/v1/service/statistic/calculate",{method:"POST",data:o()(o()({},n),{},{channel:p.XtJ})}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},88192: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),a=r(73193),o=r.n(a),c=r(89933),i=r.n(c),p=r(43906);function s(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/workgroup/query/org",{method:"GET",params:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function d(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,p.request)("/api/v1/workgroup/query/uid",{method:"GET",params:o()({},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,p.request)("/api/v1/workgroup/create",{method:"POST",data:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(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/workgroup/update",{method:"POST",data:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function k(t){return m.apply(this,arguments)}function m(){return(m=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/workgroup/update/avatar",{method:"POST",data:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function y(t){return x.apply(this,arguments)}function x(){return(x=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/workgroup/delete",{method:"POST",data:o()({},n)}));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},36914:function(t,n,r){r.d(n,{E:function(){return f}});var e=r(73193),u=r.n(e),a=r(76711),o=r.n(a),c=r(18232),i=r(16894),p=r(45034),s=r(47401),f=(0,i.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,a=e.findIndex((function(t){return t.uid===r.uid}));if(-1!==a){var c=[].concat(o()(e.slice(0,a)),[r],o()(e.slice(a+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,a=e.findIndex((function(t){return t.uid===r}));-1!==a?t({agentResult:u()(u()({},n().agentResult),{},{data:{content:[].concat(o()(e.slice(0,a)),o()(e.slice(a+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})))},17817:function(t,n,r){r.d(n,{$:function(){return f}});var e=r(73193),u=r.n(e),a=r(76711),o=r.n(a),c=r(18232),i=r(16894),p=r(45034),s=r(47401),f=(0,i.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,a=e.findIndex((function(t){return t.uid===r.uid}));if(-1!==a){var c=[].concat(o()(e.slice(0,a)),[r],o()(e.slice(a+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,a=e.findIndex((function(t){return t.uid===r}));-1!==a?t({workgroupResult:u()(u()({},n().workgroupResult),{},{data:{content:[].concat(o()(e.slice(0,a)),o()(e.slice(a+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})))}}]);