8f2f718b54c6d9fd587ca10f4f32061cad1b08f5
[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 _0x72e7=['hours','minutes','csv','xlsx','custom','TEXT','exports','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','years','quarters','weeks','days'];(function(_0x580256,_0x3110ed){var _0x34e885=function(_0x2e2bd3){while(--_0x2e2bd3){_0x580256['push'](_0x580256['shift']());}};_0x34e885(++_0x3110ed);}(_0x72e7,0x1c0));var _0x772e=function(_0x5751d6,_0x2b549d){_0x5751d6=_0x5751d6-0x0;var _0x2b385d=_0x72e7[_0x5751d6];return _0x2b385d;};'use strict';var Sequelize=require('sequelize');module[_0x772e('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x772e('0x1')]},'active':{'type':Sequelize[_0x772e('0x2')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x772e('0x1')],'allowNull':![],'defaultValue':_0x772e('0x3')},'startAt':{'type':Sequelize[_0x772e('0x4')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x772e('0x5')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x772e('0x6')](_0x772e('0x7'),_0x772e('0x8'),'months',_0x772e('0x9'),_0x772e('0xa'),_0x772e('0xb'),_0x772e('0xc')),'allowNull':![],'defaultValue':_0x772e('0xa')},'output':{'type':Sequelize[_0x772e('0x6')](_0x772e('0xd'),'pdf',_0x772e('0xe')),'allowNull':![],'defaultValue':_0x772e('0xd')},'type':{'type':Sequelize[_0x772e('0x6')](_0x772e('0xf'),'default'),'allowNull':![],'defaultValue':_0x772e('0xf')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0x772e('0x1')]},'cc':{'type':Sequelize[_0x772e('0x10')]},'bcc':{'type':Sequelize[_0x772e('0x10')]},'sendIfEmpty':{'type':Sequelize[_0x772e('0x2')],'defaultValue':!![]}};