Any record or report made to the director pursuant to this article, or any contract required to be filed under this chapter, is confidential and shall not be divulged, except if necessary for the proper determination of any court proceedings or hearing before the director.