51923caa989f8b906390ed60d342b7dbd357083a
[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 _0x0479=['BOOLEAN','DATE','ENUM','years','quarters','months','weeks','days','minutes','csv','pdf','xlsx','custom','default','TEXT','sequelize','exports','STRING'];(function(_0x3d94bc,_0x27ebe1){var _0x27b66b=function(_0x5d490c){while(--_0x5d490c){_0x3d94bc['push'](_0x3d94bc['shift']());}};_0x27b66b(++_0x27ebe1);}(_0x0479,0xf9));var _0x9047=function(_0x5c97e1,_0x4b08ab){_0x5c97e1=_0x5c97e1-0x0;var _0x51aac8=_0x0479[_0x5c97e1];return _0x51aac8;};'use strict';var Sequelize=require(_0x9047('0x0'));module[_0x9047('0x1')]={'name':{'type':Sequelize[_0x9047('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x9047('0x2')]},'active':{'type':Sequelize[_0x9047('0x3')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x9047('0x2')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize[_0x9047('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x9047('0x5')](_0x9047('0x6'),_0x9047('0x7'),_0x9047('0x8'),_0x9047('0x9'),_0x9047('0xa'),'hours',_0x9047('0xb')),'allowNull':![],'defaultValue':_0x9047('0xa')},'output':{'type':Sequelize[_0x9047('0x5')](_0x9047('0xc'),_0x9047('0xd'),_0x9047('0xe')),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize['ENUM'](_0x9047('0xf'),_0x9047('0x10')),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0x9047('0x3')],'defaultValue':![]},'email':{'type':Sequelize[_0x9047('0x2')]},'cc':{'type':Sequelize[_0x9047('0x11')]},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize[_0x9047('0x3')],'defaultValue':!![]}};