/**
  * Lists the flows for the module
  * @param Request $request
  * @return \BladeView|bool|\Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function index(Request $request)
 {
     if ($request->ajax()) {
         return Datatables::of(Flow::select(['id', 'name', 'description', 'active'])->where('module', 'tasks'))->addColumn('actions', function ($flow) {
             return $this->getButtons($flow);
         })->addColumn('activePresented', function ($flow) {
             return $flow->activePresented;
         })->make(true);
     }
     $html = $this->htmlBuilder->addColumn(['data' => 'id', 'name' => 'id', 'title' => 'Id'])->addColumn(['data' => 'name', 'name' => 'name', 'title' => 'Nombre'])->addColumn(['data' => 'description', 'name' => 'description', 'title' => 'DescripciĆ³n'])->addColumn(['data' => 'activePresented', 'name' => 'activePresented', 'title' => 'Activo'])->addColumn(['data' => 'actions', 'name' => 'actions', 'title' => '']);
     return view('tasks::config.index', compact('html'));
 }