37102ab3f1a218e6a0fe06e164c410326aad33a8
[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 _0x07e8=['pdf','xlsx','custom','default','TEXT','sequelize','exports','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','INTEGER','ENUM','years','months','weeks','days','hours','minutes','csv'];(function(_0x4bed75,_0x211cc7){var _0x2dd8e8=function(_0x6369c7){while(--_0x6369c7){_0x4bed75['push'](_0x4bed75['shift']());}};_0x2dd8e8(++_0x211cc7);}(_0x07e8,0x10f));var _0x807e=function(_0x19aa56,_0x2c34bc){_0x19aa56=_0x19aa56-0x0;var _0x29d2b2=_0x07e8[_0x19aa56];return _0x29d2b2;};'use strict';var Sequelize=require(_0x807e('0x0'));module[_0x807e('0x1')]={'name':{'type':Sequelize[_0x807e('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize[_0x807e('0x3')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x807e('0x4')},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x807e('0x5')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x807e('0x6')](_0x807e('0x7'),'quarters',_0x807e('0x8'),_0x807e('0x9'),_0x807e('0xa'),_0x807e('0xb'),_0x807e('0xc')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x807e('0x6')](_0x807e('0xd'),_0x807e('0xe'),_0x807e('0xf')),'allowNull':![],'defaultValue':_0x807e('0xd')},'type':{'type':Sequelize[_0x807e('0x6')](_0x807e('0x10'),_0x807e('0x11')),'allowNull':![],'defaultValue':_0x807e('0x10')},'sendMail':{'type':Sequelize[_0x807e('0x3')],'defaultValue':![]},'email':{'type':Sequelize[_0x807e('0x2')]},'cc':{'type':Sequelize[_0x807e('0x12')]},'bcc':{'type':Sequelize[_0x807e('0x12')]},'sendIfEmpty':{'type':Sequelize[_0x807e('0x3')],'defaultValue':!![]}};