1ecff341be4d0d813ab131dcbc835961232ca415
[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 _0x7bf8=['isObjectLike','setDataValue','formData','isString','format','getDataValue','description','BOOLEAN','sequelize','lodash','util','exports','name','long'];(function(_0x131e14,_0x320cbc){var _0x53b387=function(_0x9a9548){while(--_0x9a9548){_0x131e14['push'](_0x131e14['shift']());}};_0x53b387(++_0x320cbc);}(_0x7bf8,0x94));var _0x87bf=function(_0x111feb,_0x5d3764){_0x111feb=_0x111feb-0x0;var _0x555c24=_0x7bf8[_0x111feb];return _0x555c24;};'use strict';var Sequelize=require(_0x87bf('0x0'));var _=require(_0x87bf('0x1'));var util=require(_0x87bf('0x2'));module[_0x87bf('0x3')]={'name':{'type':Sequelize['STRING'],'unique':_0x87bf('0x4')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT'](_0x87bf('0x5')),'set':function(_0x3be283){if(_[_0x87bf('0x6')](_0x3be283)){this[_0x87bf('0x7')](_0x87bf('0x8'),JSON['stringify'](_0x3be283));}else if(_[_0x87bf('0x9')](_0x3be283)){this['setDataValue'](_0x87bf('0x8'),_0x3be283);}else{this['setDataValue']('formData',util[_0x87bf('0xa')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x87bf('0xb')](_0x87bf('0x4'))||'',this[_0x87bf('0xb')](_0x87bf('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x87bf('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x87bf('0xd')],'defaultValue':![]}};