432a2825413deaab98690919241f471b42ff86f3
[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 _0x0831=['quarters','months','weeks','days','hours','minutes','csv','pdf','xlsx','custom','STRING','TEXT','exports','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','INTEGER','ENUM','years'];(function(_0x12fc8d,_0x19ee33){var _0x3f9d04=function(_0x52e51c){while(--_0x52e51c){_0x12fc8d['push'](_0x12fc8d['shift']());}};_0x3f9d04(++_0x19ee33);}(_0x0831,0x1d4));var _0x1083=function(_0x5783f4,_0x4a9e0a){_0x5783f4=_0x5783f4-0x0;var _0x28e380=_0x0831[_0x5783f4];return _0x28e380;};'use strict';var Sequelize=require('sequelize');module[_0x1083('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize[_0x1083('0x1')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x1083('0x2')},'startAt':{'type':Sequelize[_0x1083('0x3')],'allowNull':![]},'endAt':{'type':Sequelize[_0x1083('0x3')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x1083('0x4')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x1083('0x5')](_0x1083('0x6'),_0x1083('0x7'),_0x1083('0x8'),_0x1083('0x9'),_0x1083('0xa'),_0x1083('0xb'),_0x1083('0xc')),'allowNull':![],'defaultValue':_0x1083('0xa')},'output':{'type':Sequelize['ENUM'](_0x1083('0xd'),_0x1083('0xe'),_0x1083('0xf')),'allowNull':![],'defaultValue':_0x1083('0xd')},'type':{'type':Sequelize[_0x1083('0x5')](_0x1083('0x10'),'default'),'allowNull':![],'defaultValue':_0x1083('0x10')},'sendMail':{'type':Sequelize[_0x1083('0x1')],'defaultValue':![]},'email':{'type':Sequelize[_0x1083('0x11')]},'cc':{'type':Sequelize[_0x1083('0x12')]},'bcc':{'type':Sequelize[_0x1083('0x12')]},'sendIfEmpty':{'type':Sequelize[_0x1083('0x1')],'defaultValue':!![]}};