feedd18e67d275bbbefd3cf5fa184566ee02e566
[motion2.git] / server / api / cmCompany / cmCompany.attributes.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and   *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x4dae=['exports','STRING'];(function(_0x1b6029,_0x438c33){var _0x5ea7ef=function(_0x3d5d2c){while(--_0x3d5d2c){_0x1b6029['push'](_0x1b6029['shift']());}};_0x5ea7ef(++_0x438c33);}(_0x4dae,0x106));var _0xe4da=function(_0x3ba321,_0x2ac112){_0x3ba321=_0x3ba321-0x0;var _0x52f639=_0x4dae[_0x3ba321];return _0x52f639;};'use strict';var Sequelize=require('sequelize');module[_0xe4da('0x0')]={'name':{'type':Sequelize[_0xe4da('0x1')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize['STRING']},'companyId':{'type':Sequelize[_0xe4da('0x1')]},'website':{'type':Sequelize[_0xe4da('0x1')]},'phone':{'type':Sequelize[_0xe4da('0x1')]},'fax':{'type':Sequelize[_0xe4da('0x1')]},'type':{'type':Sequelize[_0xe4da('0x1')]},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize[_0xe4da('0x1')]},'city':{'type':Sequelize[_0xe4da('0x1')]},'country':{'type':Sequelize[_0xe4da('0x1')]},'email':{'type':Sequelize[_0xe4da('0x1')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0xe4da('0x1')]},'sStreet':{'type':Sequelize[_0xe4da('0x1')]},'sPostalCode':{'type':Sequelize['STRING']},'sCity':{'type':Sequelize[_0xe4da('0x1')]},'sCountry':{'type':Sequelize[_0xe4da('0x1')]},'description':{'type':Sequelize[_0xe4da('0x1')]}};