 importer = require "./importer"
 Konnector = require '../models/konnector'
 
+konnectorHash = require '../lib/konnector_hash'
+
 hour = 60 * 60 * 1000
 day = 24 * hour
 week = 7 * day

                        # We set the current time
                        data =
                            lastAutoImport: moment()

                        # Create/Update lastAutoImport in database
                        savedKonnector.updateAttributes data, (err) =>

                        diff = firstImportDate.valueOf() - now.valueOf()

                        # We set the date of the first import
                        data = lastAutoImport: firstImportDate

                        fields = konnectorHash[savedKonnector.slug]
                        savedKonnector.removeEncryptedFields fields

                        # Create/Update lastAutoImport in database
                        savedKonnector.updateAttributes data, (err) =>
