api/src/data/resolvers/mutations/integrations.ts

Summary

Maintainability
F
5 days
Test Coverage

File integrations.ts has 567 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import * as telemetry from 'erxes-telemetry';
import { getUniqueValue } from '../../../db/factories';
import {
  Channels,
  Customers,
Severity: Major
Found in api/src/data/resolvers/mutations/integrations.ts - About 1 day to fix

    Function integrationsCreateExternalIntegration has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      async integrationsCreateExternalIntegration(
        _root,
        { data, ...doc }: IExternalIntegrationParams & { data: object },
        { user, dataSources }: IContext
      ) {
    Severity: Major
    Found in api/src/data/resolvers/mutations/integrations.ts - About 2 hrs to fix

      Function integrationsCopyLeadIntegration has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        async integrationsCopyLeadIntegration(
          _root,
          { _id }: { _id },
          { docModifier, user }: IContext
        ) {
      Severity: Major
      Found in api/src/data/resolvers/mutations/integrations.ts - About 2 hrs to fix

        Function integrationSendMail has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          async integrationSendMail(_root, args: any, { dataSources, user }: IContext) {
            const { erxesApiId, body, customerId, ...doc } = args;
        
            let kind = doc.kind;
        
        
        Severity: Minor
        Found in api/src/data/resolvers/mutations/integrations.ts - About 1 hr to fix

          Function integrationsCreateExternalIntegration has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
          Open

            async integrationsCreateExternalIntegration(
              _root,
              { data, ...doc }: IExternalIntegrationParams & { data: object },
              { user, dataSources }: IContext
            ) {
          Severity: Minor
          Found in api/src/data/resolvers/mutations/integrations.ts - About 1 hr to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function integrationsRemove has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            async integrationsRemove(
              _root,
              { _id }: { _id: string },
              { user, dataSources }: IContext
            ) {
          Severity: Minor
          Found in api/src/data/resolvers/mutations/integrations.ts - About 1 hr to fix

            Function integrationsEditCommonFields has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              async integrationsEditCommonFields(
                _root,
                { _id, name, brandId, channelIds, data },
                { user }
              ) {
            Severity: Minor
            Found in api/src/data/resolvers/mutations/integrations.ts - About 1 hr to fix

              Function integrationSendMail has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
              Open

                async integrationSendMail(_root, args: any, { dataSources, user }: IContext) {
                  const { erxesApiId, body, customerId, ...doc } = args;
              
                  let kind = doc.kind;
              
              
              Severity: Minor
              Found in api/src/data/resolvers/mutations/integrations.ts - About 25 mins to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                async integrationsEditMessengerIntegration(
                  _root,
                  { _id, ...fields }: IEditIntegration,
                  { user }: IContext
                ) {
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 2 other locations - About 2 hrs to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 181..191
              api/src/data/resolvers/mutations/integrations.ts on lines 634..644

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 91.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                async integrationsEditLeadIntegration(
                  _root,
                  { _id, ...doc }: IEditIntegration,
                  { user }: IContext
                ) {
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 2 other locations - About 2 hrs to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 134..143
              api/src/data/resolvers/mutations/integrations.ts on lines 634..644

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 91.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                async integrationsEditBookingIntegration(
                  _root,
                  { _id, ...doc }: IEditIntegration,
                  { user }: IContext
                ) {
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 2 other locations - About 2 hrs to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 134..143
              api/src/data/resolvers/mutations/integrations.ts on lines 181..191

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 91.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                async integrationsCreateMessengerIntegration(
                  _root,
                  doc: IIntegration,
                  { user }: IContext
                ) {
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 2 other locations - About 1 hr to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 168..176
              api/src/data/resolvers/mutations/integrations.ts on lines 618..629

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 63.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                async integrationsCreateLeadIntegration(
                  _root,
                  doc: IIntegration,
                  { user }: IContext
                ) {
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 2 other locations - About 1 hr to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 118..129
              api/src/data/resolvers/mutations/integrations.ts on lines 618..629

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 63.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                async integrationsCreateBookingIntegration(
                  _root,
                  doc: IIntegration,
                  { user }: IContext
                ) {
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 2 other locations - About 1 hr to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 118..129
              api/src/data/resolvers/mutations/integrations.ts on lines 168..176

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 63.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 4 locations. Consider refactoring.
              Open

                if (fields.channelIds) {
                  await Channels.updateMany(
                    { _id: { $in: fields.channelIds } },
                    { $push: { integrationIds: integration._id } }
                  );
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 3 other locations - About 1 hr to fix
              api/src/commands/migrateKnowledgeBase.ts on lines 17..22
              api/src/data/resolvers/mutations/integrations.ts on lines 60..65
              api/src/data/resolvers/mutations/integrations.ts on lines 222..227

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 4 locations. Consider refactoring.
              Open

                  if (doc.channelIds) {
                    await Channels.updateMany(
                      { _id: { $in: doc.channelIds } },
                      { $push: { integrationIds: integration._id } }
                    );
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 3 other locations - About 1 hr to fix
              api/src/commands/migrateKnowledgeBase.ts on lines 17..22
              api/src/data/resolvers/mutations/integrations.ts on lines 60..65
              api/src/data/resolvers/mutations/integrations.ts on lines 94..99

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 4 locations. Consider refactoring.
              Open

                if (doc.channelIds) {
                  await Channels.updateMany(
                    { _id: { $in: doc.channelIds } },
                    { $push: { integrationIds: integration._id } }
                  );
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 3 other locations - About 1 hr to fix
              api/src/commands/migrateKnowledgeBase.ts on lines 17..22
              api/src/data/resolvers/mutations/integrations.ts on lines 94..99
              api/src/data/resolvers/mutations/integrations.ts on lines 222..227

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 57.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

                async integrationsSaveMessengerConfigs(
                  _root,
                  { _id, messengerData }: { _id: string; messengerData: IMessengerData }
                ) {
                  return Integrations.saveMessengerConfigs(_id, messengerData);
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 1 other location - About 1 hr to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 148..153

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 56.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 2 locations. Consider refactoring.
              Open

                async integrationsSaveMessengerAppearanceData(
                  _root,
                  { _id, uiOptions }: { _id: string; uiOptions: IUiOptions }
                ) {
                  return Integrations.saveMessengerAppearanceData(_id, uiOptions);
              Severity: Major
              Found in api/src/data/resolvers/mutations/integrations.ts and 1 other location - About 1 hr to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 158..163

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 56.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                    await putCreateLog(
                      {
                        type: MODULE_NAMES.INTEGRATION,
                        newData: { ...doc, createdUserId: user._id, isActive: true },
                        object: integration
              Severity: Minor
              Found in api/src/data/resolvers/mutations/integrations.ts and 2 other locations - About 40 mins to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 67..74
              api/src/data/resolvers/mutations/integrations.ts on lines 600..607

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 48.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                await putCreateLog(
                  {
                    type: MODULE_NAMES.INTEGRATION,
                    newData: { ...doc, createdUserId: user._id, isActive: true },
                    object: integration
              Severity: Minor
              Found in api/src/data/resolvers/mutations/integrations.ts and 2 other locations - About 40 mins to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 259..266
              api/src/data/resolvers/mutations/integrations.ts on lines 600..607

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 48.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              Similar blocks of code found in 3 locations. Consider refactoring.
              Open

                  await putCreateLog(
                    {
                      type: MODULE_NAMES.INTEGRATION,
                      newData: { ...doc, createdUserId: user._id, isActive: true },
                      object: copiedIntegration
              Severity: Minor
              Found in api/src/data/resolvers/mutations/integrations.ts and 2 other locations - About 40 mins to fix
              api/src/data/resolvers/mutations/integrations.ts on lines 67..74
              api/src/data/resolvers/mutations/integrations.ts on lines 259..266

              Duplicated Code

              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

              Tuning

              This issue has a mass of 48.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

              There are no issues that match your filters.

              Category
              Status