'use strict';

(function () {

  function _obj() {}

  _obj.prototype = {

    setNext: function (next) {
      this.next = next;
    },

    identify: function (phone) {
      if (phone && phone.length == 12 && phone.charAt(0) != 0 && phone.substring(0,2) != '00') {
        return 'cspDddEightDigits';
      }
      return this.next.identify(phone);
    }
  };

  exports.cspDddEightDigitsIdentifier = _obj;
}());
