be87f43e2279949b5a0f39da85e2451b6030a249
[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 _0x813e=['STRING','name','sequelize','exports'];(function(_0x37f03c,_0x35d759){var _0x2d1dd3=function(_0x180611){while(--_0x180611){_0x37f03c['push'](_0x37f03c['shift']());}};_0x2d1dd3(++_0x35d759);}(_0x813e,0xba));var _0xe813=function(_0x4cab1e,_0xfc5cde){_0x4cab1e=_0x4cab1e-0x0;var _0x1a8cd8=_0x813e[_0x4cab1e];return _0x1a8cd8;};'use strict';var Sequelize=require(_0xe813('0x0'));module[_0xe813('0x1')]={'name':{'type':Sequelize[_0xe813('0x2')],'unique':_0xe813('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0xe813('0x2')]},'companyId':{'type':Sequelize[_0xe813('0x2')]},'website':{'type':Sequelize[_0xe813('0x2')]},'phone':{'type':Sequelize[_0xe813('0x2')]},'fax':{'type':Sequelize[_0xe813('0x2')]},'type':{'type':Sequelize[_0xe813('0x2')]},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize[_0xe813('0x2')]},'city':{'type':Sequelize[_0xe813('0x2')]},'country':{'type':Sequelize['STRING']},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0xe813('0x2')]},'sStreet':{'type':Sequelize[_0xe813('0x2')]},'sPostalCode':{'type':Sequelize[_0xe813('0x2')]},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize[_0xe813('0x2')]},'description':{'type':Sequelize[_0xe813('0x2')]}};