10. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 7/25/2018 3:40:54 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

10.1 Files compared

# Location File Last Modified
1 Pain_Coach_v3.0_Jun_2018.zip\vpc-patient-web.zip\vpc-patient-web\app\veteran\cordova\grunt_merge\android\common\js veteran.js Fri Jun 1 14:26:04 2018 UTC
2 Pain_Coach_v3.0_Jun_2018.zip\vpc-patient-web.zip\vpc-patient-web\app\veteran\cordova\grunt_merge\android\common\js veteran.js Tue Jul 24 19:09:07 2018 UTC

10.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 244
Changed 1 2
Inserted 0 0
Removed 0 0

10.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

10.4 Active regular expressions

No regular expressions were active.

10.5 Comparison detail

  1   /* Start A pplication  */
  2   window.App  = new VPC .App({cont ainer: "di v.containe r-fluid"}) ;
  3  
  4   App.checkE ula = func tion () {
  5       //Need  to check  that EULA  has been a ccepted
  6       if (_. isNull(App _Utils.Get LocalStora ge('VPC_Eu la'))) {
  7           VP C.Layout.m odal.show( VPC.View.E ula = new  VPC.View.e ula());
  8           VP C.View.Eul a.show();
  9       }
  10       else {  App.vent. trigger('e ula:accept ed'); }
  11   };
  12  
  13   App.resour ceErrorHan dler = fun ction(coll ection, re sponse, op tions) {
  14       Backbo ne.history .start();
  15  
  16       var er rorMessage  = "Error  retrieving  resource  directorie s!  Error  Code: " +  response.s tatus + "  Error Mess age: " + r esponse.st atusText;
  17       consol e.log(erro rMessage);
  18       var ht ml = VPC.T emplate.er ror({
  19           er rorMessage : errorMes sage
  20       });
  21  
  22       $("#er rorSection ").html(ht ml);
  23       App.ve nt.trigger ('resource s:failed',  collectio n.key);
  24   };
  25  
  26   App.loadRe sources =  function()  {
  27       var re ady = 0;
  28  
  29       var re adyCheck =  function  () {
  30           if  (ready == = 3) {
  31                App.vent .trigger(' resources: loaded');
  32           }
  33       };
  34  
  35       var re sourceErro rHandler =  function( collection , response , options)  {
  36           Ba ckbone.his tory.start ();
  37           va r errorMes sage = "Er ror retrie ving resou rce direct ories!  Er ror Code:  " + respon se.status  + " Error  Message: "  + respons e.statusTe xt;
  38           va r x = {res ource:[]};
  39           x. resource.p ush(errorM essage);
  40           $( '#errorSec tion').htm l(VPC.Temp late.resou rceFailedB anner({"re sources":x , "help":  VPC.Data.a pp.help})) ;
  41           $( '.spinner- image').ad dClass('hi dden');
  42           Ap p.vent.tri gger('reso urces:fail ed', colle ction.key) ;
  43       };
  44  
  45       var su ccessMustS tart = fun ction() {
  46           VP C.Resource s.App = ne w App_Reso urces.Coll ection.App Resources( );
  47           VP C.Resource s.App.fetc h({
  48                success:  function( ) {
  49                    VPC. Resources. HAResource s = new VP C.Collecti on.HAResou rces();
  50                    VPC. Resources. VPCResourc es = new V PC.Collect ion.VPCRes ources();
  51                    VPC. Resources. HAResource s.fetch({s uccess: su ccessHandl er, error:  resourceE rrorHandle r});
  52                    VPC. Resources. VPCResourc es.fetch({ success: s uccessHand ler, error : resource ErrorHandl er});
  53                    succ essHandler ();
  54                },
  55                error: A pp.resourc eErrorHand ler});
  56  
  57       };
  58  
  59       var su ccessHandl er = funct ion(collec tion, resp onse, opti ons) {
  60           re ady++;
  61           re adyCheck() ;
  62       };
  63  
  64       succes sMustStart ();
  65   };
  66  
  67   App.loginO ptions = f unction()  {
  68       var re directUri  = App_Util s.GetDomai nPath()+"p aincoach",
  69           op tions = {
  70                appName:  'paincoac h',
  71                autoRedi rect: true ,   /* do  not auto d irect if i n debug mo de unless  auth serve r allows C ORS  */
  72                redirect Uri: redir ectUri,
  73                resource sLink: App _Utils.Get DomainPath ()+'vpc-re source',
  74                authoriz eUrl: VPC. Resources. HAResource s.findWher e({title:' oauth-auth orize'}).g et('href')
  75           };
  76       return  options;
  77   };
  78  
  79   App.on('st art', func tion() {
  80       consol e.log("in  app start" );
  81         App_Resour ces.hostna me = "http s:// URL /";
  82       VPC.La yout = new  VPC.View. layout();
  83       VPC.La yout.rende r();
  84  
  85       App.lo adResource s();
  86   });
  87  
  88   App.vent.o n('eula:ac cepted', f unction ()  {
  89       consol e.log('eul a accepted ...');
  90       VPC.La yout.heade r.show(VPC .View.Head er = new V PC.View.he ader());
  91       VPC.La yout.foote r.show(new  VPC.View. footer());
  92       VPC.ro uter = new  VPC.Route r();
  93       //VPC. Data.app.a ppConfig.v eteran = t rue;
  94  
  95       Backbo ne.history .start();
  96       //Set  Authorize  Request he ader
  97       App_Ut ils.SetReq uestHeader ();
  98       //Trig ger event  to load us er
  99       App.ve nt.trigger ('load:use r', { init : true });
  100   });
  101  
  102   App.vent.o n('resourc es:loaded' , function  () {
  103       consol e.log('res ources loa ded...');
  104       App.lo ginUtils =  new Login Utils(App. loginOptio ns());
  105       //App. loginUtils .authorize (); //Call  this in t he console  to test l ogin
  106  
  107       if (Ap p_Utils.Ge tSessionTo ken() != n ull) {
  108           Ap p.checkEul a();
  109       }
  110       else {
  111           // App_Utils. LaunchpadL ogin();
  112           co nsole.log( 'calling c heckforaut hcode...') ;
  113           Ap p.loginUti ls.checkFo rAuthCode( );
  114           se tTimeout(f unction()  {
  115                if (App_ Utils.GetS essionToke n()) {
  116                    loca tion.reloa d()
  117                }
  118                else {
  119                    cons ole.log('s ession tok en is not  set!!');
  120                }
  121           },  1000);
  122       }
  123   });