CDJ soundcard AND Traktor soundcard, use the CDJ's to send their signal to the DJM.
Use the DJM soundcard for recording and live input.
Cons, can only use 2 decks.
Use the DJM soundcard for everything make something to switch the CDJ A to CDJ C and B to D.
Then you can play 4 decks with 2 CDJ's.