Built motion from commit 06eb8eb0.|2.6.31
[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 _0xb869=['BOOLEAN','TEXT','sequelize','STRING','0\x200\x20*\x20*\x20*','DATE','ENUM','years','months','weeks','days','hours','csv','pdf','custom','default'];(function(_0x4a9fb1,_0x273043){var _0x348672=function(_0x142b69){while(--_0x142b69){_0x4a9fb1['push'](_0x4a9fb1['shift']());}};_0x348672(++_0x273043);}(_0xb869,0x82));var _0x9b86=function(_0x13cd03,_0x136897){_0x13cd03=_0x13cd03-0x0;var _0x4f394c=_0xb869[_0x13cd03];return _0x4f394c;};'use strict';var Sequelize=require(_0x9b86('0x0'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x9b86('0x1')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x9b86('0x2')},'startAt':{'type':Sequelize[_0x9b86('0x3')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x9b86('0x4')](_0x9b86('0x5'),'quarters',_0x9b86('0x6'),_0x9b86('0x7'),_0x9b86('0x8'),_0x9b86('0x9'),'minutes'),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize['ENUM'](_0x9b86('0xa'),_0x9b86('0xb'),'xlsx'),'allowNull':![],'defaultValue':_0x9b86('0xa')},'type':{'type':Sequelize[_0x9b86('0x4')](_0x9b86('0xc'),_0x9b86('0xd')),'allowNull':![],'defaultValue':_0x9b86('0xc')},'sendMail':{'type':Sequelize[_0x9b86('0xe')],'defaultValue':![]},'email':{'type':Sequelize[_0x9b86('0x1')]},'cc':{'type':Sequelize[_0x9b86('0xf')]},'bcc':{'type':Sequelize[_0x9b86('0xf')]},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};