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