Built motion from commit ab870f9e.|2.5.44
[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 _0x25d7=['TEXT','long','setDataValue','formData','stringify','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','sequelize','util','exports','STRING','name'];(function(_0xd26500,_0xfa64ae){var _0x16cdba=function(_0x398c67){while(--_0x398c67){_0xd26500['push'](_0xd26500['shift']());}};_0x16cdba(++_0xfa64ae);}(_0x25d7,0x191));var _0x725d=function(_0x3b3a82,_0x53b5e0){_0x3b3a82=_0x3b3a82-0x0;var _0x267063=_0x25d7[_0x3b3a82];return _0x267063;};'use strict';var Sequelize=require(_0x725d('0x0'));var _=require('lodash');var util=require(_0x725d('0x1'));module[_0x725d('0x2')]={'name':{'type':Sequelize[_0x725d('0x3')],'unique':_0x725d('0x4')},'description':{'type':Sequelize[_0x725d('0x3')]},'formData':{'type':Sequelize[_0x725d('0x5')](_0x725d('0x6')),'set':function(_0x442622){if(_['isObjectLike'](_0x442622)){this[_0x725d('0x7')](_0x725d('0x8'),JSON[_0x725d('0x9')](_0x442622));}else if(_['isString'](_0x442622)){this[_0x725d('0x7')](_0x725d('0x8'),_0x442622);}else{this[_0x725d('0x7')](_0x725d('0x8'),util[_0x725d('0xa')](_0x725d('0xb'),this['getDataValue'](_0x725d('0x4'))||'',this[_0x725d('0xc')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x725d('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};