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