gnrslash4life
MIS
This is a new script i have on one of my queues. However for the Sunday part of it, it does not work. The message will not play at all.
/*PRODUCE*/
IF OUT OF SERVICE produce THEN
GIVE RAN closed_ran
DISCONNECT
END IF
IF (DATE=holidays) THEN
GIVE RAN closed_ran
DISCONNECT
END IF
IF ((DAY OF WEEK=bus_days) AND (TIME OF DAY=bus_hrs))
/*mon thru fri 7:30am to 5pm or sun 7am to 10am*/
THEN
QUEUE TO SKILLSET produce
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14
END IF
IF (DAY OF WEEK=produce_sat) THEN
QUEUE TO SKILLSET cserv
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14
END IF
IF ((DAY OF WEEK=produce_sun) AND
(TIME OF DAY=produce_sun_hrs)) AND AGE OF CALL > 18
THEN
QUEUE TO SKILLSET cserv
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14
END IF
SECTION WAIT_LOOP
WAIT 60
IF OUT OF SERVICE produce THEN
GIVE RAN closed_ran
DISCONNECT
END IF
GIVE RAN csr_ran2_gv
EXECUTE WAIT_LOOP
/*PRODUCE*/
IF OUT OF SERVICE produce THEN
GIVE RAN closed_ran
DISCONNECT
END IF
IF (DATE=holidays) THEN
GIVE RAN closed_ran
DISCONNECT
END IF
IF ((DAY OF WEEK=bus_days) AND (TIME OF DAY=bus_hrs))
/*mon thru fri 7:30am to 5pm or sun 7am to 10am*/
THEN
QUEUE TO SKILLSET produce
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14
END IF
IF (DAY OF WEEK=produce_sat) THEN
QUEUE TO SKILLSET cserv
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14
END IF
IF ((DAY OF WEEK=produce_sun) AND
(TIME OF DAY=produce_sun_hrs)) AND AGE OF CALL > 18
THEN
QUEUE TO SKILLSET cserv
WAIT 2
GIVE RAN csr_ran
GIVE MUSIC mus_14
END IF
SECTION WAIT_LOOP
WAIT 60
IF OUT OF SERVICE produce THEN
GIVE RAN closed_ran
DISCONNECT
END IF
GIVE RAN csr_ran2_gv
EXECUTE WAIT_LOOP