What is the role of endotherapy in chronic pancreatitis?

What is the role of endotherapy in chronic pancreatitis?