Built motion from commit 092f8824.|2.5.49
[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 _0x1f84=['isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','sequelize','lodash','util','exports','STRING','name','TEXT','long','isObjectLike','setDataValue','formData'];(function(_0xeaa8cf,_0x310752){var _0x559df3=function(_0x56f5ca){while(--_0x56f5ca){_0xeaa8cf['push'](_0xeaa8cf['shift']());}};_0x559df3(++_0x310752);}(_0x1f84,0x125));var _0x41f8=function(_0x27b49f,_0x5609d2){_0x27b49f=_0x27b49f-0x0;var _0x1b75c2=_0x1f84[_0x27b49f];return _0x1b75c2;};'use strict';var Sequelize=require(_0x41f8('0x0'));var _=require(_0x41f8('0x1'));var util=require(_0x41f8('0x2'));module[_0x41f8('0x3')]={'name':{'type':Sequelize[_0x41f8('0x4')],'unique':_0x41f8('0x5')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x41f8('0x6')](_0x41f8('0x7')),'set':function(_0x12c0ca){if(_[_0x41f8('0x8')](_0x12c0ca)){this[_0x41f8('0x9')](_0x41f8('0xa'),JSON['stringify'](_0x12c0ca));}else if(_[_0x41f8('0xb')](_0x12c0ca)){this[_0x41f8('0x9')](_0x41f8('0xa'),_0x12c0ca);}else{this[_0x41f8('0x9')]('formData',util[_0x41f8('0xc')](_0x41f8('0xd'),this['getDataValue']('name')||'',this[_0x41f8('0xe')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x41f8('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x41f8('0xf')],'defaultValue':![]}};