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