Skip to content
Snippets Groups Projects
Select Git revision
  • master default
1 result

config.js

Blame
  • config.js 3.47 KiB
    /**
     * Created by jeremyguiselin on 25/09/2016.
     */
    
    (function (angular){
      "use strict";
    
      var module = angular.module('Config');
    
      module.constant("constantConfig", {
        "apiClient": "betskills",
        "appStaging": "production",
        "apiUrl": "http://backend.betskills.com/api/",
        "imgUrl": "http://backend.betskills.com/img/application/"
      });
      module.constant("notificationConfig",{
        'core': {
          'app_id': 'com.jeremyguiselin.betskills'
        },
        'push': {
          'sender_id': '1006878207346',
          'pluginConfig': {
            ios: {
              alert: "true",
              badge: "true",
              sound: "true"
            },
            'android': {
              'iconColor': '#000000'
            }
          }
        }
      });
      module.constant('purchaseConfig', {
        'tennis': [
          'tennis',
          'tennis_full_1',
          'tennis_full_2',
          'tennis_full_3',
          'tennis_full_4',
          'tennis_full_5'
        ],
        'football': [
          'ligue_1',
          'premier_league',
          'bundesliga',
          'liga_bbva',
          'liga_nos',
          'serie_a',
          'champions_league',
          'full_champions_league',
          'football_full_2',
          'football_full_3',
          'football_full_4',
          'football_full_5',
          'football_full_6',
          'eredivisie'
        ],
        'mock' : {
          'tennis': [
            { productId: 'tennis', 'title': 'Tennis 1', description: 'Tennis 1 pack', price: '0.99€' },
            { productId: 'tennis_full_1', 'title': 'Tennis 2', description: 'Tennis 2 pack', price: '1.99€' },
            { productId: 'tennis_full_2', 'title': 'Tennis 3', description: 'Tennis 3 pack', price: '1.99€' },
            { productId: 'tennis_full_3', 'title': 'Tennis 4', description: 'Tennis 4 pack', price: '2.99€' },
            { productId: 'tennis_full_4', 'title': 'Tennis 5', description: 'Tennis 5 pack', price: '3.99€' },
            { productId: 'tennis_full_5', 'title': 'Tennis 6', description: 'Tennis 6 pack', price: '4.99€' }
          ],
          'football': [
            { productId: 'ligue_1', 'title': 'Ligue 1', description: 'Ligue 1 pack', price: '0.99€' },
            { productId: 'bundesliga', title: 'Bundesliga', description: 'Bundesliga pack', price: '0.99€' },
            { productId: 'liga_bbva', title: 'Liga BBVA', description: 'Liga BBVA pack', price: '0.99€' },
            { productId: 'liga_nos', title: 'Liga NOS', description: 'Liga NOS pack', price: '0.99€' },
            { productId: 'serie_a', title: 'Serie A', description: 'Serie A pack', price: '0.99€' },
            { productId: 'eredivisie', title: 'Eredivisie', description: 'Eredivisie pack', price: '0.99€' },
            { productId: 'premier_league', title: 'Premiere League', description: 'Premiere League pack', price: '0.99€' },
            { productId: 'champions_league', title: 'Champions League', description: 'Champions League pack', price: '1.99€' },
            { productId: 'full_champions_league', title: 'Full Champions League', description: 'Full Champions League pack', price: '2.99€' },
            { productId: 'football_full_2', 'title': 'Tennis 2', description: 'Tennis 2 pack', price: '1.99€' },
            { productId: 'football_full_3', 'title': 'Tennis 3', description: 'Tennis 3 pack', price: '1.99€' },
            { productId: 'football_full_4', 'title': 'Tennis 4', description: 'Tennis 4 pack', price: '2.99€' },
            { productId: 'football_full_5', 'title': 'Tennis 5', description: 'Tennis 5 pack', price: '3.99€' },
            { productId: 'football_full_6', 'title': 'Tennis 6', description: 'Tennis 2 pack', price: '4.99€' }
          ]
        }
      })
    
    })(angular);