Built motion from commit d5e4af8c.|2.6.23
[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 _0xc27a=['util','exports','STRING','TEXT','long','isObjectLike','setDataValue','formData','format','getDataValue','name','description','sequelize','lodash'];(function(_0x2d5a2e,_0x31fced){var _0x5bf02b=function(_0x2cfd11){while(--_0x2cfd11){_0x2d5a2e['push'](_0x2d5a2e['shift']());}};_0x5bf02b(++_0x31fced);}(_0xc27a,0xb4));var _0xac27=function(_0x281e5e,_0xf320e2){_0x281e5e=_0x281e5e-0x0;var _0x5a22d2=_0xc27a[_0x281e5e];return _0x5a22d2;};'use strict';var Sequelize=require(_0xac27('0x0'));var _=require(_0xac27('0x1'));var util=require(_0xac27('0x2'));module[_0xac27('0x3')]={'name':{'type':Sequelize[_0xac27('0x4')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0xac27('0x5')](_0xac27('0x6')),'set':function(_0x394bcd){if(_[_0xac27('0x7')](_0x394bcd)){this[_0xac27('0x8')](_0xac27('0x9'),JSON['stringify'](_0x394bcd));}else if(_['isString'](_0x394bcd)){this[_0xac27('0x8')](_0xac27('0x9'),_0x394bcd);}else{this['setDataValue'](_0xac27('0x9'),util[_0xac27('0xa')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0xac27('0xb')](_0xac27('0xc'))||'',this[_0xac27('0xb')](_0xac27('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};