The panchromatic high-resolution spectroscopic survey of local group star clusters: I. general data reduction procedures for the VLT/X-shooter UVB and VIS arm