It could be a standard dual op amp (LM2904, LMC6482, etc.) being used as a dual comparator. If pin 2 is biased so that it is normally higher than pin 3, then closing the switch will take pins 1,5,6 & 7 high, the collector of the 2N3904 low, thus applying a voltage near ground to the low side of the relay coil. The second op amp is connected as a unity gain amplifier and takes the hi end of the relay coil hi, so the relay and the led turn on.