Built motion from commit 10af8726.|2.6.34
[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 _0x06d7=['weeks','days','hours','minutes','pdf','xlsx','csv','custom','default','BOOLEAN','TEXT','sequelize','exports','STRING','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','years','quarters','months'];(function(_0x5621e8,_0x257e0d){var _0x20d8a7=function(_0x34b36a){while(--_0x34b36a){_0x5621e8['push'](_0x5621e8['shift']());}};_0x20d8a7(++_0x257e0d);}(_0x06d7,0xdd));var _0x706d=function(_0x7ef3f5,_0x121afd){_0x7ef3f5=_0x7ef3f5-0x0;var _0x215f28=_0x06d7[_0x7ef3f5];return _0x215f28;};'use strict';var Sequelize=require(_0x706d('0x0'));module[_0x706d('0x1')]={'name':{'type':Sequelize[_0x706d('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x706d('0x2')],'allowNull':![],'defaultValue':_0x706d('0x3')},'startAt':{'type':Sequelize[_0x706d('0x4')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x706d('0x5')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x706d('0x6')](_0x706d('0x7'),_0x706d('0x8'),_0x706d('0x9'),_0x706d('0xa'),_0x706d('0xb'),_0x706d('0xc'),_0x706d('0xd')),'allowNull':![],'defaultValue':_0x706d('0xb')},'output':{'type':Sequelize['ENUM']('csv',_0x706d('0xe'),_0x706d('0xf')),'allowNull':![],'defaultValue':_0x706d('0x10')},'type':{'type':Sequelize[_0x706d('0x6')](_0x706d('0x11'),_0x706d('0x12')),'allowNull':![],'defaultValue':_0x706d('0x11')},'sendMail':{'type':Sequelize[_0x706d('0x13')],'defaultValue':![]},'email':{'type':Sequelize[_0x706d('0x2')]},'cc':{'type':Sequelize[_0x706d('0x14')]},'bcc':{'type':Sequelize[_0x706d('0x14')]},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};