2020-05-19 09:05:04 +00:00
module . exports = function ( item ) {
2020-05-22 22:40:33 +00:00
const patt = /(Simply Education|Splunk|Coordinators?|Teachers?|Technical Writers?|Data Analyst|WebLogic|WebSphere|Data Scientist|Change Managers?|T24|Test Analyst|Insight Analyst|application tester|senior tester|Salesforce|QlikView|Navision|Murex|seo|django|drupal|SHAREPOINT|per annum|ServiceNow|Test Lead|User Researcher|Service Management|\(PERM\)|£\d.K|Remedy|ITSM|Symfony|Zend|Full Time|Technical Business Analyst|BUSINESS ANALYST|AUTOMATION TESTER|FIELD TECHNICIAN|websphere administrator|Research Data Scientist)/ig ;
2020-05-19 09:05:04 +00:00
const engineers = /(Support|Devops|Planning|security|Postgresql|network|sccm|test|data|imac|firewall|vmware)+(?:\s)(?=Engineer)/ig ;
2020-05-22 22:40:33 +00:00
const developers = /(Big Data|Java Server Side|Java|PHP|Graduate|Access|Oracle ADF|SHAREPOINT|Ruby on Rails|Java Software|IOS|Qlikview|c#|c\+\+|\.net|bi|go lang|Python)+(?:\s)(?=Developer)/ig ;
2020-05-19 09:05:04 +00:00
const architects = /(Java|PHP|Microsoft)+(?:\s)(?=Architect)/ig ;
const antiAd = /sja\d+/gi ;
const result = patt . test ( item . summary ) || engineers . test ( item . summary ) || developers . test ( item . summary ) || architects . test ( item . summary ) ;
const resultB = patt . test ( item . title ) || engineers . test ( item . title ) || developers . test ( item . title ) || architects . test ( item . title ) ;
const resultC = antiAd . test ( item . id ) ;
console . log ( 'Reject:' , ( result || resultB || resultC === true ) ? 'Reject' : 'Pass' ) ;
return ( ! ( result || resultB || resultC === true ) ) ;
} ;