58027c59e30bf10237a2eb1542bea2097bcb48eb
[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 _0x01d4=['STRING','name','sequelize','exports'];(function(_0x4c8fa1,_0x4e4bde){var _0x9768c9=function(_0x4b4ef4){while(--_0x4b4ef4){_0x4c8fa1['push'](_0x4c8fa1['shift']());}};_0x9768c9(++_0x4e4bde);}(_0x01d4,0x6e));var _0x401d=function(_0x455278,_0xb3307b){_0x455278=_0x455278-0x0;var _0x555694=_0x01d4[_0x455278];return _0x555694;};'use strict';var Sequelize=require(_0x401d('0x0'));module[_0x401d('0x1')]={'name':{'type':Sequelize[_0x401d('0x2')],'unique':_0x401d('0x3'),'allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0x401d('0x2')]},'companyId':{'type':Sequelize[_0x401d('0x2')]},'website':{'type':Sequelize[_0x401d('0x2')]},'phone':{'type':Sequelize[_0x401d('0x2')]},'fax':{'type':Sequelize[_0x401d('0x2')]},'type':{'type':Sequelize[_0x401d('0x2')]},'street':{'type':Sequelize['STRING']},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0x401d('0x2')]},'country':{'type':Sequelize[_0x401d('0x2')]},'email':{'type':Sequelize[_0x401d('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x401d('0x2')]},'sStreet':{'type':Sequelize['STRING']},'sPostalCode':{'type':Sequelize[_0x401d('0x2')]},'sCity':{'type':Sequelize[_0x401d('0x2')]},'sCountry':{'type':Sequelize[_0x401d('0x2')]},'description':{'type':Sequelize[_0x401d('0x2')]}};