Built motion from commit 3e059bc2.|2.5.32
[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 _0x1ef1=['ENUM','years','quarters','months','weeks','days','hours','minutes','csv','pdf','xlsx','custom','BOOLEAN','STRING','0\x200\x20*\x20*\x20*','INTEGER'];(function(_0x30cf8d,_0x286354){var _0x92e924=function(_0x5ce89b){while(--_0x5ce89b){_0x30cf8d['push'](_0x30cf8d['shift']());}};_0x92e924(++_0x286354);}(_0x1ef1,0x16d));var _0x11ef=function(_0x3caff9,_0x55bd56){_0x3caff9=_0x3caff9-0x0;var _0x70ec92=_0x1ef1[_0x3caff9];return _0x70ec92;};'use strict';var Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x11ef('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0x11ef('0x0')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x11ef('0x1')},'startAt':{'type':Sequelize['DATE'],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x11ef('0x2')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x11ef('0x3')](_0x11ef('0x4'),_0x11ef('0x5'),_0x11ef('0x6'),_0x11ef('0x7'),_0x11ef('0x8'),_0x11ef('0x9'),_0x11ef('0xa')),'allowNull':![],'defaultValue':_0x11ef('0x8')},'output':{'type':Sequelize[_0x11ef('0x3')](_0x11ef('0xb'),_0x11ef('0xc'),_0x11ef('0xd')),'allowNull':![],'defaultValue':_0x11ef('0xb')},'type':{'type':Sequelize[_0x11ef('0x3')](_0x11ef('0xe'),'default'),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0x11ef('0xf')],'defaultValue':![]},'email':{'type':Sequelize[_0x11ef('0x0')]},'cc':{'type':Sequelize['TEXT']},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize[_0x11ef('0xf')],'defaultValue':!![]}};