function BCMComm(){function t(){n()}function n(){e=null}function r(e){var t="";for(i=0;i<e.length;i++){var n=e[i],r="&";t==""&&(r=""),t+=r+"sources[]="+n}return t}function s(e){var t=BASE_BCM_URL+"recommendations",n={type:"smart_recents",user:funcObj.margeComm.getAccountID()};u("GET",t,n,function(t,n){e&&e.call(null,t,n)})}function o(e,t){var n=BASE_BCM_URL+"recommendations",i=r(srcObj.recents.getSourceList());i!=""&&(n=n+"?"+i+"&limit=50");var s={type:"popular_on_bose"};t||(s.glr=!0),u("GET",n,s,function(t,n){e&&e.call(null,t,n)})}function u(t,n,r,i){var s=funcObj.margeComm.getAccountID(),o=funcObj.margeComm.getAuthToken();if(s!=undefined&&o!=undefined){showDebug>=2&&console.log("bcmcomm sendMsg: "+n+" / "+JSON.stringify(r));var u={"X-Trio-User-ID":s,"X-Trio-Token":o};e=$.ajax({type:"get",url:n,headers:u,dataType:"json",data:r,success:function(e,t,n){i.call(null,funcObj.UIMain.getUID(),e)},error:function(e,t,n){showDebug>=2&&console.log("bcmcomm sendMsg error: "+t+" / "+n+" / "+JSON.stringify(e)),i.call(null,funcObj.UIMain.getUID())}})}}function a(){try{e.abort()}catch(t){}}var e;this.fetchSmartRecents=s,this.fetchBosePopular=o,t()};