615349c048ea63532f3775fb09fc3330550a0fb9
[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 _0xa9e7=['STRING','BOOLEAN','DATE','INTEGER','years','quarters','weeks','days','minutes','ENUM','csv','pdf','xlsx','custom','default','TEXT','sequelize','exports'];(function(_0x111556,_0x4426b0){var _0x530b3e=function(_0x4feda6){while(--_0x4feda6){_0x111556['push'](_0x111556['shift']());}};_0x530b3e(++_0x4426b0);}(_0xa9e7,0xb2));var _0x7a9e=function(_0x3c408a,_0x4d4977){_0x3c408a=_0x3c408a-0x0;var _0x5d8f09=_0xa9e7[_0x3c408a];return _0x5d8f09;};'use strict';var Sequelize=require(_0x7a9e('0x0'));module[_0x7a9e('0x1')]={'name':{'type':Sequelize[_0x7a9e('0x2')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'active':{'type':Sequelize[_0x7a9e('0x3')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0x7a9e('0x2')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0x7a9e('0x4')],'allowNull':![]},'endAt':{'type':Sequelize[_0x7a9e('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x7a9e('0x5')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM'](_0x7a9e('0x6'),_0x7a9e('0x7'),'months',_0x7a9e('0x8'),_0x7a9e('0x9'),'hours',_0x7a9e('0xa')),'allowNull':![],'defaultValue':_0x7a9e('0x9')},'output':{'type':Sequelize[_0x7a9e('0xb')](_0x7a9e('0xc'),_0x7a9e('0xd'),_0x7a9e('0xe')),'allowNull':![],'defaultValue':_0x7a9e('0xc')},'type':{'type':Sequelize[_0x7a9e('0xb')](_0x7a9e('0xf'),_0x7a9e('0x10')),'allowNull':![],'defaultValue':_0x7a9e('0xf')},'sendMail':{'type':Sequelize[_0x7a9e('0x3')],'defaultValue':![]},'email':{'type':Sequelize[_0x7a9e('0x2')]},'cc':{'type':Sequelize[_0x7a9e('0x11')]},'bcc':{'type':Sequelize[_0x7a9e('0x11')]},'sendIfEmpty':{'type':Sequelize[_0x7a9e('0x3')],'defaultValue':!![]}};