What is the role of both the calcium ion and chloride ion in terms of the regulation of the amylase enzyme?