EE - Convert Protected Branches feature JS code to ES6
What does this MR do?
This MR is an EE port of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12970
Why was this MR needed?
In an on-going progress of converting legacy ES5 code to ES6, this is one such attempt to clear ~"technical debt".