docs: async function example (store, logonPayload, counter) {
      await store.logon(logonPayload);
      let {reports, reportImages} = await store.addServices('reports', 'reportImages');
  
      let reportsList = await store.apiCall(reports.links('reports'));
      printList(reportsList.itemsList());
      let next;
      // do this loop while the service returns the next link or counter is 0
      while(((next = reportsList.scrollCmds('next')) !== null) && --counter > 0)  {
          reportsList = await store.apiCall(next);
          printList(reportsList.itemsList());
      }
  
      let data = {
          reportUri   : reportsList.itemsCmd(reportsList.itemsList(0), 'self', 'link', 'uri'),
          sectionIndex: 0,
          layoutType  : 'entireSection',
          size        : "400x400"
      };
  
      console.log(data);
      let p = { data: data };
  
  
      let job = await store.apiCall(reportImages.links('createJob'), p);
      console.log(job.statusInfo);
      let status = await store.jobState(job, { qs: { wait: 1.5} } , 5, 2);
  
  
  
  
      if (status.data !== 'completed') {
          throw `Job failed ${status.data}`;
      }
      let image = await store.apiCall(status.job.itemsCmd(status.job.itemsList(0), 'image'));
      console.log(image.items());
      return 'All Done';
  }