package wmi

import (
	lib_wmi "github.com/projectdiscovery/nuclei/v3/pkg/js/libs/wmi"

	"github.com/projectdiscovery/goja"
	"github.com/projectdiscovery/nuclei/v3/pkg/js/gojs"
)

var (
	module = gojs.NewGojaModule("nuclei/wmi")
)

func init() {
	module.Set(
		gojs.Objects{
			// Functions
			"NewClient": lib_wmi.NewClient,

			// Var and consts
			"Auth": lib_wmi.Auth,

			// Objects / Classes
			"Client": lib_wmi.NewClient,
		},
	).Register()
}

func Enable(runtime *goja.Runtime) {
	module.Enable(runtime)
}
