Potting Enclosures are used to encapsulate a PCB or electronic assembly. Thanks to this, the protection of the circuit against external agents is guaranteed.It is also sometimes done to prevent copying.
As a material used for filling, epoxy resin is usually used: