e1ef27b0caf99dfb70eec29a11fc1a077c1b550b
[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 _0x1182=['format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','lodash','util','exports','STRING','name','long','isObjectLike','setDataValue','formData','isString'];(function(_0x5ebfa3,_0x592c6d){var _0x489664=function(_0x3a4df5){while(--_0x3a4df5){_0x5ebfa3['push'](_0x5ebfa3['shift']());}};_0x489664(++_0x592c6d);}(_0x1182,0x146));var _0x2118=function(_0x2c4bc3,_0x34f08b){_0x2c4bc3=_0x2c4bc3-0x0;var _0x31ca59=_0x1182[_0x2c4bc3];return _0x31ca59;};'use strict';var Sequelize=require('sequelize');var _=require(_0x2118('0x0'));var util=require(_0x2118('0x1'));module[_0x2118('0x2')]={'name':{'type':Sequelize[_0x2118('0x3')],'unique':_0x2118('0x4')},'description':{'type':Sequelize[_0x2118('0x3')]},'formData':{'type':Sequelize['TEXT'](_0x2118('0x5')),'set':function(_0x3ae574){if(_[_0x2118('0x6')](_0x3ae574)){this[_0x2118('0x7')](_0x2118('0x8'),JSON['stringify'](_0x3ae574));}else if(_[_0x2118('0x9')](_0x3ae574)){this[_0x2118('0x7')](_0x2118('0x8'),_0x3ae574);}else{this[_0x2118('0x7')](_0x2118('0x8'),util[_0x2118('0xa')](_0x2118('0xb'),this[_0x2118('0xc')](_0x2118('0x4'))||'',this[_0x2118('0xc')](_0x2118('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};