3b96a1df64739b43a298d75c22b98dfb424ec69e
[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 _0xe7de=['0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','years','quarters','months','weeks','days','hours','minutes','csv','pdf','xlsx','custom','TEXT','BOOLEAN','sequelize','exports','STRING'];(function(_0x7939ec,_0x5e96b2){var _0x2cc215=function(_0x21a7f8){while(--_0x21a7f8){_0x7939ec['push'](_0x7939ec['shift']());}};_0x2cc215(++_0x5e96b2);}(_0xe7de,0x165));var _0xee7d=function(_0x1542bd,_0x5dd179){_0x1542bd=_0x1542bd-0x0;var _0x42ad1a=_0xe7de[_0x1542bd];return _0x42ad1a;};'use strict';var Sequelize=require(_0xee7d('0x0'));module[_0xee7d('0x1')]={'name':{'type':Sequelize[_0xee7d('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0xee7d('0x2')],'allowNull':![],'defaultValue':_0xee7d('0x3')},'startAt':{'type':Sequelize[_0xee7d('0x4')],'allowNull':![]},'endAt':{'type':Sequelize[_0xee7d('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xee7d('0x5')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0xee7d('0x6')](_0xee7d('0x7'),_0xee7d('0x8'),_0xee7d('0x9'),_0xee7d('0xa'),_0xee7d('0xb'),_0xee7d('0xc'),_0xee7d('0xd')),'allowNull':![],'defaultValue':_0xee7d('0xb')},'output':{'type':Sequelize['ENUM'](_0xee7d('0xe'),_0xee7d('0xf'),_0xee7d('0x10')),'allowNull':![],'defaultValue':_0xee7d('0xe')},'type':{'type':Sequelize[_0xee7d('0x6')](_0xee7d('0x11'),'default'),'allowNull':![],'defaultValue':_0xee7d('0x11')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0xee7d('0x2')]},'cc':{'type':Sequelize[_0xee7d('0x12')]},'bcc':{'type':Sequelize[_0xee7d('0x12')]},'sendIfEmpty':{'type':Sequelize[_0xee7d('0x13')],'defaultValue':!![]}};