A Constraint Programming Approach for Solving a Queueing Control Problem