42d7a23de43289e39da57d0484201455fdc17239
[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 _0xf246=['sequelize','exports','STRING'];(function(_0x1d785a,_0x418443){var _0x53a78e=function(_0x24b44a){while(--_0x24b44a){_0x1d785a['push'](_0x1d785a['shift']());}};_0x53a78e(++_0x418443);}(_0xf246,0x156));var _0x6f24=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf246[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require(_0x6f24('0x0'));module[_0x6f24('0x1')]={'name':{'type':Sequelize[_0x6f24('0x2')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize['STRING']},'companyId':{'type':Sequelize[_0x6f24('0x2')]},'website':{'type':Sequelize[_0x6f24('0x2')]},'phone':{'type':Sequelize['STRING']},'fax':{'type':Sequelize[_0x6f24('0x2')]},'type':{'type':Sequelize[_0x6f24('0x2')]},'street':{'type':Sequelize[_0x6f24('0x2')]},'postalCode':{'type':Sequelize[_0x6f24('0x2')]},'city':{'type':Sequelize[_0x6f24('0x2')]},'country':{'type':Sequelize[_0x6f24('0x2')]},'email':{'type':Sequelize[_0x6f24('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x6f24('0x2')]},'sStreet':{'type':Sequelize[_0x6f24('0x2')]},'sPostalCode':{'type':Sequelize[_0x6f24('0x2')]},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize[_0x6f24('0x2')]},'description':{'type':Sequelize[_0x6f24('0x2')]}};