45caf3735fe803be767333cefac4661fefb1dcb6
[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 _0x6eed=['exports','name','STRING','sequelize'];(function(_0x29ef6e,_0x436d03){var _0x116a71=function(_0x2fd02d){while(--_0x2fd02d){_0x29ef6e['push'](_0x29ef6e['shift']());}};_0x116a71(++_0x436d03);}(_0x6eed,0x77));var _0xd6ee=function(_0x29d932,_0x97f2a7){_0x29d932=_0x29d932-0x0;var _0x5cd611=_0x6eed[_0x29d932];return _0x5cd611;};'use strict';var Sequelize=require(_0xd6ee('0x0'));module[_0xd6ee('0x1')]={'name':{'type':Sequelize['STRING'],'unique':_0xd6ee('0x2'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0xd6ee('0x3')]},'companyId':{'type':Sequelize[_0xd6ee('0x3')]},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize[_0xd6ee('0x3')]},'fax':{'type':Sequelize[_0xd6ee('0x3')]},'type':{'type':Sequelize[_0xd6ee('0x3')]},'street':{'type':Sequelize[_0xd6ee('0x3')]},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0xd6ee('0x3')]},'email':{'type':Sequelize[_0xd6ee('0x3')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0xd6ee('0x3')]},'sStreet':{'type':Sequelize[_0xd6ee('0x3')]},'sPostalCode':{'type':Sequelize['STRING']},'sCity':{'type':Sequelize[_0xd6ee('0x3')]},'sCountry':{'type':Sequelize[_0xd6ee('0x3')]},'description':{'type':Sequelize[_0xd6ee('0x3')]}};