Built motion from commit d127c62.|0.0.151
[motion.git] / server / models / tools_tag.js
index ca921c9..9454f31 100644 (file)
@@ -11,7 +11,7 @@ module.exports = function(sequelize, DataTypes) {
       allowNull: false,
       validate: {
         notEmpty: true,
-        is: /^[A-Za-z0-9]+$/i
+        is: /[A-Za-z0-9._\\+*!-]+/
       }
     },
     description: DataTypes.STRING
@@ -21,6 +21,9 @@ module.exports = function(sequelize, DataTypes) {
       Tag.belongsToMany(models.ZendeskConfiguration, {
         through: 'zendesk_configuration_has_tags'
       });
+      Tag.belongsToMany(models.FreshdeskConfiguration, {
+        through: 'int_freshdesk_configuration_has_tags'
+      });
       Tag.addScope('configuration', {
         include: [{
           all: true