I'd have to see the NIE.
If the president asks the intelligence community if it is true that Democrats are lazy morons, and 9 of the 17 agencies come back and say, "Yes, Democrats are lazy morons," and 8 say that "no, it appears to us that Democrats are decent hardworking intelligent people," then (as long as DNI concurs with the majority) the consensus opinion of the intelligence community is that Democrats are lazy morons (with dissenting opinions at Tab B).
From what I have read open sources, it appears to me that someone (probably in Russia, probably with plausibly deniable connections to the FSB) got into Podesta's email (which was was a gmail account
john.podesta@gmail.com. Way to go, John, too stupid to encrypt your gmail? Which party do you work with?) and that Russian person handed the emails to Wikileaks, who released them online.
But I do not have access to the NIE, so that is conjecture.