(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fd2b9e22"],{"0835":function(t,e,n){},1158:function(t,e,n){"use strict";n("0835")},"40d6":function(t,e,n){"use strict";n.d(e,"dc",(function(){return o})),n.d(e,"ec",(function(){return r})),n.d(e,"i",(function(){return s})),n.d(e,"V",(function(){return u})),n.d(e,"Vb",(function(){return i})),n.d(e,"kc",(function(){return c})),n.d(e,"Nb",(function(){return m})),n.d(e,"Ub",(function(){return d})),n.d(e,"D",(function(){return l})),n.d(e,"gb",(function(){return f})),n.d(e,"oc",(function(){return p})),n.d(e,"fb",(function(){return h})),n.d(e,"E",(function(){return b})),n.d(e,"rb",(function(){return v})),n.d(e,"cc",(function(){return g})),n.d(e,"zc",(function(){return k})),n.d(e,"ic",(function(){return O})),n.d(e,"hb",(function(){return j})),n.d(e,"K",(function(){return w})),n.d(e,"hc",(function(){return S})),n.d(e,"L",(function(){return _})),n.d(e,"u",(function(){return y})),n.d(e,"S",(function(){return W})),n.d(e,"Mb",(function(){return D})),n.d(e,"xb",(function(){return P})),n.d(e,"O",(function(){return L})),n.d(e,"G",(function(){return M})),n.d(e,"gc",(function(){return T})),n.d(e,"Eb",(function(){return C})),n.d(e,"q",(function(){return I})),n.d(e,"lb",(function(){return x})),n.d(e,"N",(function(){return A})),n.d(e,"wb",(function(){return N})),n.d(e,"o",(function(){return U})),n.d(e,"U",(function(){return B})),n.d(e,"Ib",(function(){return q})),n.d(e,"Rb",(function(){return $})),n.d(e,"X",(function(){return Q})),n.d(e,"Qb",(function(){return z})),n.d(e,"v",(function(){return E})),n.d(e,"nb",(function(){return J})),n.d(e,"w",(function(){return R})),n.d(e,"W",(function(){return H})),n.d(e,"Pb",(function(){return F})),n.d(e,"Sb",(function(){return V})),n.d(e,"Y",(function(){return Y})),n.d(e,"x",(function(){return G})),n.d(e,"ob",(function(){return K})),n.d(e,"Zb",(function(){return X})),n.d(e,"db",(function(){return Z})),n.d(e,"Yb",(function(){return tt})),n.d(e,"J",(function(){return et})),n.d(e,"A",(function(){return nt})),n.d(e,"y",(function(){return at})),n.d(e,"pb",(function(){return ot})),n.d(e,"Z",(function(){return rt})),n.d(e,"Tb",(function(){return st})),n.d(e,"Bb",(function(){return ut})),n.d(e,"wc",(function(){return it})),n.d(e,"Ab",(function(){return ct})),n.d(e,"Q",(function(){return mt})),n.d(e,"H",(function(){return dt})),n.d(e,"s",(function(){return lt})),n.d(e,"mb",(function(){return ft})),n.d(e,"P",(function(){return pt})),n.d(e,"zb",(function(){return ht})),n.d(e,"j",(function(){return bt})),n.d(e,"l",(function(){return vt})),n.d(e,"T",(function(){return gt})),n.d(e,"Gb",(function(){return kt})),n.d(e,"ib",(function(){return Ot})),n.d(e,"kb",(function(){return jt})),n.d(e,"tc",(function(){return wt})),n.d(e,"jb",(function(){return St})),n.d(e,"sc",(function(){return _t})),n.d(e,"vc",(function(){return yt})),n.d(e,"yc",(function(){return Wt})),n.d(e,"uc",(function(){return Dt})),n.d(e,"xc",(function(){return Pt})),n.d(e,"rc",(function(){return Lt})),n.d(e,"qc",(function(){return Mt})),n.d(e,"Xb",(function(){return Tt})),n.d(e,"cb",(function(){return Ct})),n.d(e,"I",(function(){return It})),n.d(e,"z",(function(){return xt})),n.d(e,"qb",(function(){return At})),n.d(e,"bb",(function(){return Nt})),n.d(e,"Wb",(function(){return Ut})),n.d(e,"mc",(function(){return Bt})),n.d(e,"ab",(function(){return qt})),n.d(e,"Jb",(function(){return $t})),n.d(e,"Kb",(function(){return Qt})),n.d(e,"d",(function(){return zt})),n.d(e,"e",(function(){return Et})),n.d(e,"R",(function(){return Jt})),n.d(e,"Hb",(function(){return Rt})),n.d(e,"Fb",(function(){return Ht})),n.d(e,"Lb",(function(){return Ft})),n.d(e,"jc",(function(){return Vt})),n.d(e,"F",(function(){return Yt})),n.d(e,"n",(function(){return Gt})),n.d(e,"m",(function(){return Kt})),n.d(e,"vb",(function(){return Xt})),n.d(e,"fc",(function(){return Zt})),n.d(e,"a",(function(){return te})),n.d(e,"sb",(function(){return ee})),n.d(e,"k",(function(){return ne})),n.d(e,"bc",(function(){return ae})),n.d(e,"yb",(function(){return oe})),n.d(e,"r",(function(){return re})),n.d(e,"C",(function(){return se})),n.d(e,"t",(function(){return ue})),n.d(e,"M",(function(){return ie})),n.d(e,"g",(function(){return ce})),n.d(e,"f",(function(){return me})),n.d(e,"h",(function(){return de})),n.d(e,"ub",(function(){return le})),n.d(e,"Ob",(function(){return fe})),n.d(e,"Db",(function(){return pe})),n.d(e,"tb",(function(){return he})),n.d(e,"ac",(function(){return be})),n.d(e,"pc",(function(){return ve})),n.d(e,"lc",(function(){return ge})),n.d(e,"B",(function(){return ke})),n.d(e,"Ac",(function(){return Oe})),n.d(e,"eb",(function(){return je})),n.d(e,"Cb",(function(){return we})),n.d(e,"nc",(function(){return Se})),n.d(e,"p",(function(){return _e})),n.d(e,"b",(function(){return ye})),n.d(e,"c",(function(){return We}));var a=n("b775");function o(t){return Object(a["a"])({url:"/smartor/target/targetInfo",method:"post",data:t})}function r(t){return Object(a["a"])({url:"/smartor/target/saveOrupdateIvrLibaTarget",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/countPatByTarget/"+t,method:"get"})}function u(t){return Object(a["a"])({url:"/smartor/target/remove/"+t,method:"get"})}function i(t){return Object(a["a"])({url:"/smartor/icd10/list",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/smartor/icd10/getInfo/"+t,method:"get"})}function m(t){return Object(a["a"])({url:"/smartor/baseopera/list",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/smartor/outicd10/list",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/smartor/outicd10/add",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/smartor/outicd10/remove/"+t,method:"get"})}function p(t){return Object(a["a"])({url:"/smartor/assort/selectIvrLibaTargetAssortList",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/smartor/assort/remove/"+t,method:"get"})}function b(t){return Object(a["a"])({url:"/smartor/assort/addtree",method:"post",data:t})}function v(t){return Object(a["a"])({url:"/smartor/assort/edit",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/smartor/target/list",method:"post",data:t})}function k(t){return Object(a["a"])({url:"/smartor/target/targetQuesMate",method:"post",data:t})}function O(t){return Object(a["a"])({url:"/smartor/script/list",method:"post",data:t})}function j(t){return Object(a["a"])({url:"/smartor/script/remove/"+t,method:"get"})}function w(t){return Object(a["a"])({url:"/smartor/script/saveOrUpdateScript",method:"post",data:t})}function S(t){return Object(a["a"])({url:"/smartor/script/selectInfoByCondition",method:"post",data:t})}function _(t){return Object(a["a"])({url:"/smartor/scriptassort/edit",method:"post",data:t})}function y(t){return Object(a["a"])({url:"/smartor/scriptassort/addtree",method:"post",data:t})}function W(t){return Object(a["a"])({url:"/smartor/scriptassort/remove/"+t,method:"get"})}function D(t){return Object(a["a"])({url:"/smartor/scriptassort/selectIvrLibaScriptAssortList",method:"post",data:t})}function P(t){return Object(a["a"])({url:"/smartor/template/list",method:"post",data:t})}function L(t){return Object(a["a"])({url:"/smartor/template/remove/"+t,method:"get"})}function M(t){return Object(a["a"])({url:"/smartor/template/saveOrUpdateScript",method:"post",data:t})}function T(t){return Object(a["a"])({url:"/smartor/template/selectInfoByCondition",method:"post",data:t})}function C(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/getTemplateInfoByID/"+t,method:"get"})}function I(t){return Object(a["a"])({url:"/smartor/templateassort/addtree",method:"post",data:t})}function x(t){return Object(a["a"])({url:"/smartor/templateassort/edit",method:"post",data:t})}function A(t){return Object(a["a"])({url:"/smartor/templateassort/remove/"+t,method:"get"})}function N(t){return Object(a["a"])({url:"/smartor/templateassort/selectIvrLibaTemplateAssortList",method:"post",data:t})}function U(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function B(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/remove/"+t,method:"get"})}function q(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/getInfo/"+t,method:"get"})}function $(t){return Object(a["a"])({url:"/smartor/extemplate/list",method:"post",data:t})}function Q(t){return Object(a["a"])({url:"/smartor/extemplate/remove/"+t,method:"get"})}function z(t){return Object(a["a"])({url:"/smartor/extemplate/"+t,method:"get"})}function E(t){return Object(a["a"])({url:"/smartor/extemplate/add",method:"post",data:t})}function J(t){return Object(a["a"])({url:"/smartor/extemplate/edit",method:"post",data:t})}function R(t){return Object(a["a"])({url:"/smartor/category/add",method:"post",data:t})}function H(t){return Object(a["a"])({url:"/smartor/category/remove/"+t,method:"get"})}function F(t){return Object(a["a"])({url:"/smartor/category/list",method:"post",data:t})}function V(t){return Object(a["a"])({url:"/smartor/extemplatescript/list",method:"post",data:t})}function Y(t){return Object(a["a"])({url:"/smartor/extemplatescript/remove/"+t,method:"get"})}function G(t){return Object(a["a"])({url:"/smartor/extemplatescript/add",method:"post",data:t})}function K(t){return Object(a["a"])({url:"/smartor/extemplatescript/edit",method:"post",data:t})}function X(t){return Object(a["a"])({url:"/smartor/library/list",method:"post",data:t})}function Z(t){return Object(a["a"])({url:"/smartor/library/remove/"+t,method:"get"})}function tt(t){return Object(a["a"])({url:"/smartor/library/selectInfoByCondition",method:"post",data:t})}function et(t){return Object(a["a"])({url:"/smartor/library/saveOrUpdateHeLibrary",method:"post",data:t})}function nt(t){return Object(a["a"])({url:"/common/htmlContent",method:"post",data:t})}function at(t){return Object(a["a"])({url:"/smartor/heLibraryAssort/addtree",method:"post",data:t})}function ot(t){return Object(a["a"])({url:"/smartor/heLibraryAssort/edit",method:"post",data:t})}function rt(t){return Object(a["a"])({url:"/smartor/heLibraryAssort/remove/"+t,method:"get"})}function st(t){return Object(a["a"])({url:"/smartor/heLibraryAssort/selectHeLibraryAssortList",method:"post",data:t})}n("b8cc");function ut(t){return Object(a["a"])({url:"/smartor/svyLibTemplate/selectSvyLibTemplatelist",method:"post",data:t})}function it(t){return Object(a["a"])({url:"smartor/svytemplateTask/selectInfoByCondition",method:"post",data:t})}function ct(t){return Object(a["a"])({url:"/smartor/svyLibTemplate/list",method:"get",params:t})}function mt(t){return Object(a["a"])({url:"/smartor/svyLibTemplate/remove/"+t,method:"get"})}function dt(t){return Object(a["a"])({url:"/smartor/svyLibTemplate/saveOrUpdateTemplate",method:"post",data:t})}function lt(t){return Object(a["a"])({url:"/smartor/svyLibTemplateCategory/addtree",method:"post",data:t})}function ft(t){return Object(a["a"])({url:"/smartor/svyLibTemplateCategory/edit",method:"post",data:t})}function pt(t){return Object(a["a"])({url:"/smartor/svyLibTemplateCategory/remove/"+t,method:"get"})}function ht(t){return Object(a["a"])({url:"/smartor/svyLibTemplateCategory/list",method:"post",data:t})}function bt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function vt(t){return Object(a["a"])({url:"/smartor/svytemplateTask/saveOrUpdateTaskTemp",method:"post",data:t})}function gt(t){return Object(a["a"])({url:"/smartor/svytemplateTask/remove/"+t,method:"get"})}function kt(t){return Object(a["a"])({url:"/smartor/svytemplateTask/"+t,method:"get"})}function Ot(t){return Object(a["a"])({url:"/smartor/td/add",method:"post",data:t})}function jt(t){return Object(a["a"])({url:"/smartor/td/list",method:"get",params:t})}function wt(t){return Object(a["a"])({url:"/smartor/taskdept/list",method:"post",data:t})}function St(t){return Object(a["a"])({url:"/smartor/td/remove/"+t,method:"get"})}function _t(t){return Object(a["a"])({url:"/smartor/taskdept/remove/"+t,method:"get"})}function yt(t){return Object(a["a"])({url:"/smartor/taskdiag/remove/".concat(t),method:"get"})}function Wt(t){return Object(a["a"])({url:"/smartor/taskoper/remove/".concat(t),method:"get"})}function Dt(t){return Object(a["a"])({url:"/smartor/taskdiag/list",method:"post",data:t})}function Pt(t){return Object(a["a"])({url:"/smartor/taskoper/list",method:"post",data:t})}function Lt(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/editByCondition",method:"post",data:t})}function Mt(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/add",method:"post",data:t})}function Tt(t){return Object(a["a"])({url:"/smartor/svyscript/list",method:"post",data:t})}function Ct(t){return Object(a["a"])({url:"/smartor/svyscript/remove/"+t,method:"get"})}function It(t){return Object(a["a"])({url:"/smartor/svyscript/saveOrUpdateScript",method:"post",data:t})}function xt(t){return Object(a["a"])({url:"/smartor/svyLibScriptCategory/addtree",method:"post",data:t})}function At(t){return Object(a["a"])({url:"/smartor/svyLibScriptCategory/edit",method:"post",data:t})}function Nt(t){return Object(a["a"])({url:"/smartor/svyLibScriptCategory/remove/"+t,method:"get"})}function Ut(t){return Object(a["a"])({url:"/smartor/svyLibScriptCategory/list",method:"post",data:t})}function Bt(t){return Object(a["a"])({url:"/smartor/serviceExternal/query360PatInfo",method:"post",data:t})}function qt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/remove/"+t,method:"get"})}function $t(t){return Object(a["a"])({url:"/smartor/patarchive/getPatientInfo",method:"post",data:t})}function Qt(t){return Object(a["a"])({url:"/smartor/patarchive/getPatientInfoQC",method:"post",data:t})}function zt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/insertOrUpdateTask",method:"post",data:t})}function Et(t){return Object(a["a"])({url:"/smartor/serviceSubtask/update",method:"post",data:t})}function Jt(t){return Object(a["a"])({url:"/smartor/servicetask/remove/"+t,method:"get"})}function Rt(t){return Object(a["a"])({url:"/smartor/servicetask/list",method:"post",data:t})}function Ht(t){return Object(a["a"])({url:"/smartor/serviceSubtask/queryTaskByCondition",method:"post",data:t})}function Ft(t){return Object(a["a"])({url:"/smartor/serviceSubtask/patItem",method:"post",data:t})}function Vt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/getSubtaskByDiagname",method:"post",data:t})}function Yt(t){return Object(a["a"])({url:"/smartor/serviceSubtask/patItemByCondition",method:"post",data:t})}function Gt(t){return Object(a["a"])({url:"/smartor/ivrTaskTemplate/saveOrUpdateTempScript",method:"post",data:t})}function Kt(t){return Object(a["a"])({url:"/smartor/commonTask/taskSend",method:"post",data:t})}function Xt(t){return Object(a["a"])({url:"/smartor/servicetask/getScriptInfoByCondition",method:"post",data:t})}function Zt(t){return Object(a["a"])({url:"/smartor/outPath/getInfoByParam",method:"post",params:{param:t}})}function te(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/saveQuestionCache",method:"post",data:t})}function ee(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/getQuestionCache",method:"post",data:t})}function ne(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/saveQuestionAnswer",method:"post",data:t})}function ae(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/selectPatQuestionResult",method:"post",data:t})}function oe(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/getPersonVoice",method:"post",data:t})}function re(t){return Object(a["a"])({url:"/smartor/serviceSubtaskDetail/batchAdd",method:"post",data:t})}function se(t){return Object(a["a"])({url:"/smartor/serviceSubtask/addSubTaskAgain",method:"post",data:t})}function ue(t){return Object(a["a"])({url:"/smartor/serviceSubtask/addSubTask",method:"post",data:t})}function ie(t){return Object(a["a"])({url:"/smartor/import/remove/"+t,method:"get"})}function ce(t){return Object(a["a"])({url:"/smartor/import/list",method:"post",data:t})}function me(t){return Object(a["a"])({url:"/smartor/import/edit",method:"post",data:t})}function de(t){return Object(a["a"])({url:"/smartor/import/getInfo/"+t,method:"get"})}function le(t){return Object(a["a"])({url:"/smartor/patouthosp/selectPatMedOuthospCount",method:"post",data:t})}function fe(t){return Object(a["a"])({url:"/smartor/patinhosp/selectPatMedInhospListCount",method:"post",data:t})}function pe(t){return Object(a["a"])({url:"/smartor/serviceSubtask/getServiceStatistics",method:"post",data:t})}function he(t){return Object(a["a"])({url:"/smartor/patinhosp/getDeptRanking",method:"post",data:t})}function be(t){return Object(a["a"])({url:"/smartor/organization/list",method:"get"})}function ve(t){return Object(a["a"])({url:"/sms/send",method:"post",data:t})}n("c38a");function ge(t){return Object(a["a"])({url:"/smartor/satisfaction/list",method:"post",data:t})}function ke(t){return Object(a["a"])({url:"/smartor/satisfaction/batchinsert",method:"post",data:t})}function Oe(t){return Object(a["a"])({url:"/smartor/satisfaction/edit",method:"post",data:t})}function je(t){return Object(a["a"])({url:"/smartor/satisfaction/remove/"+t,method:"get"})}function we(t){return Object(a["a"])({url:"/smartor/servicetask/getScriptByCondition",method:"post",data:t})}function Se(t){return Object(a["a"])({url:"/smartor/subtaskAnswer/saveMYDQuestionAnswer",method:"post",data:t})}function _e(t){return Object(a["a"])({url:"/getDept/"+t,method:"get"})}function ye(){return Object(a["a"])({url:"/smartor/ServiceTelInfo/getList",method:"get",params:{orgid:localStorage.getItem("orgid")}})}function We(t){return Object(a["a"])({url:"/smartor/ServiceTelInfo/setState",method:"get",params:t})}},"5ca3":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"websocket-demo"},[n("div",[n("h3",[t._v("Websocket接口测试DEMO")]),n("div",{staticClass:"config-area"},[n("div",{staticClass:"input-group"},[n("label",[t._v("CTI_WS_URL")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.cti_ws_url,expression:"config.cti_ws_url"}],attrs:{type:"text",placeholder:"ws://40.78.0.169:6688"},domProps:{value:t.config.cti_ws_url},on:{input:function(e){e.target.composing||t.$set(t.config,"cti_ws_url",e.target.value)}}}),n("label",[t._v("坐席工号")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.seatname,expression:"config.seatname"}],attrs:{type:"text",placeholder:"8000"},domProps:{value:t.config.seatname},on:{input:function(e){e.target.composing||t.$set(t.config,"seatname",e.target.value)}}}),n("label",[t._v("坐席分机")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.seatnum,expression:"config.seatnum"}],attrs:{type:"text",placeholder:"8000"},domProps:{value:t.config.seatnum},on:{input:function(e){e.target.composing||t.$set(t.config,"seatnum",e.target.value)}}}),n("label",[t._v("密码")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.password,expression:"config.password"}],attrs:{type:"text",placeholder:"123456"},domProps:{value:t.config.password},on:{input:function(e){e.target.composing||t.$set(t.config,"password",e.target.value)}}})]),n("div",{staticClass:"input-group"},[n("label",[t._v("外线号码")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.phone,expression:"config.phone"}],attrs:{type:"text",placeholder:"10086"},domProps:{value:t.config.phone},on:{input:function(e){e.target.composing||t.$set(t.config,"phone",e.target.value)}}}),n("label",[t._v("UUID")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.uuid,expression:"config.uuid"}],attrs:{type:"text"},domProps:{value:t.config.uuid},on:{input:function(e){e.target.composing||t.$set(t.config,"uuid",e.target.value)}}}),n("label",[t._v("其他坐席")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.other,expression:"config.other"}],attrs:{type:"text",placeholder:"8001"},domProps:{value:t.config.other},on:{input:function(e){e.target.composing||t.$set(t.config,"other",e.target.value)}}}),n("label",[t._v("技能组")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.group,expression:"config.group"}],attrs:{type:"text",placeholder:"a3"},domProps:{value:t.config.group},on:{input:function(e){e.target.composing||t.$set(t.config,"group",e.target.value)}}}),n("label",[t._v("外呼参数id")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.paramid,expression:"config.paramid"}],attrs:{type:"text",placeholder:"3"},domProps:{value:t.config.paramid},on:{input:function(e){e.target.composing||t.$set(t.config,"paramid",e.target.value)}}})])]),n("div",{staticClass:"button-area"},[n("div",{staticClass:"button-row"},[n("button",{on:{click:t.seatlogin}},[t._v("签入")]),n("button",{on:{click:t.seatlogout}},[t._v("签出")]),n("button",{on:{click:t.afk}},[t._v("示忙")]),n("button",{on:{click:t.online}},[t._v("示闲")]),n("button",{on:{click:t.pickup}},[t._v("代答")])]),n("div",{staticClass:"button-row"},[n("button",{on:{click:t.hangup}},[t._v("挂机")]),n("button",{on:{click:t.callout}},[t._v("外呼")]),n("button",{on:{click:t.transfer}},[t._v("通话转移")]),n("button",{on:{click:t.transferresume}},[t._v("通话转移收回")]),n("button",{on:{click:t.hold}},[t._v("通话保持")]),n("button",{on:{click:t.holdresume}},[t._v("通话保持收回")]),n("button",{on:{click:t.remove}},[t._v("通话强拆")]),n("button",{on:{click:t.insert}},[t._v("通话强插")]),n("button",{on:{click:t.monitor}},[t._v("监听")]),n("button",{on:{click:t.monitor_to_talk}},[t._v("监听转通话")]),n("button",{on:{click:t.monitor_end}},[t._v("监听结束")]),n("button",{on:{click:t.choosecall}},[t._v("选择")]),n("button",{on:{click:t.replacecall}},[t._v("代接")]),n("button",{on:{click:t.three}},[t._v("三方通话")])]),n("div",{staticClass:"button-row"},[n("button",{on:{click:t.handoff_ready}},[t._v("咨询开始")]),n("button",{on:{click:t.handoff_call}},[t._v("咨询呼叫")]),n("button",{on:{click:t.handoff_resume}},[t._v("咨询收回")]),n("button",{on:{click:t.handoff_transfer}},[t._v("咨询转移")]),n("button",{on:{click:t.handoff_three}},[t._v("咨询三方")]),n("button",{on:{click:t.record_start}},[t._v("开始通话录音")]),n("button",{on:{click:t.record_stop}},[t._v("停止通话录音")])]),n("div",{staticClass:"button-row"},[n("button",{on:{click:t.openseatlist}},[t._v("打开坐席状态")]),n("button",{on:{click:t.closeseatlist}},[t._v("关闭坐席状态")]),n("button",{on:{click:t.openqueues}},[t._v("打开队列信息")]),n("button",{on:{click:t.closequeues}},[t._v("关闭队列信息")]),n("button",{on:{click:t.opencalllist}},[t._v("打开通话信息")]),n("button",{on:{click:t.closecalllist}},[t._v("关闭通话信息")]),n("button",{on:{click:t.openroutelist}},[t._v("打开路由信息")]),n("button",{on:{click:t.closeroutelist}},[t._v("关闭路由信息")])]),n("div",{staticClass:"button-row"},[n("button",{on:{click:t.seatlist}},[t._v("获取坐席信息")]),n("button",{on:{click:t.queues}},[t._v("获取队列信息")]),n("button",{on:{click:t.calllist}},[t._v("获取通话信息")]),n("button",{on:{click:t.routelist}},[t._v("获取路由信息")]),n("button",{on:{click:t.batch}},[t._v("获取外呼参数信息")]),n("button",{on:{click:t.batch_start}},[t._v("开始外呼任务")]),n("button",{on:{click:t.batch_stop}},[t._v("停止外呼任务")])])]),n("h3",[t._v("协议日志区"),n("button",{on:{click:t.testclear}},[t._v("清除")])]),n("div",{staticClass:"log-area",attrs:{id:"msg"}},[t._v(t._s(t.logs))])])])},o=[],r=n("f458"),s=n("6ec7"),u=n("6932"),i=(n("618d"),n("7103"),n("fb51"),n("7a82"),n("8ada"),n("e795"),n("cfee"),n("8adb"),n("35f6"),n("46e6"),n("e8a6"),n("7184"),n("65bf"),n("40d6")),c={name:"WebsocketDemo",data:function(){return{config:{cti_ws_url:"wss://9.208.2.190:8092/cal-api/",seatname:"8000",seatnum:"8000",password:"123456",phone:"10086",uuid:"",other:"8001",group:"a3",paramid:"3"},randomNum:"",randomID:"",logs:"",ws:null,isConnected:!1}},mounted:function(){this.CallgetList(),this.initializeWebSocket()},beforeUnmount:function(){this.disconnectWebSocket()},methods:{initializeWebSocket:function(){var t=this;try{var e="https:"===window.location.protocol;if(this.config.cti_ws_url=e?"wss://9.208.2.190:8092/cal-api/":"ws://40.78.0.169:6688","undefined"===typeof window.WebSocket)return void this.addLog("错误: 浏览器不支持WebSocket");this.connectWebSocket()}catch(n){this.addLog("初始化WebSocket错误: ".concat(n.message)),this.config.cti_ws_url="wss://9.208.2.190:8092/cal-api/",setTimeout((function(){return t.connectWebSocket()}),2e3)}},CallgetList:function(){var t=this;return Object(u["a"])(Object(s["a"])().m((function e(){var n,a;return Object(s["a"])().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Object(i["b"])();case 1:n=e.v,t.randomNum=n.data[0].tel,t.randomID=n.data[0].id,t.config.seatname=randomNum,t.config.seatnum=randomNum,t.startCallsetState(),e.n=3;break;case 2:e.p=2,a=e.v,console.error("获取座席号失败:",a);case 3:return e.a(2)}}),e,null,[[0,2]])})))()},startCallsetState:function(){var t=this;return Object(u["a"])(Object(s["a"])().m((function e(){var n;return Object(s["a"])().w((function(e){while(1)switch(e.p=e.n){case 0:return e.p=0,e.n=1,Object(i["c"])({id:t.randomID,state:1});case 1:console.log("座席号状态更新为使用中"),e.n=3;break;case 2:e.p=2,n=e.v,console.error("更新座席号状态失败:",n);case 3:return e.a(2)}}),e,null,[[0,2]])})))()},overCallsetState:function(){var t=this;return Object(u["a"])(Object(s["a"])().m((function e(){var n;return Object(s["a"])().w((function(e){while(1)switch(e.p=e.n){case 0:if(e.p=0,!t.randomID){e.n=2;break}return e.n=1,Object(i["c"])({id:t.randomID,state:0});case 1:console.log("座席号状态更新为可用");case 2:e.n=4;break;case 3:e.p=3,n=e.v,console.error("释放座席号失败:",n);case 4:return e.a(2)}}),e,null,[[0,3]])})))()},connectWebSocket:function(){var t=this;if(this.ws&&this.ws.readyState===WebSocket.OPEN)this.addLog("WebSocket已连接");else try{var e=this.config.cti_ws_url;"https:"===window.location.protocol&&e.startsWith("ws://")&&(e=e.replace("ws://","wss://")),this.ws=new WebSocket(e),this.ws.onopen=function(){t.isConnected=!0,t.addLog("WebSocket连接成功")},this.ws.onmessage=function(e){t.handleWebSocketMessage(e)},this.ws.onclose=function(e){t.isConnected=!1,t.addLog("WebSocket连接关闭: ".concat(e.code," ").concat(e.reason)),setTimeout((function(){return t.connectWebSocket()}),3e3)},this.ws.onerror=function(n){t.addLog("WebSocket错误: ".concat(n.message)),e.includes("9.208.2.190")||(t.config.cti_ws_url="wss://9.208.2.190:8092/cal-api/",setTimeout((function(){return t.connectWebSocket()}),3e3))}}catch(n){this.addLog("连接WebSocket失败: ".concat(n.message)),this.config.cti_ws_url="wss://9.208.2.190:8092/cal-api/",setTimeout((function(){return t.connectWebSocket()}),3e3)}},handleWebSocketMessage:function(t){var e=this,n=new FileReader;n.onloadend=function(t){var a=n.result;e.addLog("收到消息: ".concat(a));try{var o=JSON.parse(a);"system"===o.cmd&&"keepalive"===o.action&&e.keepalive(o.seatname,o.seatnum),"control"===o.cmd&&"tp_callin"===o.action&&(e.config.uuid=o.uuid,e.addLog("自动设置UUID: ".concat(o.uuid)))}catch(r){e.addLog("消息解析错误: ".concat(r.message))}},n.readAsText(t.data)},disconnectWebSocket:function(){this.ws&&(this.ws.close(),this.ws=null,this.isConnected=!1,this.addLog("WebSocket已断开"))},sendWebSocketMessage:function(t){if(!this.isConnected||!this.ws)return this.addLog("错误: WebSocket未连接"),!1;try{var e="string"===typeof t?t:JSON.stringify(t);return this.ws.send(e),this.addLog("发送消息: ".concat(e)),!0}catch(n){return this.addLog("发送消息失败: ".concat(n.message)),!1}},validateParams:function(t,e){var n,a=Object(r["a"])(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(!t[o]||""===t[o].toString().trim())return this.addLog("错误: ".concat(o," 不能为空")),!1}}catch(s){a.e(s)}finally{a.f()}return!0},seatlogin:function(){var t=this,e=this.config,n=e.seatname,a=e.seatnum,o=e.password;e.cti_ws_url;this.validateParams({seatname:n,seatnum:a},["seatname","seatnum"])&&(this.connectWebSocket(),setTimeout((function(){var e={cmd:"system",action:"seatlogin",seatname:n,seatnum:a,password:o,timestamp:Date.now()};t.sendWebSocketMessage(e)}),1e3))},seatlogout:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatname:e,seatnum:n},["seatname","seatnum"])){var a={cmd:"system",action:"seatlogout",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a),this.ws.close()}},afk:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatname:e,seatnum:n},["seatname","seatnum"])){var a={cmd:"system",action:"afk",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},online:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatname:e,seatnum:n},["seatname","seatnum"])){var a={cmd:"system",action:"online",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},pickup:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"control",action:"pickup",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},hangup:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"control",action:"hangup",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},callout:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone;if(this.validateParams({seatnum:n,phone:a},["seatnum","phone"])){var o={cmd:"control",action:"callout",phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},transfer:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone,o=t.uuid;if(this.validateParams({seatnum:n,phone:a,uuid:o},["seatnum","phone","uuid"])){var r={cmd:"control",action:"transfer",uuid:o,phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(r)}},transferresume:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone,o=t.uuid;if(this.validateParams({seatnum:n,phone:a,uuid:o},["seatnum","phone","uuid"])){var r={cmd:"control",action:"transferresume",uuid:o,phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(r)}},hold:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.uuid;if(this.validateParams({seatnum:n,uuid:a},["seatnum","uuid"])){var o={cmd:"control",action:"hold",uuid:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},holdresume:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.uuid;if(this.validateParams({seatnum:n,uuid:a},["seatnum","uuid"])){var o={cmd:"control",action:"holdresume",uuid:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},remove:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone;if(this.validateParams({seatnum:n,phone:a},["seatnum","phone"])){var o={cmd:"control",action:"remove",phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},insert:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone;if(this.validateParams({seatnum:n,phone:a},["seatnum","phone"])){var o={cmd:"control",action:"insert",phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},monitor:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone;if(this.validateParams({seatnum:n,phone:a},["seatnum","phone"])){var o={cmd:"control",action:"monitor",phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},monitor_to_talk:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone;if(this.validateParams({seatnum:n,phone:a},["seatnum","phone"])){var o={cmd:"control",action:"monitor_to_talk",phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},monitor_end:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone;if(this.validateParams({seatnum:n,phone:a},["seatnum","phone"])){var o={cmd:"control",action:"monitor_end",phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},choosecall:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.uuid;if(this.validateParams({seatnum:n,uuid:a},["seatnum","uuid"])){var o={cmd:"control",action:"choosecall",uuid:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},replacecall:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone;if(this.validateParams({seatnum:n,phone:a},["seatnum","phone"])){var o={cmd:"control",action:"replacecall",phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},three:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.phone;if(this.validateParams({seatnum:n,phone:a},["seatnum","phone"])){var o={cmd:"control",action:"three",phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},handoff_ready:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.uuid;if(this.validateParams({seatnum:n,uuid:a},["seatnum","uuid"])){var o={cmd:"control",action:"handoff_ready",uuid:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},handoff_call:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.other,o=t.uuid;if(this.validateParams({seatnum:n,other:a,uuid:o},["seatnum","other","uuid"])){var r={cmd:"control",action:"handoff_call",uuid:o,phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(r)}},handoff_resume:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.uuid;if(this.validateParams({seatnum:n,uuid:a},["seatnum","uuid"])){var o={cmd:"control",action:"handoff_resume",uuid:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},handoff_transfer:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.other,o=t.uuid;if(this.validateParams({seatnum:n,other:a,uuid:o},["seatnum","other","uuid"])){var r={cmd:"control",action:"handoff_transfer",uuid:o,phone:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(r)}},handoff_three:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.uuid;if(this.validateParams({seatnum:n,uuid:a},["seatnum","uuid"])){var o={cmd:"control",action:"handoff_three",uuid:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},record_start:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.uuid;if(this.validateParams({seatnum:n,uuid:a},["seatnum","uuid"])){var o={cmd:"control",action:"record_start",uuid:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},record_stop:function(){var t=this.config,e=t.seatname,n=t.seatnum,a=t.uuid;if(this.validateParams({seatnum:n,uuid:a},["seatnum","uuid"])){var o={cmd:"control",action:"record_stop",uuid:a,seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(o)}},openseatlist:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"status",action:"openseatlist",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},closeseatlist:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"status",action:"closeseatlist",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},openqueues:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"status",action:"openqueues",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},closequeues:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"status",action:"closequeues",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},opencalllist:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"status",action:"opencalllist",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},closecalllist:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"status",action:"closecalllist",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},openroutelist:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"status",action:"openroutelist",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},closeroutelist:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"status",action:"closeroutelist",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},seatlist:function(){var t=this.config.group;if(this.validateParams({group:t},["group"])){var e={cmd:"status",action:"seatlist",group:t,timestamp:Date.now()};this.sendWebSocketMessage(e)}},queues:function(){var t={cmd:"status",action:"queues",timestamp:Date.now()};this.sendWebSocketMessage(t)},calllist:function(){var t={cmd:"status",action:"calllist",timestamp:Date.now()};this.sendWebSocketMessage(t)},routelist:function(){var t={cmd:"status",action:"routelist",timestamp:Date.now()};this.sendWebSocketMessage(t)},batch:function(){var t=this.config.paramid;if(this.validateParams({paramid:t},["paramid"])){var e={cmd:"status",action:"batch",paramid:t,timestamp:Date.now()};this.sendWebSocketMessage(e)}},batch_start:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"system",action:"batch_start",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},batch_stop:function(){var t=this.config,e=t.seatname,n=t.seatnum;if(this.validateParams({seatnum:n},["seatnum"])){var a={cmd:"system",action:"batch_stop",seatname:e,seatnum:n,timestamp:Date.now()};this.sendWebSocketMessage(a)}},keepalive:function(t,e){if(this.validateParams({seatnum:e},["seatnum"])){var n={cmd:"system",action:"keepalive",seatname:t,seatnum:e,timestamp:Date.now()};this.sendWebSocketMessage(n)}},testclear:function(){this.logs="",this.addLog("日志已清除")},addLog:function(t){var e=(new Date).toLocaleTimeString();this.logs+="[".concat(e,"] ").concat(t,"\n");var n=this.logs.split("\n");n.length>100&&(this.logs=n.slice(-50).join("\n"))}}},m=c,d=(n("1158"),n("1805")),l=Object(d["a"])(m,a,o,!1,null,"29977d40",null);e["default"]=l.exports}}]);