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