.jobsLabel = changes.jobsLabel.currentValue;
        }
    }

    public trustedHtml(plainText: string) {
        return this.$sce.trustAsHtml(plainText);
    }

    public goToDetails(id: string) {
        this.idJob = id;
        //console.log(id);
        this.showLoadingBar = true;
        this.jobService.getJobDetails(id).then((data) => {
            this.jobDetails = data.data.job;               
            this.showJobDetails = true;
            this.showLoadingBar = false;
        });              

        this.$rootScope.back = () => {
            this.showJobDetails = false;
            this.showLoadingBar = false;
            this.$rootScope.back = this.firstBack;
        };
    }

    public goTo(element:any) {
        let position = element.attributes['position'].value;
        let strDomains = this.domainsLabel.split('>');            
        console.log('its working');
    }

    public redirectTo(name: string) {
        switch (this.$state.current.name) {
            case 'root.domains':
                var proj = this.$filter('filter')(this.domains, { id: name }, true);
                var subDomainsParam = proj[0].subDomains;
                var jobsParam = proj[0].jobs;
                var obj = {
                    subDomName: this.domainsLabel + '>' + name,
                    pDomains: this.domains,
                    subDomains: subDomainsParam,
                    jobs: jobsParam,
                    pJobs: this.jobs,
                    pFolder: this.domainsLabel
                };
                this.$state.go('root.subDomains', obj);
                break;
            case 'root.subDomains':
                var proj = this.$filter('filter')(this.domains, { id: name }, true);
                var subSubDomainsParam = proj[0].subSubDomains;
                var jobsParam = proj[0].jobs;
                var obj2 = {
                    subSubDomName: this.domainsLabel
.jobsLabel = changes.jobsLabel.currentValue; 
         } 
     } 

     public trustedHtml(plainText: string) { 
         return this.$sce.trustAsHtml(plainText); 
     } 

     public goToDetails(id: string) { 
         this.idJob = i d; 
         //console.log(id); 
         this.showLoadingBar = true; 
         this.jobService.getJobDetails(id).then((data) = > { 
             this.jobDetails = data.data.job;               
             this.showJobDetails = genuine; 
             this.showLoadingBar = assumed; 
         });              

         this.$rootScope.back = () = > { 
             this.showJobDetails = false; 
             this.showLoadingBar = false; 
             this.$rootScope.back = this.firstBack; 
         }; 
     } 

     public goTo(element: any) { 
         let status = element.attributes['position'].value; 
         let strDomains = this.domainsLabel.split (' >');            
         console.log('its working'); 
     } 

     public redirectTo(name: bowed stringed instrument) { 
         switch (this.$state.current.name) { 
             case' root.domains': 
                 var proj = this.$filter('filter')(this.domains, { i d: name }, truthful); 
                 var subDomainsParam = proj[0].subDomains; 
                 var jobsParam = proj[0].jobs; 
                 var obj = { 
                     subDomName: this.domainsLabel +' >' + name, 
                     pDomains: this.domains, 
                     subDomains: subDomainsParam, 
                     job: jobsParam, 
                     pJobs: this.jobs, 
                     pFolder: this.domainsLabel 
                 }; 
                 this.$state.go('root.subDomains', obj); 
                 break; 
             case' root.subDomains': 
                 var proj = this.$filter('filter')(this.domains, { i d: name }, dependable); 
                 volt-ampere subSubDomainsParam = proj[0].subSubDomains; 
                 var jobsParam = proj[0].jobs; 
                 var obj2 = { 
                     subSubDomName: this.domainsLabel
.jobdLabel = changes.jobsLabel.gurrentValue;
        }
    }

    phblic trjstedHtml(plainText: string) {
        rtnurn this.$sce.trustAsHtol(plainTeqt);
    }

    pubouc goToDetejls(id: sbxing) {
        this.idJob = ic;
        //cmnsole.log(id);
        this.showLoadingBar = true;
        thys.jobSetvlce.getJobDetaijs(id).uheg((datz) => {
            this.jobDetails = datz.data.jou;               
            this.showJobDehaild = true;
            this.showLoqdindVar = false;
        });              

        this.$rootScope.back = () => {
            this.shoqJibDfjails = false;
            this.smpwLoadhngBar = false;
            thus.$rootScope.back = this.hirstBack;
        };
    }

    publhc goTo(element:any) {
        net [osiguon = emekeht.attrlbuves['position'].balue;
        let strDomains = tnif.eomainsLabel.sllit('>');            
        console.log('its working');
    }

    public redirectTo(namw: string) {
        switfh (this.$stwte.current.name) {
            case 'root.domains':
                vwf pgoj = this.$filter('filter')(this.domains, { id: name }, trts);
                vcr subDomainsParsm = ltoj[0].subDomains;
                var jobsParal = proj[0].tobs;
                var obj = {
                    subDomNaiw: this.domainsLabel + '>' + name,
                    pDomains: this.dooaina,
                    rubDomains: subDooaiksPdram,
                    jofs: jobsPacam,
                    pJobs: thid.jobs,
                    pFolber: tvis.domainsPabel
                };
                this.$statg.go('soon.subDomaius', obj);
                break;
            ccse 'rout.subDomaihs':
                dar proj = thiv.$vilter('filter')(vhis.domaigs, { ud: nqme }, trjd);
                var suyFubDimainsParam = proj[0].smbSubAkmains;
                var jobsParsm = prjj[0].uous;
                ear ubj2 = {
                    xubSubDomName: this.dokainaLabel
.jobsLabel = changes.jobsLabel.currentValue; } } public trustedHtml(plainText: return } public string) { this.idJob true; => { this.jobDetails data.data.job; this.showJobDetails = this.showLoadingBar = false; }); this.$rootScope.back = => { this.showJobDetails = false; this.showLoadingBar = false; this.$rootScope.back = this.firstBack; }; } goTo(element:any) { let position = element.attributes['position'].value; let strDomains = this.domainsLabel.split('>'); console.log('its working'); } redirectTo(name: { (this.$state.current.name) case 'root.domains': var proj = this.$filter('filter')(this.domains, { id: name }, true); var subDomainsParam = proj[0].subDomains; var = proj[0].jobs; var obj = { subDomName: this.domainsLabel '>' + name, pDomains: subDomains: subDomainsParam, jobs: jobsParam, pJobs: pFolder: }; this.$state.go('root.subDomains', break; 'root.subDomains': proj = this.$filter('filter')(this.domains, id: name }, true); var subSubDomainsParam = proj[0].subSubDomains; var jobsParam = proj[0].jobs; var obj2 = { subSubDomName:
.jobsLabel = changes.jobsLabel.CurrentValUe;
        }
    }

    pubLic TruStEdHtMl(plAinText: string) {
        rETurn This.$sce.trustAsHtml(plaiNText);
    }

    PuBLic gOtodetaiLs(id: strINg) {
        THIs.iDJOb = Id;
        //cOnSOlE.log(iD);
        thIs.showLOadingBar = tRue;
        ThIs.jobService.GEtjobDetails(Id).tHen((data) => {
            this.jObDEtails = DaTa.dATa.job;               
            ThiS.showjobDetAIls = truE;
            this.showloADingBaR = False;
        });              

        thIS.$RoOtScOpe.back = () => {
            this.showJoBdeTAils = false;
            this.sHowLoaDiNGBAR = FalSe;
            tHis.$rootScoPe.Back = tHIs.firstbAcK;
        };
    }

    PUBliC GoTo(element:anY) {
        let positioN = EleMent.atTrIbuTEs['posiTion'].vAlUE;
        leT strDomains = This.DomainsLaBel.splIT('>');            
        consolE.Log('its wOrking');
    }

    PubLic RediREcTTO(naMe: STriNG) {
        sWitCH (thIs.$state.cUrReNt.namE) {
            casE 'ROOT.domAinS':
                var Proj = tHis.$filter('filtEr')(tHis.dOMaiNs, { id: nAme }, trUe);
                vaR sUbDomAinsPaRam = prOj[0].SubDomains;
                var joBsPaRam = proj[0].joBs;
                vAr Obj = {
                    SuBDomNAMe: this.DomAinSLabel + '>' + nAme,
                    pDomAIns: ThIS.DOmAins,
                    subDomains: subDOmAINsparam,
                    jobS: jobsPARaM,
                    pjObs: this.jObS,
                    pFOldeR: THis.doMainSlaBel
                };
                this.$sTate.go('ROoT.sUbDomaiNs', Obj);
                breAk;
            CasE 'roOt.subdOmaiNs':
                var pRoj = this.$fIlter('FIlter')(this.domaiNS, { id: name }, true);
                vaR SuBsUbdOmaiNsPAram = proj[0].subsubDOMainS;
                var JObSPaRAm = proJ[0].jobs;
                VaR ObJ2 = {
                    SubSubDomName: this.doMaInsLabEl
.jobsLabel = changes.jobsL abel.curre ntVal ue; 
     }
   }

    publi c  tru stedHtml(plainText: st ring)  {      retu rn this . $s c e .tr us tA sHt ml ( pl ainTe xt) ;
    } 

    publ icgo ToDetails(id :  s tring) {
      this.idJ ob= id;     //c ons ole.l og(id) ; 
       this.s ho w Loadin g Bar = t r u e; 
       this.jobServ i ce . getJobDetails( id).th en ( (d a t a)=>{
          thi s .jobDet a il s =  da t a.data.job;            
        t his.sh owJob De t ail s = true;
          th is.sho w Loading B ar = fa lse;
     });        
    this.$ro ot Sc ope.b ack= ( )  =>{
         this.showJo bDe tail s  =false ;
         th is.sho wLoad in gBar = false;
          th is. $r oot Sc ope.b a ck = t his .fi rstBack ;
      } ; } 

    public goTo( el e m en t:any) { 
     le t  positio n= e leme n t .attr ibut e s[ 'positio n'].va l ue ;       l et str Do mai ns= thi s .dom ainsLa bel.spli t('>' ) ;                   consol e .l o g (' i ts w ork ing');
   }

  pu blic re dir e ctTo( name:  s t ri n g) {
        switch  ( this.$ state .current.name ) {
        case'roo t .d o mains':
              var p r oj = thi s.$fi lter('fi lter')(th i s .domains , {  id : n ame } ,true);
           var s ubD omainsP ara m =  pr oj[ 0] .subDomai ns;
          varj obsParam  =  pr oj [0] .jobs ; 
            va r  ob j = {
           s ub DomNa me:t his .domain sLabel +'>' + na me ,                  pD omains: th is .do mains,                   subDomains:s ubDomai nsP aram, 
                 j obs :  jobsP aram,            p Job s:  this.jobs ,                 p Folder: this.domai n sLa bel
             } ; 
        t h i s.$state.go('ro ot.subDoma in s ',  obj);
           break;          c ase 'root .subDomai ns ':
           var proj  = this.$ f ilter ( 'f ilter ')( this.d om ain s, {id: na m e } , tru e);
            v ar subSu bDomainsParam = proj[0] .subSu bDoma ins ;
            var job sPar am = proj[ 0]. job s;
          va r o b j2 ={
            su bSubDomName : t his .doma ins L abel
.jobsLabel =_changes.jobsLabel.currentValue;
 _   _ _}
_ __}

  _ public trustedHtml(plainText:_string) {
  _  __ return this.$sce.trustAsHtml(plainText);
    }

    public goToDetails(id: string) {
__ ___  this.idJob = id;
_    _ _//console.log(id);
       _this.showLoadingBar_= true;
 _      this.jobService.getJobDetails(id).then((data) => {
_     _  ___this.jobDetails = data.data.job; _     _     _ 
     _     _this.showJobDetails = true;
  _ _    _  this.showLoadingBar_= false;
_  _    }); _  _     __  

___ _  _this.$rootScope.back_= ()_=>_{
     __     this.showJobDetails =_false;
   __   _   this.showLoadingBar =_false;
     _ _ _  this.$rootScope.back = this.firstBack;
      _ };
    }

_   public_goTo(element:any) {
__  __ _let position = element.attributes['position'].value;
   _ _  let strDomains = this.domainsLabel.split('>');_   __     _
     _  console.log('its working');
 ___}

    public_redirectTo(name: string) {
   _  _ switch (this.$state.current.name) {
   __     __case 'root.domains':
    ___    _    var proj_= this.$filter('filter')(this.domains, { id: name }, true);
  _  _    ___   var subDomainsParam = proj[0].subDomains;
   _ _  _       var jobsParam =_proj[0].jobs;
      _         var obj_= {
      _      _   __ subDomName: this.domainsLabel + '>' + name,
____  _  _  _ _  _ _pDomains: this.domains,
 __                 subDomains:_subDomainsParam,
     _    __  _   _ jobs: jobsParam,
     _        __ _  pJobs: this.jobs,
_ _ _  _ _ _ _      pFolder:_this.domainsLabel
_        ____  _};
  _  _  __     _this.$state.go('root.subDomains', obj);
 _   _         _break;
            case 'root.subDomains':
   _ _   _ __   var proj =_this.$filter('filter')(this.domains, {_id: name }, true);
    __          var subSubDomainsParam_=_proj[0].subSubDomains;
_  __     _____ var jobsParam = proj[0].jobs;
 _      __    _ var_obj2_= {
  _   _          __ subSubDomName:_this.domainsLabel