758c7fb00450ab2d824018ae25290e9df3c8c0af
[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 _0x3124=['description','BOOLEAN','sequelize','lodash','util','exports','STRING','isObjectLike','setDataValue','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue'];(function(_0x5224ba,_0x3fb4e1){var _0x459bd2=function(_0x61be43){while(--_0x61be43){_0x5224ba['push'](_0x5224ba['shift']());}};_0x459bd2(++_0x3fb4e1);}(_0x3124,0xc5));var _0x4312=function(_0x1ad4a5,_0x1d2641){_0x1ad4a5=_0x1ad4a5-0x0;var _0x14b6bc=_0x3124[_0x1ad4a5];return _0x14b6bc;};'use strict';var Sequelize=require(_0x4312('0x0'));var _=require(_0x4312('0x1'));var util=require(_0x4312('0x2'));module[_0x4312('0x3')]={'name':{'type':Sequelize[_0x4312('0x4')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x2a444a){if(_[_0x4312('0x5')](_0x2a444a)){this[_0x4312('0x6')](_0x4312('0x7'),JSON['stringify'](_0x2a444a));}else if(_['isString'](_0x2a444a)){this[_0x4312('0x6')](_0x4312('0x7'),_0x2a444a);}else{this[_0x4312('0x6')]('formData',util[_0x4312('0x8')](_0x4312('0x9'),this[_0x4312('0xa')]('name')||'',this[_0x4312('0xa')](_0x4312('0xb'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x4312('0xc')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};