Looks like a "super automatic" espresso machine.
It grinds the whole beans and typically they also have a doser (measures the weight or quantity of the ground up coffee beans), then it tamps the grounds, brews the coffee (which is some at a specific temperature and pressure), then ejects the used up coffee puck in a bin in the bottom of the machine.
The mechanism for the automatic tamping, brewing (with pressure valve) and ejection is one very complicated piece as well as the controls for the motor that operates it. Then there's the temperature and pressure controls for both the brewing of the coffee and the milk frother the machine likely has.
Edit: Video with partial teardown and which shows how the internals operate