Are extension cords safe for permanent use?
Extension cords that are not listed, labeled, or rated for permanent (long term) use are all temporary wiring devices.

If you need to permanently connect an electrical device, you should use approved wires and/or cable assemblies installed in an approved manner.