Built motion from commit 497d3d92.|2.5.43
[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 _0x0d38=['isObjectLike','formData','stringify','isString','setDataValue','getDataValue','name','description','sequelize','lodash','util','exports','STRING','TEXT','long'];(function(_0x3fa37f,_0x397f16){var _0x5a01d5=function(_0xa23c65){while(--_0xa23c65){_0x3fa37f['push'](_0x3fa37f['shift']());}};_0x5a01d5(++_0x397f16);}(_0x0d38,0x1ca));var _0x80d3=function(_0x3f9224,_0x56f9d0){_0x3f9224=_0x3f9224-0x0;var _0x2bf16d=_0x0d38[_0x3f9224];return _0x2bf16d;};'use strict';var Sequelize=require(_0x80d3('0x0'));var _=require(_0x80d3('0x1'));var util=require(_0x80d3('0x2'));module[_0x80d3('0x3')]={'name':{'type':Sequelize[_0x80d3('0x4')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x80d3('0x5')](_0x80d3('0x6')),'set':function(_0x392ed3){if(_[_0x80d3('0x7')](_0x392ed3)){this['setDataValue'](_0x80d3('0x8'),JSON[_0x80d3('0x9')](_0x392ed3));}else if(_[_0x80d3('0xa')](_0x392ed3)){this[_0x80d3('0xb')]('formData',_0x392ed3);}else{this[_0x80d3('0xb')](_0x80d3('0x8'),util['format']('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x80d3('0xc')](_0x80d3('0xd'))||'',this[_0x80d3('0xc')](_0x80d3('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};