javascript – refactoring to make it simple without much if

I have this piece of code in my nodejs repository.
The criteria are huge, but I have shortened it so that the question remains simple.
there are many conditions if, what I do not really like … ask me what is the best way to rephrase it more simply and more directly