def init(cfg):
global na3x_cfg<EOL>with open(cfg[NA3X_DB]) as db_cfg_file:<EOL><INDENT>na3x_cfg[NA3X_DB] = json.load(db_cfg_file, strict=False)<EOL><DEDENT>with open(cfg[NA3X_TRIGGERS]) as triggers_cfg_file:<EOL><INDENT>na3x_cfg[NA3X_TRIGGERS] = json.load(triggers_cfg_file, strict=False)<EOL><DEDENT>with open(cfg[NA3X_ENV]) as env_cfg_file:<EOL><INDENT>na3x_cfg[NA3X_ENV] = json.load(env_cfg_file, strict=False)<EOL><DEDENT>
Initialiaze na3x
:param cfg: db, triggers, environment variables configuration