A Halifax pub, that dates back to the 18th century, will reopen after six years thanks to a £350,000 revamp.