4e4d1b7b91fddd4f69fb32fb436ffcfa62146ae5
[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 _0xa843=['sequelize','exports','name','STRING'];(function(_0x120f71,_0x3c5465){var _0x2db8c2=function(_0x1cd7ad){while(--_0x1cd7ad){_0x120f71['push'](_0x120f71['shift']());}};_0x2db8c2(++_0x3c5465);}(_0xa843,0xf0));var _0x3a84=function(_0x253f2b,_0x42b7f3){_0x253f2b=_0x253f2b-0x0;var _0x21d17b=_0xa843[_0x253f2b];return _0x21d17b;};'use strict';var Sequelize=require(_0x3a84('0x0'));module[_0x3a84('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0x3a84('0x2'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize['STRING']},'companyId':{'type':Sequelize[_0x3a84('0x3')]},'website':{'type':Sequelize[_0x3a84('0x3')]},'phone':{'type':Sequelize[_0x3a84('0x3')]},'fax':{'type':Sequelize[_0x3a84('0x3')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x3a84('0x3')]},'postalCode':{'type':Sequelize[_0x3a84('0x3')]},'city':{'type':Sequelize[_0x3a84('0x3')]},'country':{'type':Sequelize[_0x3a84('0x3')]},'email':{'type':Sequelize[_0x3a84('0x3')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x3a84('0x3')]},'sStreet':{'type':Sequelize[_0x3a84('0x3')]},'sPostalCode':{'type':Sequelize[_0x3a84('0x3')]},'sCity':{'type':Sequelize[_0x3a84('0x3')]},'sCountry':{'type':Sequelize[_0x3a84('0x3')]},'description':{'type':Sequelize['STRING']}};