9f0028a3d7a69393189c1dfa64927f02f390fabd
[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 _0x3770=['STRING','sequelize','exports'];(function(_0x5ddb1c,_0x5ea4df){var _0x354adc=function(_0x2dfb1f){while(--_0x2dfb1f){_0x5ddb1c['push'](_0x5ddb1c['shift']());}};_0x354adc(++_0x5ea4df);}(_0x3770,0x13c));var _0x0377=function(_0x510a7a,_0x542a25){_0x510a7a=_0x510a7a-0x0;var _0x3ff130=_0x3770[_0x510a7a];return _0x3ff130;};'use strict';var Sequelize=require(_0x0377('0x0'));module[_0x0377('0x1')]={'name':{'type':Sequelize[_0x0377('0x2')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize['STRING']},'companyId':{'type':Sequelize[_0x0377('0x2')]},'website':{'type':Sequelize[_0x0377('0x2')]},'phone':{'type':Sequelize[_0x0377('0x2')]},'fax':{'type':Sequelize[_0x0377('0x2')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x0377('0x2')]},'postalCode':{'type':Sequelize[_0x0377('0x2')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0x0377('0x2')]},'email':{'type':Sequelize[_0x0377('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize['STRING']},'sStreet':{'type':Sequelize[_0x0377('0x2')]},'sPostalCode':{'type':Sequelize[_0x0377('0x2')]},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize[_0x0377('0x2')]},'description':{'type':Sequelize[_0x0377('0x2')]}};