public function fetchScriptSettings()
    {
        $data = [];

        $scriptSettings = $this->factory->getConnection()->getModeScriptSettings();

        /**
         * @var string $i
         */
        $i = 1;
        foreach ($scriptSettings as $name => $value) {
            $data[] = [
                'index' => $i++,
                'name' => $name,
                'value' => $value,
            ];
        }

        return $data;
    }