Help identifying unknown component
These are high voltage flat resistors. 

But, the colour on top of it i think it may be epoxy coating for protection from environment.

The below image is leaded ones with out epoxy coating on top.

follow this link for more details and applications of this component: link

Sample data sheet of leaded type:DATASHEET