Built motion from commit 19a84241.|2.5.34
[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 _0xa3b0=['formData','stringify','isString','setDataValue','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','sequelize','lodash','exports','STRING','name','TEXT','long','isObjectLike'];(function(_0x333e86,_0x37fa2d){var _0x3419e4=function(_0x55fb11){while(--_0x55fb11){_0x333e86['push'](_0x333e86['shift']());}};_0x3419e4(++_0x37fa2d);}(_0xa3b0,0x108));var _0x0a3b=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0xa3b0[_0x2641f9];return _0x585741;};'use strict';var Sequelize=require(_0x0a3b('0x0'));var _=require(_0x0a3b('0x1'));var util=require('util');module[_0x0a3b('0x2')]={'name':{'type':Sequelize[_0x0a3b('0x3')],'unique':_0x0a3b('0x4')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x0a3b('0x5')](_0x0a3b('0x6')),'set':function(_0x512706){if(_[_0x0a3b('0x7')](_0x512706)){this['setDataValue'](_0x0a3b('0x8'),JSON[_0x0a3b('0x9')](_0x512706));}else if(_[_0x0a3b('0xa')](_0x512706)){this[_0x0a3b('0xb')](_0x0a3b('0x8'),_0x512706);}else{this['setDataValue'](_0x0a3b('0x8'),util[_0x0a3b('0xc')](_0x0a3b('0xd'),this['getDataValue']('name')||'',this[_0x0a3b('0xe')](_0x0a3b('0xf'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};