4bdd11699f08b84f2877fbda5dc5ec69848ece58
[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 _0x5ab9=['exports','STRING','name','sequelize'];(function(_0x120e59,_0x443649){var _0x53ff80=function(_0x5a642e){while(--_0x5a642e){_0x120e59['push'](_0x120e59['shift']());}};_0x53ff80(++_0x443649);}(_0x5ab9,0x1c7));var _0x95ab=function(_0xabfec4,_0x35076e){_0xabfec4=_0xabfec4-0x0;var _0x7bafa2=_0x5ab9[_0xabfec4];return _0x7bafa2;};'use strict';var Sequelize=require(_0x95ab('0x0'));module[_0x95ab('0x1')]={'name':{'type':Sequelize[_0x95ab('0x2')],'unique':_0x95ab('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0x95ab('0x2')]},'companyId':{'type':Sequelize[_0x95ab('0x2')]},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize[_0x95ab('0x2')]},'fax':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x95ab('0x2')]},'street':{'type':Sequelize[_0x95ab('0x2')]},'postalCode':{'type':Sequelize[_0x95ab('0x2')]},'city':{'type':Sequelize[_0x95ab('0x2')]},'country':{'type':Sequelize['STRING']},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x95ab('0x2')]},'sStreet':{'type':Sequelize[_0x95ab('0x2')]},'sPostalCode':{'type':Sequelize['STRING']},'sCity':{'type':Sequelize[_0x95ab('0x2')]},'sCountry':{'type':Sequelize[_0x95ab('0x2')]},'description':{'type':Sequelize['STRING']}};