449a860b66a6f905780f59336de3666df9d5106f
[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 _0xde4a=['STRING','sequelize','exports','name'];(function(_0x2d6533,_0x19f68c){var _0x26c12f=function(_0x2878d4){while(--_0x2878d4){_0x2d6533['push'](_0x2d6533['shift']());}};_0x26c12f(++_0x19f68c);}(_0xde4a,0x12d));var _0xade4=function(_0x54fece,_0x14edb4){_0x54fece=_0x54fece-0x0;var _0x35ad93=_0xde4a[_0x54fece];return _0x35ad93;};'use strict';var Sequelize=require(_0xade4('0x0'));module[_0xade4('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0xade4('0x2'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0xade4('0x3')]},'companyId':{'type':Sequelize[_0xade4('0x3')]},'website':{'type':Sequelize[_0xade4('0x3')]},'phone':{'type':Sequelize[_0xade4('0x3')]},'fax':{'type':Sequelize[_0xade4('0x3')]},'type':{'type':Sequelize[_0xade4('0x3')]},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize[_0xade4('0x3')]},'city':{'type':Sequelize[_0xade4('0x3')]},'country':{'type':Sequelize[_0xade4('0x3')]},'email':{'type':Sequelize[_0xade4('0x3')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0xade4('0x3')]},'sStreet':{'type':Sequelize[_0xade4('0x3')]},'sPostalCode':{'type':Sequelize[_0xade4('0x3')]},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize[_0xade4('0x3')]},'description':{'type':Sequelize[_0xade4('0x3')]}};