<NME> factory.js
<BEF> ADDFILE
<MSG> Merge pull request #40 from eshaham/entry_point

simplify package entry pointEntry point
<DFF> @@ -0,0 +1,16 @@
+import DiscountScraper from './discount';
+import LeumiCardScraper from './leumi-card';
+import IsracardScraper from './isracard';
+
+export default function createScraper(options) {
+  switch (options.companyId) {
+    case 'discount':
+      return new DiscountScraper(options);
+    case 'leumiCard':
+      return new LeumiCardScraper(options);
+    case 'isracard':
+      return new IsracardScraper(options);
+    default:
+      throw new Error(`unkown company id ${options.companyId}`);
+  }
+}

Merge pull request #40 from eshaham/entry_point