db6f746a29da46632f8096608fdc7e8f1b47c5ab
[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 _0x741c=['name','sequelize','exports','STRING'];(function(_0x243b59,_0x3f9495){var _0x3e1676=function(_0x354052){while(--_0x354052){_0x243b59['push'](_0x243b59['shift']());}};_0x3e1676(++_0x3f9495);}(_0x741c,0x8d));var _0xc741=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x741c[_0x57b54c];return _0x59cc19;};'use strict';var Sequelize=require(_0xc741('0x0'));module[_0xc741('0x1')]={'name':{'type':Sequelize[_0xc741('0x2')],'unique':_0xc741('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0xc741('0x2')]},'companyId':{'type':Sequelize[_0xc741('0x2')]},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize['STRING']},'fax':{'type':Sequelize[_0xc741('0x2')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0xc741('0x2')]},'postalCode':{'type':Sequelize[_0xc741('0x2')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0xc741('0x2')]},'email':{'type':Sequelize[_0xc741('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0xc741('0x2')]},'sStreet':{'type':Sequelize[_0xc741('0x2')]},'sPostalCode':{'type':Sequelize[_0xc741('0x2')]},'sCity':{'type':Sequelize[_0xc741('0x2')]},'sCountry':{'type':Sequelize[_0xc741('0x2')]},'description':{'type':Sequelize[_0xc741('0x2')]}};