export const tagsList = [
  {
    _id: "6501b8b2ddd26e9da234b7c0",
    type: "TAG",
    definition: {
      "resolutionDetails": {
        resolver: "EI",
        reference:
          "select check_in_date.date as timeSpan_Start from read_api_2000014.behavioural_catalog_reservation a join read_api_2000014.date check_in_date on check_in_date.date_id=a.dim_timespan_start_id join read_api_2000014.date modified_date on modified_date.date_id=a.dim_latest_updated_date_id join read_api_2000014.date lastmodifydate on lastmodifydate.date_id=a.dim_lastmodifydatetime_id join read_api_2000014.date d ON a.dim_event_date_id = d.date_id join read_api_2000014.date booking_date ON a.dim_createdatetime_id = booking_date.date_id join read_api_2000014.date check_out_date ON a.dim_timespan_end_id = check_out_date.date_id join (select resid_value,  max(date) as max_updated_date from read_api_2000014.behavioural_catalog_reservation a join read_api_2000014.date d on d.date_id=a.dim_latest_updated_date_id group by 1 ) b on a.resid_value=b.resid_value and b.max_updated_date=modified_date.date where resstatus='Reserved' and datediff(check_in_date.date, date(now()) )= 3",
        type: "QUERY",
      },
      "subType": "EXTERNAL",
      "label": {
        "zh-cn": "",
        "en": "Checkin date",
      },
      "value": "timeSpan_Start",
      "subtags": [],
      "tag-header": false,
      "supportedModules": [
        {
          mandatory: false,
          layout: "sms",
          context: "default",
        },
        {
          mandatory: false,
          layout: "sms",
          context: "outbound",
        },
        {
          mandatory: false,
          layout: "email",
          context: "default",
        },
        {
          mandatory: false,
          layout: "email",
          context: "outbound",
        },
      ],
    },
    scope: {
      tag: "STANDARD",
      orgId: -1,
      verticals: [],
    },
    isActive: true,
    createdBy: 50685535,
    updatedBy: 50685535,
    createdAt: "2023-09-13T13:27:14.653Z",
    updatedAt: "2023-09-13T13:27:14.653Z",
  },
  {
    _id: "5a291cdd85c3db29a2041e5a",
    type: "TAG",
    definition: {
      "label": {
        "en": "Optout",
        "ja-JP": "撤回",
      },
      "value": "optout",
      "subtags": [],
      "tag-header": false,
      "supportedModules": [
        {
          context: "journey",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "default",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "coupon_expiry",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "coupons",
          layout: "sms",
          mandatory: false,
        },
      ],
    },
    scope: {
      tag: "STANDARD",
      orgId: -1,
      verticals: [],
    },
    isActive: true,
    createdBy: 4,
    updatedBy: 15000449,
    createdAt: "2017-12-07T10:50:05.800Z",
    updatedAt: "2018-01-22T11:43:05.611Z",
  },
];

export const badgesTags = [
  {
    _id: "655b080695c9df613dbbed4d",
    type: "TAG",
    definition: {
      "label": {
        "en": "Badge",
        "ja-JP": "バッジ",
      },
      "value": "Badge",
      "subtags": [
        "Badge_expiry_date",
        "badges_issue_expiry_date",
        "Days_until_expiry",
        "badges_enroll_expiring_in_days",
        "badges_issue_expiring_in_days",
      ],
      "tag-header": true,
      "supportedModules": [
        {
          context: "loyalty",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "loyalty",
          layout: "email",
          mandatory: false,
        },
        {
          context: "loyalty",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "default",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "email",
          mandatory: false,
        },
        {
          context: "default",
          layout: "email",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "default",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "wechat",
          mandatory: false,
        },
        {
          context: "default",
          layout: "wechat",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "line",
          mandatory: false,
        },
        {
          context: "default",
          layout: "line",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "ebill",
          mandatory: false,
        },
        {
          context: "default",
          layout: "ebill",
          mandatory: false,
        },
      ],
    },
    scope: {
      verticals: [],
      orgId: -1,
      tag: "STANDARD",
    },
    isActive: true,
    createdBy: 15000449,
    updatedBy: 15000449,
    createdAt: "2022-06-24T10:28:45.738Z",
    updatedAt: "2022-06-24T10:28:45.738Z",
  },
  {
    _id: "655b0afec0af192ba585cc98",
    type: "TAG",
    definition: {
      "label": {
        "en": "Badge Expiry Date",
        "ja-JP": "バッジの有効期限",
      },
      "value": "Badge_expiry_date",
      "subtags": [
        "badge_expiry_mm_slash_dd_slash_yyyy",
        "badge_expiry_dd_slash_mm_slash_yyyy",
        "badge_expiry_yyyy_hyphen_mm_hyphen_dd",
        "badge_expiry_mm_slash_dd_slash_yy",
        "badge_expiry_dd_space_Mon_space_yyyy",
        "badge_expiry_Day_comma_space_Mon_space_dd_comma_space_yy",
        "badge_expiry_Dd_dot_mm_dot_yy",
        "badge_expiry_dd_space_Mon",
        "badges_enroll_expiry_date.FORMAT_1",
        "badges_enroll_expiry_date.FORMAT_2",
        "badges_enroll_expiry_date.FORMAT_3",
        "badges_enroll_expiry_date.FORMAT_4",
        "badges_enroll_expiry_date.FORMAT_5",
        "badges_enroll_expiry_date.FORMAT_6",
        "badges_enroll_expiry_date.FORMAT_7",
        "badges_enroll_expiry_date.FORMAT_8",
        "badges_issue_expiry_date.FORMAT_1",
        "badges_issue_expiry_date.FORMAT_2",
        "badges_issue_expiry_date.FORMAT_3",
        "badges_issue_expiry_date.FORMAT_4",
        "badges_issue_expiry_date.FORMAT_5",
        "badges_issue_expiry_date.FORMAT_6",
        "badges_issue_expiry_date.FORMAT_7",
        "badges_issue_expiry_date.FORMAT_8",
        "badges_issue_expiring_in_days",
      ],
      "tag-header": true,
      "supportedModules": [
        {
          context: "loyalty",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "loyalty",
          layout: "email",
          mandatory: false,
        },
        {
          context: "loyalty",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "default",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "email",
          mandatory: false,
        },
        {
          context: "default",
          layout: "email",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "default",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "wechat",
          mandatory: false,
        },
        {
          context: "default",
          layout: "wechat",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "line",
          mandatory: false,
        },
        {
          context: "default",
          layout: "line",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "ebill",
          mandatory: false,
        },
        {
          context: "default",
          layout: "ebill",
          mandatory: false,
        },
      ],
    },
    scope: {
      tag: "STANDARD",
      orgId: -1,
      verticals: [],
    },
    isActive: true,
  },
  {
    _id: "655b617e48bc1275ad0c717c",
    type: "TAG",
    definition: {
      "label": {
        "en": "Days_until_expiry",
        "ja-JP": "有効期限までの日数",
      },
      "value": "badges_enroll_expiring_in_days",
      "subtags": [],
      "tag-header": false,
      "supportedModules": [
        {
          context: "outbound",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "default",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "email",
          mandatory: false,
        },
        {
          context: "default",
          layout: "email",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "default",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "wechat",
          mandatory: false,
        },
        {
          context: "default",
          layout: "wechat",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "line",
          mandatory: false,
        },
        {
          context: "default",
          layout: "line",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "ebill",
          mandatory: false,
        },
        {
          context: "default",
          layout: "ebill",
          mandatory: false,
        },
      ],
    },
    scope: {
      verticals: [],
      orgId: -1,
      tag: "STANDARD",
    },
    isActive: true,
  },
  {
    _id: "65818c77915d01082d1d34de",
    type: "TAG",
    definition: {
      "label": {
        en: "mm/dd/yyyy",
      },
      "value": "badges_enroll_expiry_date.FORMAT_1",
      "subtags": [],
      "tag-header": false,
      "supportedModules": [
        {
          context: "outbound",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "default",
          layout: "sms",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "email",
          mandatory: false,
        },
        {
          context: "default",
          layout: "email",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "default",
          layout: "mobilepush",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "wechat",
          mandatory: false,
        },
        {
          context: "default",
          layout: "wechat",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "line",
          mandatory: false,
        },
        {
          context: "default",
          layout: "line",
          mandatory: false,
        },
        {
          context: "outbound",
          layout: "ebill",
          mandatory: false,
        },
        {
          context: "default",
          layout: "ebill",
          mandatory: false,
        },
      ],
    },
    scope: {
      tag: "STANDARD",
      orgId: -1,
      verticals: [],
    },
    isActive: true,
  },
];
export const OfferTag = [{
  _id: "5aaa0cec7472bc0eab75f55b",
  type: "TAG",
  definition: {
    "supportedModules": [
      {
        context: "journey",
        layout: "sms",
        mandatory: false,
      },
      {
        context: "journey",
        layout: "email",
        mandatory: false,
      },
      {
        context: "journey",
        layout: "mobilepush",
        mandatory: false,
      },
      {
        context: "default",
        layout: "sms",
        mandatory: false,
      },
      {
        context: "outbound",
        layout: "sms",
        mandatory: false,
      },
      {
        context: "outbound",
        layout: "line",
        mandatory: false,
      },
      {
        context: "default",
        layout: "line",
        mandatory: false,
      },
    ],
    "tag-header": true,
    "subtags": [
      "voucher",
      "valid_till_date",
      "valid_days_from_create",
    ],
    "value": "coupon",
    "label": {
      "en": "Coupons",
      "ja-JP": "クーポン",
    },
  },
  scope: {
    tag: "STANDARD",
    orgId: -1,
    verticals: [],
  },
  isActive: true,
  createdBy: 15000449,
  updatedBy: 15000449,
  createdAt: "2018-03-15T06:04:28.484Z",
  updatedAt: "2018-03-15T06:04:28.484Z",
},
];
export const offerOutput = [{children: [{disabled: undefined, title: "mac", value: "{{undefined}}"}], disabled: false, selectable: false, title: "Coupons", value: "{{coupon}}"}];
export const badgesOutput = [{children: [{children: [{children: [{disabled: false, title: "mm/dd/yyyy", value: "{{badges_enroll_expiry_date.FORMAT_1}}"}], disabled: false, selectable: false, title: "Badge Expiry Date", value: "{{Badge_expiry_date}}"}, {disabled: false, title: "Days_until_expiry", value: "{{badges_enroll_expiring_in_days}}"}], disabled: undefined, selectable: false, title: "moye_moye", value: "{{undefined}}"}], disabled: false, selectable: false, title: "Badge", value: "{{Badge}}"}];
export const tagsToFilter = ["timeSpan_Start"];

export const output1 = [
  {
    disabled: false,
    title: "Optout",
    value: "{{optout}}",
  },
];
export const output2 = [
  {
    disabled: false,
    title: "Checkin date",
    value: "{{timeSpan_Start}}",
  },
  {
    disabled: false,
    title: "Optout",
    value: "{{optout}}",
  },
];
export const offer = [
  { badgesMetaId: "12", badgeName: "moye_moye", type: "BADGES_ENROLL" },
];
export const expectedOffer = [
  {
    children: [
      {
        children: [
          {
            children: [
              {
                disabled: false,
                title: "mm/dd/yyyy",
                value: "{{badges_enroll_expiry_date.FORMAT_1}}",
              },
            ],
            disabled: false,
            selectable: false,
            title: "Badge Expiry Date",
            value: "{{Badge_expiry_date}}",
          },
          {
            disabled: false,
            title: "Days_until_expiry",
            value: "{{badges_enroll_expiring_in_days}}",
          },
        ],
        disabled: undefined,
        selectable: false,
        title: "moye_moye",
        value: "{{undefined}}",
      },
    ],
    disabled: false,
    selectable: false,
    title: "Badge",
    value: "{{Badge}}",
  },
];
