4ac411a728826ac53325cf46f3d709128af96e38
[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 _0x5f07=['STRING','DATE','INTEGER','quarters','months','hours','minutes','days','ENUM','csv','pdf','xlsx','custom','default','BOOLEAN','TEXT','sequelize'];(function(_0x21bad5,_0x23a39d){var _0x235106=function(_0x281b1f){while(--_0x281b1f){_0x21bad5['push'](_0x21bad5['shift']());}};_0x235106(++_0x23a39d);}(_0x5f07,0x87));var _0x75f0=function(_0x5037ab,_0x43209e){_0x5037ab=_0x5037ab-0x0;var _0x512adb=_0x5f07[_0x5037ab];return _0x512adb;};'use strict';var Sequelize=require(_0x75f0('0x0'));module['exports']={'name':{'type':Sequelize[_0x75f0('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0x75f0('0x1')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize[_0x75f0('0x2')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x75f0('0x3')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM']('years',_0x75f0('0x4'),_0x75f0('0x5'),'weeks','days',_0x75f0('0x6'),_0x75f0('0x7')),'allowNull':![],'defaultValue':_0x75f0('0x8')},'output':{'type':Sequelize[_0x75f0('0x9')](_0x75f0('0xa'),_0x75f0('0xb'),_0x75f0('0xc')),'allowNull':![],'defaultValue':_0x75f0('0xa')},'type':{'type':Sequelize[_0x75f0('0x9')](_0x75f0('0xd'),_0x75f0('0xe')),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0x75f0('0xf')],'defaultValue':![]},'email':{'type':Sequelize[_0x75f0('0x1')]},'cc':{'type':Sequelize[_0x75f0('0x10')]},'bcc':{'type':Sequelize[_0x75f0('0x10')]},'sendIfEmpty':{'type':Sequelize[_0x75f0('0xf')],'defaultValue':!![]}};