81ecc1744e349c0b362a63a43f9b78c8682def89
[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 _0xa0e7=['name','STRING','sequelize','exports'];(function(_0x111919,_0x5e55c0){var _0x3b7740=function(_0x28ae0c){while(--_0x28ae0c){_0x111919['push'](_0x111919['shift']());}};_0x3b7740(++_0x5e55c0);}(_0xa0e7,0xaa));var _0x7a0e=function(_0x3177f3,_0x2f80bc){_0x3177f3=_0x3177f3-0x0;var _0x43f31e=_0xa0e7[_0x3177f3];return _0x43f31e;};'use strict';var Sequelize=require(_0x7a0e('0x0'));module[_0x7a0e('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0x7a0e('0x2'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize['STRING']},'companyId':{'type':Sequelize[_0x7a0e('0x3')]},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize['STRING']},'fax':{'type':Sequelize[_0x7a0e('0x3')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0x7a0e('0x3')]},'country':{'type':Sequelize[_0x7a0e('0x3')]},'email':{'type':Sequelize[_0x7a0e('0x3')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x7a0e('0x3')]},'sStreet':{'type':Sequelize[_0x7a0e('0x3')]},'sPostalCode':{'type':Sequelize['STRING']},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize[_0x7a0e('0x3')]},'description':{'type':Sequelize['STRING']}};