e95a8acdbf816df06a86c937370e005610f2afb5
[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 _0xb018=['STRING','sequelize','exports'];(function(_0x3219bb,_0x222b4b){var _0x491e58=function(_0x5bc10e){while(--_0x5bc10e){_0x3219bb['push'](_0x3219bb['shift']());}};_0x491e58(++_0x222b4b);}(_0xb018,0x15a));var _0x8b01=function(_0x714af2,_0x121cda){_0x714af2=_0x714af2-0x0;var _0x78aa51=_0xb018[_0x714af2];return _0x78aa51;};'use strict';var Sequelize=require(_0x8b01('0x0'));module[_0x8b01('0x1')]={'name':{'type':Sequelize[_0x8b01('0x2')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0x8b01('0x2')]},'companyId':{'type':Sequelize[_0x8b01('0x2')]},'website':{'type':Sequelize[_0x8b01('0x2')]},'phone':{'type':Sequelize['STRING']},'fax':{'type':Sequelize[_0x8b01('0x2')]},'type':{'type':Sequelize[_0x8b01('0x2')]},'street':{'type':Sequelize[_0x8b01('0x2')]},'postalCode':{'type':Sequelize[_0x8b01('0x2')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0x8b01('0x2')]},'email':{'type':Sequelize[_0x8b01('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x8b01('0x2')]},'sStreet':{'type':Sequelize[_0x8b01('0x2')]},'sPostalCode':{'type':Sequelize[_0x8b01('0x2')]},'sCity':{'type':Sequelize[_0x8b01('0x2')]},'sCountry':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x8b01('0x2')]}};