Built motion from commit da617fac.|2.6.6
[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 _0x684d=['exports','STRING','name'];(function(_0x400e46,_0x525bbf){var _0x17fa5f=function(_0x28f0f8){while(--_0x28f0f8){_0x400e46['push'](_0x400e46['shift']());}};_0x17fa5f(++_0x525bbf);}(_0x684d,0x174));var _0xd684=function(_0x48ed22,_0x526605){_0x48ed22=_0x48ed22-0x0;var _0x1782d6=_0x684d[_0x48ed22];return _0x1782d6;};'use strict';var Sequelize=require('sequelize');module[_0xd684('0x0')]={'name':{'type':Sequelize[_0xd684('0x1')],'unique':_0xd684('0x2'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize['STRING']},'companyId':{'type':Sequelize[_0xd684('0x1')]},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize[_0xd684('0x1')]},'fax':{'type':Sequelize[_0xd684('0x1')]},'type':{'type':Sequelize[_0xd684('0x1')]},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize[_0xd684('0x1')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0xd684('0x1')]},'email':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0xd684('0x1')]},'sStreet':{'type':Sequelize[_0xd684('0x1')]},'sPostalCode':{'type':Sequelize[_0xd684('0x1')]},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize[_0xd684('0x1')]},'description':{'type':Sequelize['STRING']}};