3b31055b6a055b3d0e47b6c412cc56d1a2209d0e
[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 _0xfaac=['sequelize','STRING','name'];(function(_0xa12bee,_0x219e5f){var _0x4421f6=function(_0x393cb3){while(--_0x393cb3){_0xa12bee['push'](_0xa12bee['shift']());}};_0x4421f6(++_0x219e5f);}(_0xfaac,0x123));var _0xcfaa=function(_0x1c7e9e,_0x41a89d){_0x1c7e9e=_0x1c7e9e-0x0;var _0x1a95cf=_0xfaac[_0x1c7e9e];return _0x1a95cf;};'use strict';var Sequelize=require(_0xcfaa('0x0'));module['exports']={'name':{'type':Sequelize[_0xcfaa('0x1')],'unique':_0xcfaa('0x2'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0xcfaa('0x1')]},'companyId':{'type':Sequelize[_0xcfaa('0x1')]},'website':{'type':Sequelize[_0xcfaa('0x1')]},'phone':{'type':Sequelize[_0xcfaa('0x1')]},'fax':{'type':Sequelize[_0xcfaa('0x1')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0xcfaa('0x1')]},'postalCode':{'type':Sequelize[_0xcfaa('0x1')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0xcfaa('0x1')]},'email':{'type':Sequelize[_0xcfaa('0x1')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0xcfaa('0x1')]},'sStreet':{'type':Sequelize['STRING']},'sPostalCode':{'type':Sequelize[_0xcfaa('0x1')]},'sCity':{'type':Sequelize[_0xcfaa('0x1')]},'sCountry':{'type':Sequelize[_0xcfaa('0x1')]},'description':{'type':Sequelize[_0xcfaa('0x1')]}};