Built motion from commit (unavailable).|2.4.19
[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 _0xc7d8=['isObjectLike','stringify','isString','setDataValue','formData','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','sequelize','lodash','STRING','name','TEXT','long'];(function(_0x3e84ba,_0xb45c41){var _0x18a016=function(_0x53199c){while(--_0x53199c){_0x3e84ba['push'](_0x3e84ba['shift']());}};_0x18a016(++_0xb45c41);}(_0xc7d8,0x19e));var _0x8c7d=function(_0x53e02c,_0xd62b12){_0x53e02c=_0x53e02c-0x0;var _0xa5e443=_0xc7d8[_0x53e02c];return _0xa5e443;};'use strict';var Sequelize=require(_0x8c7d('0x0'));var _=require(_0x8c7d('0x1'));var util=require('util');module['exports']={'name':{'type':Sequelize[_0x8c7d('0x2')],'unique':_0x8c7d('0x3')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x8c7d('0x4')](_0x8c7d('0x5')),'set':function(_0x45ba3a){if(_[_0x8c7d('0x6')](_0x45ba3a)){this['setDataValue']('formData',JSON[_0x8c7d('0x7')](_0x45ba3a));}else if(_[_0x8c7d('0x8')](_0x45ba3a)){this['setDataValue']('formData',_0x45ba3a);}else{this[_0x8c7d('0x9')](_0x8c7d('0xa'),util['format'](_0x8c7d('0xb'),this[_0x8c7d('0xc')]('name')||'',this[_0x8c7d('0xc')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x8c7d('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x8c7d('0xd')],'defaultValue':![]}};