Built motion from commit 7a4eb044.|2.5.36
[motion2.git] / server / api / jscriptyProject / jscriptyProject.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 _0x05b1=['stringify','isString','format','getDataValue','name','sequelize','lodash','util','exports','STRING','TEXT','long','isObjectLike','setDataValue','formData'];(function(_0x41706e,_0xa1dd6b){var _0x3a9ea6=function(_0x51fa68){while(--_0x51fa68){_0x41706e['push'](_0x41706e['shift']());}};_0x3a9ea6(++_0xa1dd6b);}(_0x05b1,0xc8));var _0x105b=function(_0x5bd151,_0x853287){_0x5bd151=_0x5bd151-0x0;var _0x242118=_0x05b1[_0x5bd151];return _0x242118;};'use strict';var Sequelize=require(_0x105b('0x0'));var _=require(_0x105b('0x1'));var util=require(_0x105b('0x2'));module[_0x105b('0x3')]={'name':{'type':Sequelize[_0x105b('0x4')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x105b('0x5')](_0x105b('0x6')),'set':function(_0x574023){if(_[_0x105b('0x7')](_0x574023)){this[_0x105b('0x8')](_0x105b('0x9'),JSON[_0x105b('0xa')](_0x574023));}else if(_[_0x105b('0xb')](_0x574023)){this[_0x105b('0x8')](_0x105b('0x9'),_0x574023);}else{this[_0x105b('0x8')](_0x105b('0x9'),util[_0x105b('0xc')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x105b('0xd')](_0x105b('0xe'))||'',this[_0x105b('0xd')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};