Optimization of staff resources management