text: /*global define*/
  
  define(function () {
  
      'use strict';
  
      return {
  
          "filter": {
  
              defaultFilter: {
                  "domain_code": ["TP"],
                  "show_lists": false
              },
  
              items: [
                  {
                      // id to be applied on the getData request
                      "id": "area",
                      "type": "codelist",
                      "parameter": "List1Codes",
                      "componentType": {
                          "class": "col-xs-6 col-sm-4",
                          "type": "dropDownList"
                      },
                      "config": {
                          "dimension_id": "countries",
                          "defaultCodes": ["3"],
                          "filter": {
                          }
                      }
                  },
                  {
                      "id": "year",
                      "type": "codelist",
                      "parameter": "List5Codes",
                      "componentType": {
                          "class": "col-xs-3 col-sm-2",
                          "type": "dropDownList"
                      },
                      "config": {
                          "dimension_id": "year",
                          "filter": {}
                      }
                  }
              ]
          },
  
          dashboard: {
  
              //data base filter
              defaultFilter: {
                  List2Codes: ["_1"],
                  List4Codes: ["_0"],
                  List5Codes: null,
                  List6Codes: null,
                  List7Codes: null,
                  decimal_places:4,
                  "null_values": false,
                  filter_list: "1",
                  rank_type: 'DESC'
              },
  
              // labels
              labels: {
                  // labels to dinamically substitute the title and subtitle
                  default: {
                  }
              },
  
  
              //bridge configuration
              bridge: {
  
                  type: "faostat",
                  requestType: 'rankings' // data, rankings
  
              },
  
              metadata: {},
  
              items: [
                  //EXEC Warehouse.dbo.usp_Rank @DomainCode = '(QA,QC,QD,QL,QP)', @List1Codes = '(''2'')', @List2Codes = '(''5510'')', @List3Codes = '(''_1'')', @List4Codes = '(''2013'')', @FilterList = 1, @RankType = 'DESC', @NoResults = 10, @Lang = 'E'
                  // FORCE SPACING
  
                  {
                      type: 'chart',
                      class: "col-md-12",
  
                      // labels
                      labels: {
                          // template to be applied to the config.template for the custom object
                          template: {
                              title: {
                                  en: "Top 10 Partners, Imports to {{area}}",
                                  fr: "Les 10 Premiers Partenaires, Importations vers {{area}}",
                                  es: "Los Mejores 10 Países Socios Importan a {{area}}"
                              },
                              subtitle: "{{year}}"
                          }
                      },
  
                      config: {
                          adapter: {
                              adapterType: 'faostat',
                              type: "standard",
                              xDimensions: ['partnerarea'],
                              yDimensions: 'unit',
                              valueDimensions: 'value',
                              seriesDimensions: ['area', 'element']
                          },
                          template: {
                             // height:'275px'
                              // default labels to be applied
                          },
                          creator: {
                              chartObj: {
                                  chart: {
                                      type: "column"
                                  }
                              }
                          }
                      },
                      allowedFilter: ['area', 'year', 'item', 'sum'],
                      deniedTemplateFilter: [],
                      filter: {
                          domain_codes: ['TM'],
                          List3Codes: ["5622"],
                          limit: "10"
                      }
                  },
  
                  // FORCE SPACING
                  {
                      type: 'custom',
                      class: 'clearfix',
                      config: {
                          template: {},
                          model: {}
                      }
                  },
  
                  {
                      type: 'table',
                      class: "col-md-12",
  
                      // labels
                      labels: {
                          template: {
                              title: {
                                  en: "Top 20 Partners, Imports to {{area}}",
                                  fr: "Les 20 Premiers Partenaires, Importations vers {{area}}",
                                  es: "Los Mejores 20 Países Socios Importan a {{area}}"
                              },
                              subtitle: "{{year}}"
                          }
                      },
  
                      config: {
                          adapter: {
                              columns: ['area', 'partnerarea', 'year', 'value', 'unit'],
                              showCodes: false
                          },
                          template: {
                              tableOptions: {
                                  'data-search': true,
                                  'data-show-header': false
                              }
                              // height: '300'
                          }
                      },
                      allowedFilter: ['area', 'year', 'item', 'aggregation'],
                      deniedTemplateFilter: [],
                      filter: {
                          domain_codes: ['TM'],
                          List3Codes: ["5622"],
                          limit: "20"
                      }
                  }
  
              ]
          }
  
      };
  });