e89831a3c47ad20c320071000b3a7c2c7023a92c
[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 _0x3b2c=['setDataValue','formData','stringify','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','lodash','util','exports','STRING','name','long'];(function(_0x399aac,_0x162856){var _0x2b902e=function(_0x5a7115){while(--_0x5a7115){_0x399aac['push'](_0x399aac['shift']());}};_0x2b902e(++_0x162856);}(_0x3b2c,0x1e8));var _0xc3b2=function(_0xcfc33c,_0x121aa8){_0xcfc33c=_0xcfc33c-0x0;var _0x295d21=_0x3b2c[_0xcfc33c];return _0x295d21;};'use strict';var Sequelize=require('sequelize');var _=require(_0xc3b2('0x0'));var util=require(_0xc3b2('0x1'));module[_0xc3b2('0x2')]={'name':{'type':Sequelize[_0xc3b2('0x3')],'unique':_0xc3b2('0x4')},'description':{'type':Sequelize[_0xc3b2('0x3')]},'formData':{'type':Sequelize['TEXT'](_0xc3b2('0x5')),'set':function(_0x131223){if(_['isObjectLike'](_0x131223)){this[_0xc3b2('0x6')](_0xc3b2('0x7'),JSON[_0xc3b2('0x8')](_0x131223));}else if(_['isString'](_0x131223)){this['setDataValue'](_0xc3b2('0x7'),_0x131223);}else{this[_0xc3b2('0x6')](_0xc3b2('0x7'),util[_0xc3b2('0x9')](_0xc3b2('0xa'),this['getDataValue'](_0xc3b2('0x4'))||'',this[_0xc3b2('0xb')](_0xc3b2('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};