266fe9db968c9d030d1c45f3e697daa81b83ac72
[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 _0xf577=['STRING','TEXT','exports','BOOLEAN','DATE','INTEGER','ENUM','years','quarters','months','weeks','days','minutes','csv','pdf','xlsx','custom','default'];(function(_0x2272b5,_0x362458){var _0x110156=function(_0x5c2e32){while(--_0x5c2e32){_0x2272b5['push'](_0x2272b5['shift']());}};_0x110156(++_0x362458);}(_0xf577,0x18e));var _0x7f57=function(_0x17928f,_0x4ad33f){_0x17928f=_0x17928f-0x0;var _0x500b63=_0xf577[_0x17928f];return _0x500b63;};'use strict';var Sequelize=require('sequelize');module[_0x7f57('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize[_0x7f57('0x1')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0x7f57('0x2')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x7f57('0x3')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x7f57('0x4')](_0x7f57('0x5'),_0x7f57('0x6'),_0x7f57('0x7'),_0x7f57('0x8'),_0x7f57('0x9'),'hours',_0x7f57('0xa')),'allowNull':![],'defaultValue':_0x7f57('0x9')},'output':{'type':Sequelize['ENUM'](_0x7f57('0xb'),_0x7f57('0xc'),_0x7f57('0xd')),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize['ENUM'](_0x7f57('0xe'),_0x7f57('0xf')),'allowNull':![],'defaultValue':_0x7f57('0xe')},'sendMail':{'type':Sequelize[_0x7f57('0x1')],'defaultValue':![]},'email':{'type':Sequelize[_0x7f57('0x10')]},'cc':{'type':Sequelize[_0x7f57('0x11')]},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize[_0x7f57('0x1')],'defaultValue':!![]}};