4acde0d542190b002015283651efac3bdc00a622
[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 _0x7bd0=['days','minutes','csv','pdf','custom','default','TEXT','sequelize','exports','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','years','quarters','months','weeks'];(function(_0x3f95f8,_0x5bbc90){var _0x3e47a9=function(_0x5e1508){while(--_0x5e1508){_0x3f95f8['push'](_0x3f95f8['shift']());}};_0x3e47a9(++_0x5bbc90);}(_0x7bd0,0x111));var _0x07bd=function(_0x476b00,_0x250877){_0x476b00=_0x476b00-0x0;var _0x44ec8e=_0x7bd0[_0x476b00];return _0x44ec8e;};'use strict';var Sequelize=require(_0x07bd('0x0'));module[_0x07bd('0x1')]={'name':{'type':Sequelize[_0x07bd('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x07bd('0x2')]},'active':{'type':Sequelize[_0x07bd('0x3')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x07bd('0x2')],'allowNull':![],'defaultValue':_0x07bd('0x4')},'startAt':{'type':Sequelize[_0x07bd('0x5')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x07bd('0x6')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x07bd('0x7')](_0x07bd('0x8'),_0x07bd('0x9'),_0x07bd('0xa'),_0x07bd('0xb'),_0x07bd('0xc'),'hours',_0x07bd('0xd')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x07bd('0x7')](_0x07bd('0xe'),_0x07bd('0xf'),'xlsx'),'allowNull':![],'defaultValue':_0x07bd('0xe')},'type':{'type':Sequelize[_0x07bd('0x7')](_0x07bd('0x10'),_0x07bd('0x11')),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0x07bd('0x3')],'defaultValue':![]},'email':{'type':Sequelize[_0x07bd('0x2')]},'cc':{'type':Sequelize[_0x07bd('0x12')]},'bcc':{'type':Sequelize[_0x07bd('0x12')]},'sendIfEmpty':{'type':Sequelize[_0x07bd('0x3')],'defaultValue':!![]}};