AkashSaikia

Sample JS

Jun 16th, 2016
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var data = [
  2.         {
  3.             name: "Akash",
  4.             user_id: "1",
  5.             user_outlet_id: "1",
  6.             outlet_id: "1",
  7.             outlet_name: "Kepler Bay",
  8.             arrTasks: [
  9.                 {
  10.                     task_id: "1",
  11.                     date: "01-01-2016",
  12.                     from: "01-01-2016",
  13.                     to: "01-03-2016",
  14.                     from_time: "9:30am",
  15.                     to_time: "2pm",
  16.                     tags: "Kitchen",
  17.                     otherFields: "..."
  18.  
  19.                 },
  20.                 {
  21.                     task_id: "28",
  22.                     date: "04-03-2016",
  23.                     from: "04-03-2016",
  24.                     to: "04-07-2016",
  25.                     from_time: "9:30am",
  26.                     to_time: "2pm",
  27.                     tags: "2016 April Long task",
  28.                     otherFields: "..."
  29.  
  30.                 },
  31.                 {
  32.                     task_id: "29",
  33.                     date: "04-04-2016",
  34.                     from: "04-03-2016",
  35.                     to: "04-07-2016",
  36.                     from_time: "9:30am",
  37.                     to_time: "2pm",
  38.                     tags: "2016 April Long task",
  39.                     otherFields: "..."
  40.                 },
  41.                 {
  42.                     task_id: "29",
  43.                     date: "04-05-2016",
  44.                     from: "04-03-2016",
  45.                     to: "04-07-2016",
  46.                     from_time: "9:30am",
  47.                     to_time: "2pm",
  48.                     tags: "2016 April Long task",
  49.                     otherFields: "..."
  50.                 },
  51.                 {
  52.                     task_id: "29",
  53.                     date: "04-06-2016",
  54.                     from: "04-03-2016",
  55.                     to: "04-07-2016",
  56.                     from_time: "9:30am",
  57.                     to_time: "2pm",
  58.                     tags: "2016 April Long task",
  59.                     otherFields: "..."
  60.                 },
  61.                 {
  62.                     task_id: "29",
  63.                     date: "04-07-2016",
  64.                     from: "04-03-2016",
  65.                     to: "04-07-2016",
  66.                     from_time: "9:30am",
  67.                     to_time: "2pm",
  68.                     tags: "2016 April Long task",
  69.                     otherFields: "..."
  70.  
  71.                 },
  72.                 {
  73.                     task_id: "28",
  74.                     date: "04-04-2016",
  75.                     from: "04-01-2016",
  76.                     to: "04-04-2016",
  77.                     from_time: "9:30am",
  78.                     to_time: "2pm",
  79.                     tags: "2016 April Long task",
  80.                     otherFields: "..."
  81.  
  82.                 },
  83.                 {
  84.                     task_id: "29",
  85.                     date: "01-02-2016",
  86.                     from: "01-01-2016",
  87.                     to: "01-15-2016",
  88.                     from_time: "9:30am",
  89.                     to_time: "2pm",
  90.                     tags: "2016 Jan Long task",
  91.                     otherFields: "..."
  92.  
  93.                 },
  94.                 {
  95.                     task_id: "29",
  96.                     date: "01-03-2016",
  97.                     from: "01-01-2016",
  98.                     to: "01-15-2016",
  99.                     from_time: "9:30am",
  100.                     to_time: "2pm",
  101.                     tags: "2016 Jan Long task",
  102.                     otherFields: "..."
  103.  
  104.                 },
  105.                 {
  106.                     task_id: "29",
  107.                     date: "01-04-2016",
  108.                     from: "01-01-2016",
  109.                     to: "01-15-2016",
  110.                     from_time: "9:30am",
  111.                     to_time: "2pm",
  112.                     tags: "2016 Jan Long task",
  113.                     otherFields: "..."
  114.  
  115.                 },
  116.                 {
  117.                     task_id: "29",
  118.                     date: "01-05-2016",
  119.                     from: "01-01-2016",
  120.                     to: "01-15-2016",
  121.                     from_time: "9:30am",
  122.                     to_time: "2pm",
  123.                     tags: "2016 Jan Long task",
  124.                     otherFields: "..."
  125.  
  126.                 },
  127.                 {
  128.                     task_id: "29",
  129.                     date: "01-06-2016",
  130.                     from: "01-01-2016",
  131.                     to: "01-15-2016",
  132.                     from_time: "9:30am",
  133.                     to_time: "2pm",
  134.                     tags: "2016 Jan Long task",
  135.                     otherFields: "..."
  136.  
  137.                 },
  138.                 {
  139.                     task_id: "29",
  140.                     date: "01-07-2016",
  141.                     from: "01-01-2016",
  142.                     to: "01-15-2016",
  143.                     from_time: "9:30am",
  144.                     to_time: "2pm",
  145.                     tags: "2016 Jan Long task",
  146.                     otherFields: "..."
  147.  
  148.                 },
  149.                 {
  150.                     task_id: "29",
  151.                     date: "01-08-2016",
  152.                     from: "01-01-2016",
  153.                     to: "01-15-2016",
  154.                     from_time: "9:30am",
  155.                     to_time: "2pm",
  156.                     tags: "2016 Jan Long task",
  157.                     otherFields: "..."
  158.  
  159.                 },
  160.                 {
  161.                     task_id: "29",
  162.                     date: "01-09-2016",
  163.                     from: "01-01-2016",
  164.                     to: "01-15-2016",
  165.                     from_time: "9:30am",
  166.                     to_time: "2pm",
  167.                     tags: "2016 Jan Long task",
  168.                     otherFields: "..."
  169.  
  170.                 },
  171.                 {
  172.                     task_id: "29",
  173.                     date: "01-10-2016",
  174.                     from: "01-01-2016",
  175.                     to: "01-15-2016",
  176.                     from_time: "9:30am",
  177.                     to_time: "2pm",
  178.                     tags: "2016 Jan Long task",
  179.                     otherFields: "..."
  180.  
  181.                 },
  182.                 {
  183.                     task_id: "29",
  184.                     date: "01-11-2016",
  185.                     from: "01-01-2016",
  186.                     to: "01-15-2016",
  187.                     from_time: "9:30am",
  188.                     to_time: "2pm",
  189.                     tags: "2016 Jan Long task",
  190.                     otherFields: "..."
  191.  
  192.                 },
  193.                 {
  194.                     task_id: "29",
  195.                     date: "01-12-2016",
  196.                     from: "01-01-2016",
  197.                     to: "01-15-2016",
  198.                     from_time: "9:30am",
  199.                     to_time: "2pm",
  200.                     tags: "2016 Jan Long task",
  201.                     otherFields: "..."
  202.  
  203.                 },
  204.                 {
  205.                     task_id: "29",
  206.                     date: "01-13-2016",
  207.                     from: "01-01-2016",
  208.                     to: "01-15-2016",
  209.                     from_time: "9:30am",
  210.                     to_time: "2pm",
  211.                     tags: "2016 Jan Long task",
  212.                     otherFields: "..."
  213.  
  214.                 },
  215.                 {
  216.                     task_id: "29",
  217.                     date: "01-14-2016",
  218.                     from: "01-01-2016",
  219.                     to: "01-15-2016",
  220.                     from_time: "9:30am",
  221.                     to_time: "2pm",
  222.                     tags: "2016 Jan Long task",
  223.                     otherFields: "..."
  224.  
  225.                 },
  226.                 {
  227.                     task_id: "29",
  228.                     date: "01-15-2016",
  229.                     from: "01-01-2016",
  230.                     to: "01-15-2016",
  231.                     from_time: "9:30am",
  232.                     to_time: "2pm",
  233.                     tags: "2016 Jan Long task",
  234.                     otherFields: "..."
  235.  
  236.                 },
  237.                 {
  238.                     task_id: "30",
  239.                     date: "01-05-2016",
  240.                     from: "01-05-2016",
  241.                     to: "01-05-2016",
  242.                     from_time: "11:30am",
  243.                     to_time: "2pm",
  244.                     tags: "Overlapping task test 2",
  245.                     otherFields: "..."
  246.  
  247.                 },
  248.                 {
  249.                     task_id: "2",
  250.                     date: "01-05-2016",
  251.                     from: "01-05-2016",
  252.                     to: "01-05-2016",
  253.                     from_time: "9:30am",
  254.                     to_time: "2pm",
  255.                     tags: "Overlapping task test 3",
  256.                     otherFields: "..."
  257.  
  258.                 },
  259.             ]
  260.  
  261.         },
  262.         {
  263.             name: "Piyush",
  264.             user_id: "2",
  265.             user_outlet_id: "2",
  266.             outlet_id: "2",
  267.             outlet_name: "Dodda Totaa",
  268.             arrTasks: [
  269.                 {
  270.                     task_id: "28",
  271.                     date: "04-03-2016",
  272.                     from: "04-03-2016",
  273.                     to: "04-12-2016",
  274.                     from_time: "9:30am",
  275.                     to_time: "2pm",
  276.                     tags: "2016 April Long task",
  277.                     otherFields: "..."
  278.  
  279.                 },
  280.                 {
  281.                     task_id: "29",
  282.                     date: "04-04-2016",
  283.                     from: "04-03-2016",
  284.                     to: "04-12-2016",
  285.                     from_time: "9:30am",
  286.                     to_time: "2pm",
  287.                     tags: "2016 April Long task",
  288.                     otherFields: "..."
  289.                 },
  290.                 {
  291.                     task_id: "29",
  292.                     date: "04-05-2016",
  293.                     from: "04-03-2016",
  294.                     to: "04-12-2016",
  295.                     from_time: "9:30am",
  296.                     to_time: "2pm",
  297.                     tags: "2016 April Long task",
  298.                     otherFields: "..."
  299.                 },
  300.                 {
  301.                     task_id: "29",
  302.                     date: "04-06-2016",
  303.                     from: "04-03-2016",
  304.                     to: "04-12-2016",
  305.                     from_time: "9:30am",
  306.                     to_time: "2pm",
  307.                     tags: "2016 April Long task",
  308.                     otherFields: "..."
  309.                 },
  310.                 {
  311.                     task_id: "29",
  312.                     date: "04-07-2016",
  313.                     from: "04-03-2016",
  314.                     to: "04-12-2016",
  315.                     from_time: "9:30am",
  316.                     to_time: "2pm",
  317.                     tags: "2016 April Long task",
  318.                     otherFields: "..."
  319.  
  320.                 },
  321.                 {
  322.                     task_id: "28",
  323.                     date: "04-08-2016",
  324.                     from: "04-03-2016",
  325.                     to: "04-12-2016",
  326.                     from_time: "9:30am",
  327.                     to_time: "2pm",
  328.                     tags: "2016 April Long task",
  329.                     otherFields: "..."
  330.  
  331.                 },
  332.                 {
  333.                     task_id: "28",
  334.                     date: "04-09-2016",
  335.                     from: "04-03-2016",
  336.                     to: "04-12-2016",
  337.                     from_time: "9:30am",
  338.                     to_time: "2pm",
  339.                     tags: "2016 April Long task",
  340.                     otherFields: "..."
  341.  
  342.                 }, {
  343.                     task_id: "28",
  344.                     date: "04-10-2016",
  345.                     from: "04-03-2016",
  346.                     to: "04-12-2016",
  347.                     from_time: "9:30am",
  348.                     to_time: "2pm",
  349.                     tags: "2016 April Long task",
  350.                     otherFields: "..."
  351.  
  352.                 },
  353.                 {
  354.                     task_id: "28",
  355.                     date: "04-11-2016",
  356.                     from: "04-03-2016",
  357.                     to: "04-12-2016",
  358.                     from_time: "9:30am",
  359.                     to_time: "2pm",
  360.                     tags: "2016 April Long task",
  361.                     otherFields: "..."
  362.  
  363.                 },
  364.                 {
  365.                     task_id: "28",
  366.                     date: "04-12-2016",
  367.                     from: "04-03-2016",
  368.                     to: "04-04-2016",
  369.                     from_time: "9:30am",
  370.                     to_time: "2pm",
  371.                     tags: "2016 April Long task",
  372.                     otherFields: "..."
  373.  
  374.                 },
  375.                 {
  376.                     task_id: "28",
  377.                     date: "12-27-2016",
  378.                     from: "12-27-2016",
  379.                     to: "12-29-2016",
  380.                     from_time: "9:30am",
  381.                     to_time: "11am",
  382.                     tags: "Beating the Chef",
  383.                     otherFields: "..."
  384.  
  385.                 },
  386.                 {
  387.                     task_id: "28",
  388.                     date: "12-27-2016",
  389.                     from: "12-27-2016",
  390.                     to: "12-29-2016",
  391.                     from_time: "11:00am",
  392.                     to_time: "2pm",
  393.                     tags: "Then beating the cleaner",
  394.                     otherFields: "..."
  395.  
  396.                 },
  397.                 {
  398.                     task_id: "28",
  399.                     date: "01-01-2016",
  400.                     from: "01-01-2016",
  401.                     to: "01-03-2016",
  402.                     from_time: "11:00am",
  403.                     to_time: "2pm",
  404.                     tags: "Then beating the cleaner again",
  405.                     otherFields: "..."
  406.  
  407.                 },
  408.                 {
  409.                     task_id: "1",
  410.                     date: "01-01-2016",
  411.                     from: "01-01-2016",
  412.                     to: "01-01-2016",
  413.                     from_time: "9:30am",
  414.                     to_time: "2pm",
  415.                     tags: "Kitchen",
  416.                     otherFields: "..."
  417.  
  418.                 },
  419.                 {
  420.                     task_id: "1",
  421.                     date: "01-01-2016",
  422.                     from: "01-01-2016",
  423.                     to: "01-01-2016",
  424.                     from_time: "9:30am",
  425.                     to_time: "2pm",
  426.                     otherFields: "...",
  427.                     tags: "Toile Cleaning"
  428.  
  429.                 },
  430.                 {
  431.                     task_id: "1",
  432.                     date: "01-01-2016",
  433.                     from: "01-01-2016",
  434.                     to: "01-01-2016",
  435.                     from_time: "11:30am",
  436.                     to_time: "2pm",
  437.                     otherFields: "...",
  438.                     tags: "Time pass",
  439.                 },
  440.             ]
  441.  
  442.         },
  443.     ];
Add Comment
Please, Sign In to add comment