TelecomNumber.js 654 Bytes
/* global console */
define(
    [
        'ofbiz/model/Base',
        'ofbiz/model/ContactMech',
    ],
    function(
        Base,
        ContactMech
    ) {
        'use strict';
        console.log('ofbiz/model/TelecomNumber: loaded');
        return ContactMech.extend({
            defaults: {
                contactNumber: null,
            },
            validation: {
                contactNumber: [
                    {
                        required: Base.createRequiredValidator('ofbiz/model/TelecomNumber.contactNumber'),
                        maxLength: 60
                    }
                ]
            }
        });
    }
);