О компании
(function () {

    var Resume = window.Resume = function (value) {
        value = value || {};

        if (!value.name) {
            throw 'Нам интересны реальные люди...';
        }
        if (!value.phone && !value.email) {
            throw '...c которыми мы сможем связаться...';
        }
        if (value.city != 'Москва') {
            throw '... и только из Москвы!';
        }

        this.name = value.name;
        this.phone = value.phone;
        this.email = value.email;
        this.skills = value.skills || [];
    }

    var Employee = window.Employee = function (name, email, phone, position) {
        this.name = name;
        this.email = email;
        this.phone = phone;
        this.position = position;
        this.account = 0;
    };

    Employee.prototype.work = function () {
        return result;
    }

    var cto = new Employee('Пожар Николай', 'nick@teatrall.ru', '+7 (495) 792-34-77', 'CTO');

    var Company = window.Company = function (value) {
        value = value || {};
        this.name = value.name || '';
        this.address = value.address || '';
        this.phone = value.phone || '';
        this.email = value.email || '';
        this.website = value.website || '';
        this.description = value.description || '';
        this.employees = {};
        this.workInterval = setInterval(this.doWork, 1000 * 60 * 60 * 24);
        this.payInterval = setInterval(this.paySalary, 1000 * 60 * 60 * 24 * 30);
    };

    Company.prototype = {
        addEmployee: function (employee) {
            this.employees[employee.position] = employee;
        },
        respondToVacancy: function (vacancy, resume) {
            if (vacancy.check(resume)) {
                window.open('mailto:'+ employees['CTO'].email);
            }
        },
        doWork: function () {
            var result;
            for (position in this.employees) {
                result += this.employees[position].work();
            }
            return result;
        },
        paySalary: function () {
            for (position in this.employees) {
                this.employees[position].account++;
            }
        }
    };

    var TeatrAll = new Company({
        name: 'ТеатрALL',
        address: 'Москва, Пушкарев переулок, 9',
        phone: '+7 (495) 792-34-77',
        email: 'info@teatrall.ru',
        website: 'teatrall.ru',
        description: 'Мы пишем о театре. Мы продаем билеты. Мы любим код.'
    });

    TeatrAll.addEmployee(cto);

})();
Вакансии
No content.icon.jobs
Нет вакансий
У компании нет открытых вакансий
Фотографии офиса
Big 258f30e5e267350117ff83ac678f957aBig ab6b8f84902e799276a3246f95a9a027Big 5385971ba905222e333480e7a3b4784fBig 6132dbdfa5201387eddf05de94cb4de5Big 5ae9a32185484307eec759efe788aeafBig 5c262419751ba2ef193e7f2430dafe79Big 6b5f7eaa54e5235cca612f12bb4f4906Big ecc77d8ba1d673d4d4e123ff24ddb323Big 1525bdc96a70c4473cfc6f46196deaf4Big 83a5e0144059983ed97f9a710af40c71Big 0346934f5d8569870d90bb88c6f01592