f1d85d99233fac1f009ebb42eafcffe7e78a9d58
[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 _0xfac1=['format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','lodash','util','exports','STRING','name','TEXT','long','isObjectLike','formData','stringify','isString','setDataValue'];(function(_0x2f463f,_0x4d9f56){var _0x3673a3=function(_0x48200f){while(--_0x48200f){_0x2f463f['push'](_0x2f463f['shift']());}};_0x3673a3(++_0x4d9f56);}(_0xfac1,0x71));var _0x1fac=function(_0x74d12d,_0x1970a1){_0x74d12d=_0x74d12d-0x0;var _0x325250=_0xfac1[_0x74d12d];return _0x325250;};'use strict';var Sequelize=require(_0x1fac('0x0'));var _=require(_0x1fac('0x1'));var util=require(_0x1fac('0x2'));module[_0x1fac('0x3')]={'name':{'type':Sequelize[_0x1fac('0x4')],'unique':_0x1fac('0x5')},'description':{'type':Sequelize[_0x1fac('0x4')]},'formData':{'type':Sequelize[_0x1fac('0x6')](_0x1fac('0x7')),'set':function(_0x4e31cd){if(_[_0x1fac('0x8')](_0x4e31cd)){this['setDataValue'](_0x1fac('0x9'),JSON[_0x1fac('0xa')](_0x4e31cd));}else if(_[_0x1fac('0xb')](_0x4e31cd)){this[_0x1fac('0xc')](_0x1fac('0x9'),_0x4e31cd);}else{this[_0x1fac('0xc')]('formData',util[_0x1fac('0xd')](_0x1fac('0xe'),this[_0x1fac('0xf')](_0x1fac('0x5'))||'',this[_0x1fac('0xf')](_0x1fac('0x10'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x1fac('0x11')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x1fac('0x11')],'defaultValue':![]}};