5f75b191df568e15865905df1db152ad54d3f832
[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 _0xb4e6=['getDataValue','split','BOOLEAN','sequelize','STRING','saFiscalMessage','join'];(function(_0x36fe51,_0x2267b3){var _0x30e4b1=function(_0x44d57c){while(--_0x44d57c){_0x36fe51['push'](_0x36fe51['shift']());}};_0x30e4b1(++_0x2267b3);}(_0xb4e6,0x1f4));var _0x6b4e=function(_0x4e198a,_0x5a6bad){_0x4e198a=_0x4e198a-0x0;var _0xb84bfe=_0xb4e6[_0x4e198a];return _0xb84bfe;};'use strict';var Sequelize=require(_0x6b4e('0x0'));module['exports']={'name':{'type':Sequelize[_0x6b4e('0x1')]},'companyId':{'type':Sequelize[_0x6b4e('0x1')]},'website':{'type':Sequelize[_0x6b4e('0x1')]},'phone':{'type':Sequelize[_0x6b4e('0x1')]},'fax':{'type':Sequelize[_0x6b4e('0x1')]},'type':{'type':Sequelize[_0x6b4e('0x1')]},'street':{'type':Sequelize[_0x6b4e('0x1')]},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0x6b4e('0x1')]},'country':{'type':Sequelize[_0x6b4e('0x1')]},'email':{'type':Sequelize[_0x6b4e('0x1')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize['STRING']},'sStreet':{'type':Sequelize[_0x6b4e('0x1')]},'sPostalCode':{'type':Sequelize['STRING']},'sCity':{'type':Sequelize['STRING']},'sCountry':{'type':Sequelize[_0x6b4e('0x1')]},'description':{'type':Sequelize['STRING']},'flatDiscount':{'type':Sequelize['FLOAT']},'saStreet':{'type':Sequelize[_0x6b4e('0x1')]},'saPostalCode':{'type':Sequelize[_0x6b4e('0x1')]},'saCity':{'type':Sequelize[_0x6b4e('0x1')]},'saCountry':{'type':Sequelize[_0x6b4e('0x1')]},'saISOCode':{'type':Sequelize[_0x6b4e('0x1')](0x3)},'saFiscalCode':{'type':Sequelize[_0x6b4e('0x1')](0x32)},'saPIVA':{'type':Sequelize[_0x6b4e('0x1')](0x32)},'saSDICode':{'type':Sequelize['STRING'](0x15)},'saFiscalMessage':{'type':Sequelize[_0x6b4e('0x1')],'set':function(_0x3bba86){this['setDataValue'](_0x6b4e('0x2'),_0x3bba86?_0x3bba86[_0x6b4e('0x3')](','):null);},'get':function(){return this[_0x6b4e('0x4')](_0x6b4e('0x2'))?this[_0x6b4e('0x4')](_0x6b4e('0x2'))[_0x6b4e('0x5')](','):[];}},'saExpiryDay':{'type':Sequelize['INTEGER']},'saEurope':{'type':Sequelize[_0x6b4e('0x6')]},'saSocCap':{'type':Sequelize[_0x6b4e('0x1')](0xff)},'saPaymentMethod':{'type':Sequelize['INTEGER']},'defaultEntry':{'type':Sequelize[_0x6b4e('0x6')],'defaultValue':![]},'vat':{'type':Sequelize['STRING'](0xff)}};