Built motion from commit (unavailable).|2.5.15
[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 _0x50bb=['STRING','name','TEXT','isObjectLike','setDataValue','formData','stringify','isString','format','getDataValue','BOOLEAN'];(function(_0x4b2436,_0x452299){var _0x4f5ab2=function(_0x5c6679){while(--_0x5c6679){_0x4b2436['push'](_0x4b2436['shift']());}};_0x4f5ab2(++_0x452299);}(_0x50bb,0x197));var _0xb50b=function(_0x2ba6f5,_0x1e4b22){_0x2ba6f5=_0x2ba6f5-0x0;var _0xb5b194=_0x50bb[_0x2ba6f5];return _0xb5b194;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');var util=require('util');module['exports']={'name':{'type':Sequelize[_0xb50b('0x0')],'unique':_0xb50b('0x1')},'description':{'type':Sequelize[_0xb50b('0x0')]},'formData':{'type':Sequelize[_0xb50b('0x2')]('long'),'set':function(_0x2c5002){if(_[_0xb50b('0x3')](_0x2c5002)){this[_0xb50b('0x4')](_0xb50b('0x5'),JSON[_0xb50b('0x6')](_0x2c5002));}else if(_[_0xb50b('0x7')](_0x2c5002)){this[_0xb50b('0x4')](_0xb50b('0x5'),_0x2c5002);}else{this[_0xb50b('0x4')]('formData',util[_0xb50b('0x8')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0xb50b('0x9')](_0xb50b('0x1'))||'',this['getDataValue']('description')||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xb50b('0xa')],'defaultValue':![]}};