Built motion from commit e2351160.|2.5.50
[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 _0xaee4=['STRING','TEXT','long','setDataValue','formData','stringify','format','getDataValue','name','description','BOOLEAN','sequelize','lodash','util','exports'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xaee4,0x1eb));var _0x4aee=function(_0x464f9b,_0x11c1d2){_0x464f9b=_0x464f9b-0x0;var _0x2e6766=_0xaee4[_0x464f9b];return _0x2e6766;};'use strict';var Sequelize=require(_0x4aee('0x0'));var _=require(_0x4aee('0x1'));var util=require(_0x4aee('0x2'));module[_0x4aee('0x3')]={'name':{'type':Sequelize[_0x4aee('0x4')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x4aee('0x5')](_0x4aee('0x6')),'set':function(_0x50d9c0){if(_['isObjectLike'](_0x50d9c0)){this[_0x4aee('0x7')](_0x4aee('0x8'),JSON[_0x4aee('0x9')](_0x50d9c0));}else if(_['isString'](_0x50d9c0)){this[_0x4aee('0x7')](_0x4aee('0x8'),_0x50d9c0);}else{this['setDataValue'](_0x4aee('0x8'),util[_0x4aee('0xa')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x4aee('0xb')](_0x4aee('0xc'))||'',this['getDataValue'](_0x4aee('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x4aee('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x4aee('0xe')],'defaultValue':![]}};