4d238fbd62ec125faec387f97f3289217a924d98
[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 _0xf19b=['getDataValue','description','BOOLEAN','sequelize','util','exports','name','TEXT','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}'];(function(_0x2d78fd,_0xf4a84e){var _0xfd0e03=function(_0x241b9d){while(--_0x241b9d){_0x2d78fd['push'](_0x2d78fd['shift']());}};_0xfd0e03(++_0xf4a84e);}(_0xf19b,0x99));var _0xbf19=function(_0x3ab9ee,_0x4a74b8){_0x3ab9ee=_0x3ab9ee-0x0;var _0x82ee88=_0xf19b[_0x3ab9ee];return _0x82ee88;};'use strict';var Sequelize=require(_0xbf19('0x0'));var _=require('lodash');var util=require(_0xbf19('0x1'));module[_0xbf19('0x2')]={'name':{'type':Sequelize['STRING'],'unique':_0xbf19('0x3')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0xbf19('0x4')]('long'),'set':function(_0x2a1a90){if(_[_0xbf19('0x5')](_0x2a1a90)){this[_0xbf19('0x6')](_0xbf19('0x7'),JSON[_0xbf19('0x8')](_0x2a1a90));}else if(_[_0xbf19('0x9')](_0x2a1a90)){this[_0xbf19('0x6')](_0xbf19('0x7'),_0x2a1a90);}else{this[_0xbf19('0x6')]('formData',util[_0xbf19('0xa')](_0xbf19('0xb'),this[_0xbf19('0xc')](_0xbf19('0x3'))||'',this[_0xbf19('0xc')](_0xbf19('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xbf19('0xe')],'defaultValue':![]}};