494b09047ed5f38997c6b72d51efaa1d3faeab6a
[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 _0x52b4=['stringify','isString','setDataValue','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name','description','BOOLEAN','sequelize','lodash','util','STRING','TEXT','long'];(function(_0x31258f,_0x125dbc){var _0x26cb7b=function(_0x406540){while(--_0x406540){_0x31258f['push'](_0x31258f['shift']());}};_0x26cb7b(++_0x125dbc);}(_0x52b4,0x18a));var _0x452b=function(_0x5602ef,_0x2ba911){_0x5602ef=_0x5602ef-0x0;var _0x1f4782=_0x52b4[_0x5602ef];return _0x1f4782;};'use strict';var Sequelize=require(_0x452b('0x0'));var _=require(_0x452b('0x1'));var util=require(_0x452b('0x2'));module['exports']={'name':{'type':Sequelize[_0x452b('0x3')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x452b('0x4')](_0x452b('0x5')),'set':function(_0x42abad){if(_['isObjectLike'](_0x42abad)){this['setDataValue']('formData',JSON[_0x452b('0x6')](_0x42abad));}else if(_[_0x452b('0x7')](_0x42abad)){this[_0x452b('0x8')](_0x452b('0x9'),_0x42abad);}else{this[_0x452b('0x8')](_0x452b('0x9'),util[_0x452b('0xa')](_0x452b('0xb'),this[_0x452b('0xc')](_0x452b('0xd'))||'',this['getDataValue'](_0x452b('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x452b('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x452b('0xf')],'defaultValue':![]}};