0c3a242780e871614bcc2257d424080ed557f5c4
[motion2.git] / server / api / squareProject / squareProject.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 _0x2da6=['TEXT','BLOB','long','getDataValue','preproduction','toString','utf8','production','DATE','sequelize','exports','STRING','name'];(function(_0x400322,_0x4353a8){var _0xfdd597=function(_0xd914b6){while(--_0xd914b6){_0x400322['push'](_0x400322['shift']());}};_0xfdd597(++_0x4353a8);}(_0x2da6,0x1dd));var _0x62da=function(_0x37081a,_0x1f363a){_0x37081a=_0x37081a-0x0;var _0xbbd56f=_0x2da6[_0x37081a];return _0xbbd56f;};'use strict';var Sequelize=require(_0x62da('0x0'));module[_0x62da('0x1')]={'name':{'type':Sequelize[_0x62da('0x2')],'unique':_0x62da('0x3'),'allowNull':![]},'description':{'type':Sequelize[_0x62da('0x2')]},'notes':{'type':Sequelize[_0x62da('0x4')]},'preproduction':{'type':Sequelize[_0x62da('0x5')](_0x62da('0x6')),'get':function(){if(this['getDataValue']('preproduction')){return this[_0x62da('0x7')](_0x62da('0x8'))[_0x62da('0x9')](_0x62da('0xa'));}}},'production':{'type':Sequelize[_0x62da('0x5')](_0x62da('0x6')),'get':function(){if(this[_0x62da('0x7')](_0x62da('0xb'))){return this[_0x62da('0x7')]('production')[_0x62da('0x9')](_0x62da('0xa'));}}},'savedAt':{'type':Sequelize[_0x62da('0xc')]},'publishedAt':{'type':Sequelize[_0x62da('0xc')]}};