index-ea9786fe.js 789 B

1
  1. import{ap as t,__tla as l}from"./index-2eab2d23.js";let a,e,r,i,C,R,_,m=Promise.all([(()=>{try{return l}catch{}})()]).then(async()=>{a=(s=>(s[s.CRM_LEADS=1]="CRM_LEADS",s[s.CRM_CUSTOMER=2]="CRM_CUSTOMER",s[s.CRM_CONTACT=3]="CRM_CONTACT",s[s.CRM_BUSINESS=5]="CRM_BUSINESS",s[s.CRM_CONTRACT=6]="CRM_CONTRACT",s))(a||{}),e=(s=>(s[s.OWNER=1]="OWNER",s[s.READ=2]="READ",s[s.WRITE=3]="WRITE",s))(e||{}),R=async s=>await t.get({url:"/crm/permission/list",params:s}),i=async s=>await t.post({url:"/crm/permission/create",data:s}),_=async s=>await t.put({url:"/crm/permission/update",data:s}),C=async s=>await t.delete({url:"/crm/permission/delete",params:s}),r=async s=>await t.delete({url:"/crm/permission/quit-team?id="+s})});export{a as B,e as P,m as __tla,r as a,i as c,C as d,R as g,_ as u};