There were two separate investigations. One involved Catalonian politicians close to nationalist parties. The second one involved members of Spanish government including the President.
Apparently Morocco was involved though nothing has been proved.