cf121366471968b405e5da62481bc1793a67ca92
[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 _0x3738=['STRING','name','isObjectLike','setDataValue','isString','formData','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','util','exports'];(function(_0x4c3bae,_0x52722f){var _0x42aaca=function(_0xf68c55){while(--_0xf68c55){_0x4c3bae['push'](_0x4c3bae['shift']());}};_0x42aaca(++_0x52722f);}(_0x3738,0x142));var _0x8373=function(_0x5a8af0,_0x1d82c1){_0x5a8af0=_0x5a8af0-0x0;var _0x1badd6=_0x3738[_0x5a8af0];return _0x1badd6;};'use strict';var Sequelize=require(_0x8373('0x0'));var _=require('lodash');var util=require(_0x8373('0x1'));module[_0x8373('0x2')]={'name':{'type':Sequelize[_0x8373('0x3')],'unique':_0x8373('0x4')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x27354b){if(_[_0x8373('0x5')](_0x27354b)){this[_0x8373('0x6')]('formData',JSON['stringify'](_0x27354b));}else if(_[_0x8373('0x7')](_0x27354b)){this[_0x8373('0x6')]('formData',_0x27354b);}else{this[_0x8373('0x6')](_0x8373('0x8'),util['format'](_0x8373('0x9'),this['getDataValue'](_0x8373('0x4'))||'',this[_0x8373('0xa')](_0x8373('0xb'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x8373('0xc')],'defaultValue':![]}};