/**
  @module songza-config
 */
/*global window */
define("songza/config", function() {
  "use strict";

  var Config = {
    debug: false,
    api: {
      root: "/api/1"
    },
    custom_plugins: [
      
        "songza/sites/songza/ad-rotation",
      
        "songza/sites/songza/getsatisfaction"
      
    ],
    site: "songza",
    name: "Songza",
    promo_product_list: ["android", "iphone", "web", "web-full"],
    songza_account: {"username": "songza", "website": "", "about": "Songza is a music startup based in New York City. Our team is comprised of music experts, software engineers, and absurdly talented dancers. Our goal in life is to play you the right music at the right time.", "display_name": "Songza", "id": 1000000, "admin_sites": ["songza"], "site": "songza", "black_planet_id": null, "image_url": "https://s3.amazonaws.com/songza.images/user/1000000/medium.jpg", "location": "", "facebook_id": "100001956598819", "images": {"small": "https://s3.amazonaws.com/songza.images/user/1000000/small.jpg", "large": "https://s3.amazonaws.com/songza.images/user/1000000/large.jpg", "medium": "https://s3.amazonaws.com/songza.images/user/1000000/medium.jpg", "square": "https://s3.amazonaws.com/songza.images/user/1000000/square.jpg"}, "image_default": false, "email": "", "is_admin": true},
    static_url: '/static/5dffb1df464f/',
    facebook: {
      app_id:      "125168500866352",
      permissions: "publish_actions,email"
    },
    chartbeat: {
      user_id: "23245"
    },
    comscore: {
      client_id: "7515253"
    },
    google_analytics: {
      account_id: "UA-468380-14"
    },
    twitter: {
      handle: "songza"
    },
    quantcast: {
      accounts: ["p-9bJw_uniA9hco", "p-61RSmkUm_qRRM"] 
    },
    getsatisfaction: {
      company: "songza"
    },
    disqus: {
      shortname: ""
    },
    soundManager: {
      url: '/static/5dffb1df464f/swf/soundmanager/'
    },
    comment_provider: "facebook",
    features: {"systems.facebook.scrobbing": 1, "systems.black_planet.auth": 0, "systems.facebook.auth": 1, "systems.facebook.share": 1, "systems.songza.login": 1, "systems.songza.signup": 0, "stations.show_related": 1},
    dataFreshness: {
      /* How often should we refresh following lists */
      following: 4 * 60 * 60,
      /* How often should we refresh followers lists */
      followers: 4 * 60 * 60
    },
    timeouts: {
      /* How long to wait before displaying the page-loading throbber */
      pageNavigateProgress: 1000,
      /* How long to wait for a song to start to play before showing the song-buffer throbber */
      songLoadingProgress:  500,
      /* What intervals to poll for feeds at */
      feedPollIntervals:    [ [5 * 60, 5], [30 * 60] ],
      /* How long to wait before automatically sending "Station Listen" times to google-analytics */
      stationMaxIdleTime: 1 * 60 * 60,
      stationTotalPlayTime: 8 * 60 * 60,
      /* How long to wait before scrolling a shelf on mouseenter */
      shelfAutoScrollDelay: 250
    },
    makeAbsolute: function(path) {
      var server = window.location.protocol + "//" + window.location.host;

      return server + path;
    },
    situations: {
      devices: [
          {'value': 'android', 'label': 'Android' },
          {'value': 'iphone',  'label': 'iPhone'  },
          {'value': 'web',     'label': 'Web'     }
      ],
      dow: [
          {'value': 0,  'label': 'Sun'  },
          {'value': 1,  'label': 'Mon'  },
          {'value': 2,  'label': 'Tues' },
          {'value': 3,  'label': 'Wed'  },
          {'value': 4,  'label': 'Thus' },
          {'value': 5,  'label': 'Fri'  },
          {'value': 6,  'label': 'Sat'  }
      ],
      time_periods: [
          {'value': 0,  'label': 'Morning'      },
          {'value': 1,  'label': 'Late Morning' },
          {'value': 2,  'label': 'Afternoon'    },
          {'value': 3,  'label': 'Evening'      },
          {'value': 4,  'label': 'Night'        },
          {'value': 5,  'label': 'Late Night'   }
      ]
    }
  };

  return Config;
});

