576f039dd8e3c4dda18b9d7d8dfc06e4c0fc6b22
[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 _0x0da2=['exports','STRING','name','sequelize'];(function(_0x524b60,_0x43f14f){var _0x4c1567=function(_0x475ce5){while(--_0x475ce5){_0x524b60['push'](_0x524b60['shift']());}};_0x4c1567(++_0x43f14f);}(_0x0da2,0x1bb));var _0x20da=function(_0x194ae0,_0x1dcfd1){_0x194ae0=_0x194ae0-0x0;var _0x2d5a05=_0x0da2[_0x194ae0];return _0x2d5a05;};'use strict';var Sequelize=require(_0x20da('0x0'));module[_0x20da('0x1')]={'name':{'type':Sequelize[_0x20da('0x2')],'unique':_0x20da('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0x20da('0x2')]},'companyId':{'type':Sequelize['STRING']},'website':{'type':Sequelize[_0x20da('0x2')]},'phone':{'type':Sequelize[_0x20da('0x2')]},'fax':{'type':Sequelize[_0x20da('0x2')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x20da('0x2')]},'postalCode':{'type':Sequelize[_0x20da('0x2')]},'city':{'type':Sequelize[_0x20da('0x2')]},'country':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0x20da('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x20da('0x2')]},'sStreet':{'type':Sequelize['STRING']},'sPostalCode':{'type':Sequelize[_0x20da('0x2')]},'sCity':{'type':Sequelize[_0x20da('0x2')]},'sCountry':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x20da('0x2')]}};