as: 'Field',
foreignKey: 'FieldId'
});
+ models.FreshdeskConfiguration.belongsToMany(models.Tag, {
+ through: 'int_freshdesk_configuration_has_tags'
+ });
+ models.FreshdeskConfiguration.addScope('account', function(AccountId) {
+ return {
+ where: {
+ AccountId: AccountId
+ },
+ include: [{
+ all: true
+ }]
+ }
+ });
}
});
};