I am on BA Server 8.1 community version

Trying below code to embed dashboard.

Code:
     <script>
          require([
          "http://172.29.11.149:8080/pentaho/api/repos/:public:basic-cde-samples:sample1.wcdf"
          ], function(mainPatientVisit) {
              (new mainPatientVisit("report")).render();
          });
      </script>
I have BA server running on windows VM (172.29.11.149).

Have a dashboard in public/basic-cde-samples directory.

What I am doing wrong