~~~~~~~~~~
You may be "painting with too broad a brush" by damning the NSA. Do you actually understand the role the NSA plays in our relationship to the world?
What evidence do you have that the NSA was "on the wrong side" during this coup attempt? Remember, it was Admiral Rogers of the NSA who went to Trump Tower to warn the candidate, and who went to the FISA Court to warn them of the misuse of NSA data by the malefactors.
Likely half the NSA are foreign agents.
It took 15 years to discover one of the most damaging cases of espionage in U.S. history.
Gathering up every single communication on the planet; that much surveillance power provides too great a temptation for misuse. It has been misused within the NSA and without by the Obama Administration, and likely others. Conversely, in spite of siphoning up every form of communication, the NSA is ineffective in stopping actual terrorist events such as San Bernardino or the Los Vegas mass shooting.