Built motion from commit 753c950e.|2.5.42
[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 _0x28bc=['name','sequelize','exports','STRING'];(function(_0x248d46,_0xba08ec){var _0x354942=function(_0x1b52a1){while(--_0x1b52a1){_0x248d46['push'](_0x248d46['shift']());}};_0x354942(++_0xba08ec);}(_0x28bc,0x79));var _0xc28b=function(_0xaa0309,_0x1c8008){_0xaa0309=_0xaa0309-0x0;var _0x5de7ce=_0x28bc[_0xaa0309];return _0x5de7ce;};'use strict';var Sequelize=require(_0xc28b('0x0'));module[_0xc28b('0x1')]={'name':{'type':Sequelize[_0xc28b('0x2')],'unique':_0xc28b('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0xc28b('0x2')]},'companyId':{'type':Sequelize[_0xc28b('0x2')]},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize[_0xc28b('0x2')]},'fax':{'type':Sequelize[_0xc28b('0x2')]},'type':{'type':Sequelize[_0xc28b('0x2')]},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0xc28b('0x2')]},'country':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0xc28b('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0xc28b('0x2')]},'sStreet':{'type':Sequelize[_0xc28b('0x2')]},'sPostalCode':{'type':Sequelize[_0xc28b('0x2')]},'sCity':{'type':Sequelize[_0xc28b('0x2')]},'sCountry':{'type':Sequelize[_0xc28b('0x2')]},'description':{'type':Sequelize[_0xc28b('0x2')]}};