Resveratrol attenuates hIAPP amyloid formation and restores the insulin secretion ability in hIAPP-INS1 cell line via enhancing autophagy.