Built motion from commit 4ffc18b1.|2.6.31
[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 _0x5b32=['stringify','isString','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','sequelize','lodash','exports','STRING','TEXT','long','isObjectLike','setDataValue'];(function(_0x253f38,_0x19efed){var _0x166893=function(_0x469f51){while(--_0x469f51){_0x253f38['push'](_0x253f38['shift']());}};_0x166893(++_0x19efed);}(_0x5b32,0x1d8));var _0x25b3=function(_0x99995d,_0x4e6a11){_0x99995d=_0x99995d-0x0;var _0x108a8b=_0x5b32[_0x99995d];return _0x108a8b;};'use strict';var Sequelize=require(_0x25b3('0x0'));var _=require(_0x25b3('0x1'));var util=require('util');module[_0x25b3('0x2')]={'name':{'type':Sequelize[_0x25b3('0x3')],'unique':'name'},'description':{'type':Sequelize[_0x25b3('0x3')]},'formData':{'type':Sequelize[_0x25b3('0x4')](_0x25b3('0x5')),'set':function(_0x5f1955){if(_[_0x25b3('0x6')](_0x5f1955)){this[_0x25b3('0x7')]('formData',JSON[_0x25b3('0x8')](_0x5f1955));}else if(_[_0x25b3('0x9')](_0x5f1955)){this[_0x25b3('0x7')](_0x25b3('0xa'),_0x5f1955);}else{this[_0x25b3('0x7')]('formData',util[_0x25b3('0xb')](_0x25b3('0xc'),this[_0x25b3('0xd')]('name')||'',this[_0x25b3('0xd')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x25b3('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};