Role of Endoscopy for the management of chronic pancreatitis