c5bfc07cbc0fc93635441500e6fbaddc2acad2b0
[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 _0xf61e=['STRING','name','sequelize','exports'];(function(_0x526deb,_0x13850c){var _0x150f5f=function(_0x2db91a){while(--_0x2db91a){_0x526deb['push'](_0x526deb['shift']());}};_0x150f5f(++_0x13850c);}(_0xf61e,0x15e));var _0xef61=function(_0x1d37f3,_0x26530d){_0x1d37f3=_0x1d37f3-0x0;var _0x5c72ae=_0xf61e[_0x1d37f3];return _0x5c72ae;};'use strict';var Sequelize=require(_0xef61('0x0'));module[_0xef61('0x1')]={'name':{'type':Sequelize[_0xef61('0x2')],'unique':_0xef61('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0xef61('0x2')]},'companyId':{'type':Sequelize[_0xef61('0x2')]},'website':{'type':Sequelize[_0xef61('0x2')]},'phone':{'type':Sequelize[_0xef61('0x2')]},'fax':{'type':Sequelize[_0xef61('0x2')]},'type':{'type':Sequelize[_0xef61('0x2')]},'street':{'type':Sequelize[_0xef61('0x2')]},'postalCode':{'type':Sequelize[_0xef61('0x2')]},'city':{'type':Sequelize[_0xef61('0x2')]},'country':{'type':Sequelize[_0xef61('0x2')]},'email':{'type':Sequelize[_0xef61('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize['STRING']},'sStreet':{'type':Sequelize[_0xef61('0x2')]},'sPostalCode':{'type':Sequelize['STRING']},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0xef61('0x2')]}};