Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   periods: [
  3.     {
  4.       "patterns": [
  5.         {
  6.           type: "daily",
  7.           mode: "add",
  8.           data: {
  9.             days: [0],
  10.             times: [
  11.               {
  12.                 from: "9:00",
  13.                 to: "12:00",
  14.               },
  15.               {
  16.                 from: "13:00",
  17.                 to: "20:00",
  18.               }
  19.             ]
  20.           }
  21.         },
  22.         {
  23.           type: "daily",
  24.           mode: "add",
  25.           data: {
  26.             days: [1],
  27.             times: [
  28.               {
  29.                 from: "9:00",
  30.                 to: "12:00",
  31.               },
  32.               {
  33.                 from: "13:00",
  34.                 to: "20:00",
  35.               }
  36.             ]
  37.           }
  38.         },
  39.         //...
  40.         {
  41.           type: "daily",
  42.           mode: "add",
  43.           data: {
  44.             days: [6],
  45.             times: [
  46.               {
  47.                 from: "9:00",
  48.                 to: "12:00",
  49.               },
  50.               {
  51.                 from: "13:00",
  52.                 to: "20:00",
  53.               }
  54.             ]
  55.           }
  56.         },
  57.         // exceptions
  58.         {
  59.           type: "day",
  60.           mode: "subtract",
  61.           data: {
  62.             date: "2019-09-12"
  63.           }
  64.         }
  65.       ]
  66.     }
  67.   ]
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement