69758c4b7a9caf28c8badb8b2d98378877a45845
[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 _0x83b4=['exports','STRING','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','weeks','days','hours','minutes','csv','xlsx','custom','sequelize'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x83b4,0x99));var _0x483b=function(_0x182255,_0x2bd11a){_0x182255=_0x182255-0x0;var _0x50e9db=_0x83b4[_0x182255];return _0x50e9db;};'use strict';var Sequelize=require(_0x483b('0x0'));module[_0x483b('0x1')]={'name':{'type':Sequelize[_0x483b('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x483b('0x2')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x483b('0x2')],'allowNull':![],'defaultValue':_0x483b('0x3')},'startAt':{'type':Sequelize[_0x483b('0x4')],'allowNull':![]},'endAt':{'type':Sequelize[_0x483b('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x483b('0x5')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x483b('0x6')]('years','quarters','months',_0x483b('0x7'),_0x483b('0x8'),_0x483b('0x9'),_0x483b('0xa')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x483b('0x6')](_0x483b('0xb'),'pdf',_0x483b('0xc')),'allowNull':![],'defaultValue':_0x483b('0xb')},'type':{'type':Sequelize[_0x483b('0x6')](_0x483b('0xd'),'default'),'allowNull':![],'defaultValue':_0x483b('0xd')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0x483b('0x2')]},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};