cfac5b0e006a67aba36792eadc889eec9738037c
[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 _0xbd51=['xlsx','custom','default','TEXT','sequelize','STRING','BOOLEAN','ENUM','years','quarters','weeks','days','hours','minutes','csv'];(function(_0x27f19f,_0x5fb736){var _0xb26ca1=function(_0x44b1bf){while(--_0x44b1bf){_0x27f19f['push'](_0x27f19f['shift']());}};_0xb26ca1(++_0x5fb736);}(_0xbd51,0x1a8));var _0x1bd5=function(_0x264836,_0x51379c){_0x264836=_0x264836-0x0;var _0x4eeb6c=_0xbd51[_0x264836];return _0x4eeb6c;};'use strict';var Sequelize=require(_0x1bd5('0x0'));module['exports']={'name':{'type':Sequelize[_0x1bd5('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0x1bd5('0x1')]},'active':{'type':Sequelize[_0x1bd5('0x2')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x1bd5('0x1')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x1bd5('0x3')](_0x1bd5('0x4'),_0x1bd5('0x5'),'months',_0x1bd5('0x6'),_0x1bd5('0x7'),_0x1bd5('0x8'),_0x1bd5('0x9')),'allowNull':![],'defaultValue':_0x1bd5('0x7')},'output':{'type':Sequelize['ENUM'](_0x1bd5('0xa'),'pdf',_0x1bd5('0xb')),'allowNull':![],'defaultValue':_0x1bd5('0xa')},'type':{'type':Sequelize[_0x1bd5('0x3')](_0x1bd5('0xc'),_0x1bd5('0xd')),'allowNull':![],'defaultValue':_0x1bd5('0xc')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0x1bd5('0x1')]},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize[_0x1bd5('0xe')]},'sendIfEmpty':{'type':Sequelize[_0x1bd5('0x2')],'defaultValue':!![]}};