1/** 2 * Load initial _features values through JSFT. 3 * If JSFT.JSFTException exception happens - means _features has beeen already declared, 4 * good point to notice this event. 5 * 6 * @type {string[]} 7 */ 8if ( 9 typeof JSFT === 'object' && 10 JSFT.hasOwnProperty('setFeatures') 11) { 12 /** 13 * Please add feature toggles to this array, like: 14 * ['FS-XXXX', 'CSI-XXXX'] 15 * 16 * @type {string[]} 17 */ 18 var FsFeatures = [ 19 'CSI-4051-Timeout-Log-Off', 20 'FS-5195', 21 'FS-5308', 22 'FS-5484', 23 'FS-3063', 24 'CSI-4856', 25 'CSI-4856-RunIssueFixed', 26 'FS-7827', 27 'FS-7975', 28 'FS-6918-refactorPM-updateUser', 29 'FS-14317-csv-estimate-time' 30 ]; 31 try { 32 JSFT.setFeatures(FsFeatures); 33 } catch (error) { 34 if (error instanceof JSFT.JSFTException) { // something is wrong - features already set! 35 console.log(error.message + ' | Module:' + error.module + ' | Status:' + error.status); 36 } else { 37 // something else is wrong 38 console.log(error.message); 39 } 40 } 41} else { 42 console.log('JSFT not loaded or missing \'setFeatures\' methods.'); 43} 44 45// Setting customer-specific feature toggles 46if ( 47 typeof JSFT === 'object' && 48 JSFT.hasOwnProperty('setCustomerFeatures') 49) { 50 /** 51 * Add customer-specific feature toggles here. 52 * Format: { 'FS-XXXX': ['customer1', 'customer2'], ... } 53 * @type {Object} 54 */ 55 var FsCustomerFeatures = { 56 'FS-12604-AS-STAGING-BASE': [ 57 '567ad4d4-bc23-4539-9c70-477c3f3d9f80', // Nottinghamshire 58 '79a3f4d2-0753-4f95-a5de-530bf945b4f7', // Warwickshire 59 '201bfe6e-fc27-4556-baf3-34b0b27017f7', // northlincsgov 60 '666af91e-792e-4505-b9e9-b1e659811803', // Durham 61 '408fc715-b21c-44f0-a68a-ba95ca178b77', // Leicester City 62 '70e9b6ab-1a1d-413c-89d7-d3d4c80251d5', // Buckinghamshire County Council 63 ] 64 }; 65 66 try { 67 JSFT.setCustomerFeatures(FsCustomerFeatures); 68 } catch (error) { 69 if (error instanceof JSFT.JSFTException) { // something is wrong - features already set! 70 console.log(error.message + ' | Module:' + error.module + ' | Status:' + error.status); 71 } else { 72 console.log(error.message); 73 } 74 } 75} else { 76 console.log('JSFT not loaded or missing \'setCustomerFeatures\' method.'); 77}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.