def index
      if params[:where]
        data_source = params[:where].delete(:data_sources)
        params[:where]['settings.like'] = "%#{data_source}%"
      end

      @dashboards = MnoEnterprise::Impac::Dashboard
      @dashboards = @dashboards.limit(params[:limit]) if params[:limit]
      @dashboards = @dashboards.skip(params[:offset]) if params[:offset]
      @dashboards = @dashboards.order_by(params[:order_by]) if params[:order_by]
      @dashboards = @dashboards.where(params[:where]) if params[:where]
      @dashboards = @dashboards.where(owner_type: 'User', owner_id: current_user.id)
      @dashboards = @dashboards.all.fetch

      response.headers['X-Total-Count'] = @dashboards.metadata[:pagination][:count]
    end
def index
      if params[:where]
        data_source = params[:where].delete(:data_sources)
        params[:where]['settings.like'] = "%#{data_source}%"
      end

      @dashboards = MnoEnterprise::Impac::Dashboard
      @dashboards = @dashboards.limit(params[:limit]) if params[:limit]
      @dashboards = @dashboards.skip(params[:offset]) if params[:offset]
      @dashboards = @dashboards.order_by(params[:order_by]) if params[:order_by]
      @dashboards = @dashboards.where(params[:where]) if params[:where]
      @dashboards = @dashboards.where(owner_type: 'User', owner_id: current_user.id)
      @dashboards = @dashboards.all.fetch

      response.headers['X-Total-Count'] = @dashboards.metadata[:pagination][:count]
    end
GET /mnoe/jpi/v1/admin/impac/dashboards