81c336e7c02d2e27b95a94184808f71b86c82b0f
[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 _0xf174=['TEXT','exports','STRING','INTEGER','ENUM','years','quarters','months','weeks','minutes','csv','pdf','custom','default','BOOLEAN'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xf174,0x1a5));var _0x4f17=function(_0x20c432,_0x224c52){_0x20c432=_0x20c432-0x0;var _0x5b02e9=_0xf174[_0x20c432];return _0x5b02e9;};'use strict';var Sequelize=require('sequelize');module[_0x4f17('0x0')]={'name':{'type':Sequelize[_0x4f17('0x1')],'allowNull':![]},'description':{'type':Sequelize[_0x4f17('0x1')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x4f17('0x1')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x4f17('0x2')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x4f17('0x3')](_0x4f17('0x4'),_0x4f17('0x5'),_0x4f17('0x6'),_0x4f17('0x7'),'days','hours',_0x4f17('0x8')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0x4f17('0x3')](_0x4f17('0x9'),_0x4f17('0xa'),'xlsx'),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize[_0x4f17('0x3')](_0x4f17('0xb'),_0x4f17('0xc')),'allowNull':![],'defaultValue':_0x4f17('0xb')},'sendMail':{'type':Sequelize[_0x4f17('0xd')],'defaultValue':![]},'email':{'type':Sequelize['STRING']},'cc':{'type':Sequelize[_0x4f17('0xe')]},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize[_0x4f17('0xd')],'defaultValue':!![]}};