df467fb2ea7b6654e8bcf3047cae80b4441a611f
[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 _0x8b8e=['years','quarters','months','weeks','days','hours','csv','custom','TEXT','sequelize','STRING','BOOLEAN','DATE','INTEGER','ENUM'];(function(_0x498010,_0x3339e5){var _0x47b1dc=function(_0xe31602){while(--_0xe31602){_0x498010['push'](_0x498010['shift']());}};_0x47b1dc(++_0x3339e5);}(_0x8b8e,0x108));var _0xe8b8=function(_0x428ccc,_0x2d3040){_0x428ccc=_0x428ccc-0x0;var _0x23eb1d=_0x8b8e[_0x428ccc];return _0x23eb1d;};'use strict';var Sequelize=require(_0xe8b8('0x0'));module['exports']={'name':{'type':Sequelize[_0xe8b8('0x1')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize[_0xe8b8('0x2')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0xe8b8('0x3')],'allowNull':![]},'endAt':{'type':Sequelize[_0xe8b8('0x3')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xe8b8('0x4')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0xe8b8('0x5')](_0xe8b8('0x6'),_0xe8b8('0x7'),_0xe8b8('0x8'),_0xe8b8('0x9'),_0xe8b8('0xa'),_0xe8b8('0xb'),'minutes'),'allowNull':![],'defaultValue':_0xe8b8('0xa')},'output':{'type':Sequelize['ENUM'](_0xe8b8('0xc'),'pdf','xlsx'),'allowNull':![],'defaultValue':_0xe8b8('0xc')},'type':{'type':Sequelize[_0xe8b8('0x5')]('custom','default'),'allowNull':![],'defaultValue':_0xe8b8('0xd')},'sendMail':{'type':Sequelize[_0xe8b8('0x2')],'defaultValue':![]},'email':{'type':Sequelize[_0xe8b8('0x1')]},'cc':{'type':Sequelize[_0xe8b8('0xe')]},'bcc':{'type':Sequelize[_0xe8b8('0xe')]},'sendIfEmpty':{'type':Sequelize[_0xe8b8('0x2')],'defaultValue':!![]}};