Hello 3CX Staff and 3CX community,
i would like use these script to switch in/out office hours for specific departments, not on a global level and not for only the department of the caller.
i have for example 4 departments: London, Paris, Roma and Oslo.
The super user of the company would like with dial codes to can switch in/out office hours each department independently.
Personnaly i understand that script is built with C# language, but i don't understand where to find the object that specify the departement, i guess to perform my wish, i need to replace this piece of code:
C#:
//for all departments
ps.GetAll<Group>().Extract(x=>x.AllowCallService)
.Select(x=>
by something like "ps.getlondon" or "ps.getparis" or kind of, to specify the department instead to switch all department at same time.
the example above in this post is usefull but has an impact only for the user dialing the code to 1 department, we would like that same user can control many departments
Does someone know how to achieve this goal?
or can you explain me where i can found the department objects?
a big thanks for your help.
BR
Hugo