616419e4e212810854ba4a1d561555e6461f26ce
[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 _0x88df=['hours','minutes','csv','xlsx','custom','default','TEXT','sequelize','STRING','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','quarters','months','weeks','days'];(function(_0x4dce1f,_0x201548){var _0x45673a=function(_0x537a43){while(--_0x537a43){_0x4dce1f['push'](_0x4dce1f['shift']());}};_0x45673a(++_0x201548);}(_0x88df,0x6d));var _0xf88d=function(_0x4c831c,_0x53fd9c){_0x4c831c=_0x4c831c-0x0;var _0x44b349=_0x88df[_0x4c831c];return _0x44b349;};'use strict';var Sequelize=require(_0xf88d('0x0'));module['exports']={'name':{'type':Sequelize[_0xf88d('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0xf88d('0x1')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xf88d('0x2')},'startAt':{'type':Sequelize[_0xf88d('0x3')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xf88d('0x4')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0xf88d('0x5')]('years',_0xf88d('0x6'),_0xf88d('0x7'),_0xf88d('0x8'),_0xf88d('0x9'),_0xf88d('0xa'),_0xf88d('0xb')),'allowNull':![],'defaultValue':_0xf88d('0x9')},'output':{'type':Sequelize[_0xf88d('0x5')](_0xf88d('0xc'),'pdf',_0xf88d('0xd')),'allowNull':![],'defaultValue':_0xf88d('0xc')},'type':{'type':Sequelize[_0xf88d('0x5')](_0xf88d('0xe'),_0xf88d('0xf')),'allowNull':![],'defaultValue':_0xf88d('0xe')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0xf88d('0x1')]},'cc':{'type':Sequelize[_0xf88d('0x10')]},'bcc':{'type':Sequelize[_0xf88d('0x10')]},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};