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