4e1f9ba9b8bf642ee7ba596ff5bd0e60e8ee5efa
[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 _0x3f66=['BOOLEAN','lodash','exports','STRING','name','long','isObjectLike','formData','isString','format','getDataValue','description'];(function(_0x492daf,_0x41afe0){var _0x540390=function(_0x4b00d7){while(--_0x4b00d7){_0x492daf['push'](_0x492daf['shift']());}};_0x540390(++_0x41afe0);}(_0x3f66,0xf1));var _0x63f6=function(_0x424ddb,_0x5b68b3){_0x424ddb=_0x424ddb-0x0;var _0xcd6c28=_0x3f66[_0x424ddb];return _0xcd6c28;};'use strict';var Sequelize=require('sequelize');var _=require(_0x63f6('0x0'));var util=require('util');module[_0x63f6('0x1')]={'name':{'type':Sequelize[_0x63f6('0x2')],'unique':_0x63f6('0x3')},'description':{'type':Sequelize[_0x63f6('0x2')]},'formData':{'type':Sequelize['TEXT'](_0x63f6('0x4')),'set':function(_0x59c677){if(_[_0x63f6('0x5')](_0x59c677)){this['setDataValue'](_0x63f6('0x6'),JSON['stringify'](_0x59c677));}else if(_[_0x63f6('0x7')](_0x59c677)){this['setDataValue']('formData',_0x59c677);}else{this['setDataValue'](_0x63f6('0x6'),util[_0x63f6('0x8')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x63f6('0x9')](_0x63f6('0x3'))||'',this['getDataValue'](_0x63f6('0xa'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x63f6('0xb')],'defaultValue':![]}};