54ea2d006c64df776a27cedb6389bbeafb00b1f3
[motion2.git] / server / api / schedule / schedule.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 _0xb1c9=['csv','custom','default','TEXT','sequelize','exports','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','years','quarters','weeks','hours','minutes','days','pdf','xlsx'];(function(_0x2657fa,_0x12be80){var _0x1962b7=function(_0xcccd5a){while(--_0xcccd5a){_0x2657fa['push'](_0x2657fa['shift']());}};_0x1962b7(++_0x12be80);}(_0xb1c9,0x130));var _0x9b1c=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xb1c9[_0x321bb2];return _0x9c12ed;};'use strict';var Sequelize=require(_0x9b1c('0x0'));module[_0x9b1c('0x1')]={'name':{'type':Sequelize[_0x9b1c('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x9b1c('0x2')]},'active':{'type':Sequelize[_0x9b1c('0x3')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x9b1c('0x4')},'startAt':{'type':Sequelize[_0x9b1c('0x5')],'allowNull':![]},'endAt':{'type':Sequelize[_0x9b1c('0x5')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x9b1c('0x6')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x9b1c('0x7')](_0x9b1c('0x8'),_0x9b1c('0x9'),'months',_0x9b1c('0xa'),'days',_0x9b1c('0xb'),_0x9b1c('0xc')),'allowNull':![],'defaultValue':_0x9b1c('0xd')},'output':{'type':Sequelize['ENUM']('csv',_0x9b1c('0xe'),_0x9b1c('0xf')),'allowNull':![],'defaultValue':_0x9b1c('0x10')},'type':{'type':Sequelize[_0x9b1c('0x7')](_0x9b1c('0x11'),_0x9b1c('0x12')),'allowNull':![],'defaultValue':_0x9b1c('0x11')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0x9b1c('0x2')]},'cc':{'type':Sequelize[_0x9b1c('0x13')]},'bcc':{'type':Sequelize[_0x9b1c('0x13')]},'sendIfEmpty':{'type':Sequelize[_0x9b1c('0x3')],'defaultValue':!![]}};