Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / saInvoice / saInvoice.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 _0x0c02=['VIRTUAL','startDate','format','YYYY','getDataValue','number','moment','exports','TEXT','STRING','INTEGER','DECIMAL','BOOLEAN','DATE'];(function(_0x230d46,_0x3d452c){var _0x49401c=function(_0x4bc449){while(--_0x4bc449){_0x230d46['push'](_0x230d46['shift']());}};_0x49401c(++_0x3d452c);}(_0x0c02,0x84));var _0x20c0=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x0c02[_0x3dd15e];return _0x231fd0;};'use strict';var Sequelize=require('sequelize');var moment=require(_0x20c0('0x0'));module[_0x20c0('0x1')]={'name':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x20c0('0x2')]},'agentFullname':{'type':Sequelize[_0x20c0('0x3')]},'status':{'type':Sequelize[_0x20c0('0x2')]},'companyName':{'type':Sequelize[_0x20c0('0x3')],'allowNull':![]},'companyId':{'type':Sequelize[_0x20c0('0x4')],'allowNull':![]},'paid':{'type':Sequelize[_0x20c0('0x4')],'defaultValue':0x0},'discount':{'type':Sequelize[_0x20c0('0x5')](0xd,0x4)},'receivingStreet':{'type':Sequelize[_0x20c0('0x3')]},'receivingPostalCode':{'type':Sequelize[_0x20c0('0x3')]},'receivingCity':{'type':Sequelize[_0x20c0('0x3')]},'receivingCountry':{'type':Sequelize['STRING']},'receivingISOCode':{'type':Sequelize['STRING'](0x3)},'receivingFiscalCode':{'type':Sequelize['STRING'](0x32)},'receivingPIVA':{'type':Sequelize['STRING'](0x32)},'receivingSDICode':{'type':Sequelize[_0x20c0('0x3')](0x15)},'receivingFiscalMessage':{'type':Sequelize[_0x20c0('0x3')](0x3e8)},'receivingExpiryDay':{'type':Sequelize[_0x20c0('0x4')]},'receivingEurope':{'type':Sequelize[_0x20c0('0x6')]},'receivingSocCap':{'type':Sequelize[_0x20c0('0x3')](0xff)},'issuerName':{'type':Sequelize[_0x20c0('0x3')]},'issuerStreet':{'type':Sequelize['STRING']},'issuerPostalCode':{'type':Sequelize['STRING']},'issuerCity':{'type':Sequelize['STRING']},'issuerCountry':{'type':Sequelize['STRING']},'issuerISOCode':{'type':Sequelize['STRING'](0x3)},'issuerFiscalCode':{'type':Sequelize[_0x20c0('0x3')](0x32)},'issuerPIVA':{'type':Sequelize[_0x20c0('0x3')](0x32)},'issuerSDICode':{'type':Sequelize[_0x20c0('0x3')](0x15)},'issuerFiscalMessage':{'type':Sequelize[_0x20c0('0x3')](0x3e8)},'issuerExpiryDay':{'type':Sequelize['INTEGER']},'issuerEurope':{'type':Sequelize[_0x20c0('0x6')]},'issuerSocCap':{'type':Sequelize['STRING'](0xff)},'issuerBankAccount':{'type':Sequelize['STRING'](0xff)},'issuerBankName':{'type':Sequelize[_0x20c0('0x3')](0xff)},'issuerBankStreet':{'type':Sequelize[_0x20c0('0x3')]},'issuerBankPostalCode':{'type':Sequelize[_0x20c0('0x3')]},'issuerBankCity':{'type':Sequelize[_0x20c0('0x3')]},'issuerBankCountry':{'type':Sequelize[_0x20c0('0x3')]},'issuerBankBICSWIFT':{'type':Sequelize[_0x20c0('0x3')]},'issuerBankIBAN':{'type':Sequelize[_0x20c0('0x3')]},'issuerPhone':{'type':Sequelize[_0x20c0('0x3')]},'issuerFax':{'type':Sequelize[_0x20c0('0x3')]},'issuerEmail':{'type':Sequelize['STRING']},'issuerWeb':{'type':Sequelize[_0x20c0('0x3')]},'issuerABI':{'type':Sequelize[_0x20c0('0x3')]},'issuerCAB':{'type':Sequelize[_0x20c0('0x3')]},'issuerPayPal':{'type':Sequelize[_0x20c0('0x3')]},'startDate':{'type':Sequelize[_0x20c0('0x7')]},'endDate':{'type':Sequelize[_0x20c0('0x7')]},'number':{'type':Sequelize['INTEGER']},'beginningCompetence':{'type':Sequelize['DATE']},'endCompetence':{'type':Sequelize['DATE']},'clientCode':{'type':Sequelize[_0x20c0('0x3')]},'numberVirtual':{'type':Sequelize[_0x20c0('0x8')],'get':function(_0x2abd80){var _0x43a885=this['getDataValue'](_0x20c0('0x9'));var _0x2a0bcd=null;if(!_0x43a885){_0x2a0bcd=moment()[_0x20c0('0xa')]('YYYY');}else{_0x2a0bcd=moment(_0x43a885)['format'](_0x20c0('0xb'));}return _0x2a0bcd+'/'+this[_0x20c0('0xc')](_0x20c0('0xd'));}}};