011fd006b51cb11fb31009fe5bcc92df6372d6c6
[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 _0x8f2e=['isString','formData','format','getDataValue','name','BOOLEAN','sequelize','lodash','util','exports','STRING','TEXT','long','setDataValue'];(function(_0x23c741,_0x4ed6f2){var _0x3bed53=function(_0x25921b){while(--_0x25921b){_0x23c741['push'](_0x23c741['shift']());}};_0x3bed53(++_0x4ed6f2);}(_0x8f2e,0x1e2));var _0xe8f2=function(_0x32339d,_0x32eea5){_0x32339d=_0x32339d-0x0;var _0x58cf89=_0x8f2e[_0x32339d];return _0x58cf89;};'use strict';var Sequelize=require(_0xe8f2('0x0'));var _=require(_0xe8f2('0x1'));var util=require(_0xe8f2('0x2'));module[_0xe8f2('0x3')]={'name':{'type':Sequelize[_0xe8f2('0x4')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0xe8f2('0x5')](_0xe8f2('0x6')),'set':function(_0x2b016d){if(_['isObjectLike'](_0x2b016d)){this[_0xe8f2('0x7')]('formData',JSON['stringify'](_0x2b016d));}else if(_[_0xe8f2('0x8')](_0x2b016d)){this[_0xe8f2('0x7')]('formData',_0x2b016d);}else{this['setDataValue'](_0xe8f2('0x9'),util[_0xe8f2('0xa')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0xe8f2('0xb')](_0xe8f2('0xc'))||'',this[_0xe8f2('0xb')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xe8f2('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xe8f2('0xd')],'defaultValue':![]}};