+
+#################    CONFIG     #################
+USE_MONGOIMPORT = true
+
+DEBUG_updateRowsLimit =  null  # set for debugging
+
+OMIT_NULL_VALUE_FIELDS_IN_COMMITMENTS_JSON = true
+
+IMPORT_COMMITMENT_DATES_AS_ = "epoch"    # Possibilities:  "epoch" "date" "string"
+# "date" won't work for negative dates
+# as long as https://jira.mongodb.org/browse/SERVER-961 is not fixed
+
+
+
+
+PATH = "data/imports/"
+TEMP_DIR = "temp"
+AIDDATA_TEMP_FILE = PATH + TEMP_DIR + "/aiddata.json"
+LOCATIONS_TEMP_FILE = PATH + TEMP_DIR + "/locations.json"
+
+################# END OF CONFIG #################
+
+
+
+
+
+
 console.log ">>>>>>>>>> Importing AidData >>>>>>>>>>"
 
 fs = require 'fs'

      "end_date" : "end_date"
    
    dateFieldsSelect = (dateFieldQ(f,q) for f,q of dateFields).join(',') 


    query = pgclient.query "
        SELECT

      row.origin = locationNameToCode[row.donor]
      row.dest = locationNameToCode[row.recipient]

      # won't work for negative dates as long as https://jira.mongodb.org/browse/SERVER-961 is not fixed
      if IMPORT_COMMITMENT_DATES_AS_ is "date"
        for f,q of dateFields 
          if row[f]?
            row[f] = { "$date" : row[f] }
