21346f352c6e871837108b813c839a0c46a673bf
[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 _0xc81b=['years','quarters','months','weeks','hours','days','csv','pdf','custom','BOOLEAN','TEXT','STRING','DATE','INTEGER','ENUM'];(function(_0x2daef6,_0xcac228){var _0x62d030=function(_0x26a7d6){while(--_0x26a7d6){_0x2daef6['push'](_0x2daef6['shift']());}};_0x62d030(++_0xcac228);}(_0xc81b,0x155));var _0xbc81=function(_0x5c08cc,_0xb2b8fa){_0x5c08cc=_0x5c08cc-0x0;var _0x362ca1=_0xc81b[_0x5c08cc];return _0x362ca1;};'use strict';var Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xbc81('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0xbc81('0x0')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0xbc81('0x0')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize[_0xbc81('0x1')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xbc81('0x2')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0xbc81('0x3')](_0xbc81('0x4'),_0xbc81('0x5'),_0xbc81('0x6'),_0xbc81('0x7'),'days',_0xbc81('0x8'),'minutes'),'allowNull':![],'defaultValue':_0xbc81('0x9')},'output':{'type':Sequelize[_0xbc81('0x3')](_0xbc81('0xa'),_0xbc81('0xb'),'xlsx'),'allowNull':![],'defaultValue':_0xbc81('0xa')},'type':{'type':Sequelize[_0xbc81('0x3')](_0xbc81('0xc'),'default'),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0xbc81('0xd')],'defaultValue':![]},'email':{'type':Sequelize[_0xbc81('0x0')]},'cc':{'type':Sequelize[_0xbc81('0xe')]},'bcc':{'type':Sequelize[_0xbc81('0xe')]},'sendIfEmpty':{'type':Sequelize[_0xbc81('0xd')],'defaultValue':!![]}};