Built motion from commit 9d0783e6.|2.6.13
[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 _0x1d64=['util','exports','STRING','name','TEXT','long','isObjectLike','formData','stringify','isString','setDataValue','format','getDataValue','BOOLEAN'];(function(_0x54a783,_0xa4585b){var _0x190c10=function(_0x3a6731){while(--_0x3a6731){_0x54a783['push'](_0x54a783['shift']());}};_0x190c10(++_0xa4585b);}(_0x1d64,0x126));var _0x41d6=function(_0x334f9a,_0x542f01){_0x334f9a=_0x334f9a-0x0;var _0x2b219d=_0x1d64[_0x334f9a];return _0x2b219d;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');var util=require(_0x41d6('0x0'));module[_0x41d6('0x1')]={'name':{'type':Sequelize[_0x41d6('0x2')],'unique':_0x41d6('0x3')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x41d6('0x4')](_0x41d6('0x5')),'set':function(_0x19bc9e){if(_[_0x41d6('0x6')](_0x19bc9e)){this['setDataValue'](_0x41d6('0x7'),JSON[_0x41d6('0x8')](_0x19bc9e));}else if(_[_0x41d6('0x9')](_0x19bc9e)){this[_0x41d6('0xa')](_0x41d6('0x7'),_0x19bc9e);}else{this[_0x41d6('0xa')](_0x41d6('0x7'),util[_0x41d6('0xb')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x41d6('0xc')]('name')||'',this[_0x41d6('0xc')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x41d6('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};