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