Built motion from commit d1eab355.|2.6.28
[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 _0xc08f=['months','weeks','days','minutes','csv','custom','default','TEXT','sequelize','STRING','BOOLEAN','0\x200\x20*\x20*\x20*','DATE','ENUM','years','quarters'];(function(_0x27b0e0,_0x45ac9a){var _0x238c0d=function(_0x25e1f6){while(--_0x25e1f6){_0x27b0e0['push'](_0x27b0e0['shift']());}};_0x238c0d(++_0x45ac9a);}(_0xc08f,0x88));var _0xfc08=function(_0x5e0476,_0xfbe19){_0x5e0476=_0x5e0476-0x0;var _0x392179=_0xc08f[_0x5e0476];return _0x392179;};'use strict';var Sequelize=require(_0xfc08('0x0'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0xfc08('0x1')]},'active':{'type':Sequelize[_0xfc08('0x2')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0xfc08('0x3')},'startAt':{'type':Sequelize[_0xfc08('0x4')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0xfc08('0x5')](_0xfc08('0x6'),_0xfc08('0x7'),_0xfc08('0x8'),_0xfc08('0x9'),_0xfc08('0xa'),'hours',_0xfc08('0xb')),'allowNull':![],'defaultValue':_0xfc08('0xa')},'output':{'type':Sequelize['ENUM'](_0xfc08('0xc'),'pdf','xlsx'),'allowNull':![],'defaultValue':_0xfc08('0xc')},'type':{'type':Sequelize[_0xfc08('0x5')](_0xfc08('0xd'),_0xfc08('0xe')),'allowNull':![],'defaultValue':_0xfc08('0xd')},'sendMail':{'type':Sequelize[_0xfc08('0x2')],'defaultValue':![]},'email':{'type':Sequelize['STRING']},'cc':{'type':Sequelize[_0xfc08('0xf')]},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};