Built motion from commit (unavailable).|2.4.21
[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 _0xeb9c=['exports','STRING','name','TEXT','long','isObjectLike','formData','stringify','isString','setDataValue','format','getDataValue','BOOLEAN','sequelize','lodash'];(function(_0xdb8e6c,_0x15df30){var _0x12c7e9=function(_0x2ae495){while(--_0x2ae495){_0xdb8e6c['push'](_0xdb8e6c['shift']());}};_0x12c7e9(++_0x15df30);}(_0xeb9c,0x1ed));var _0xceb9=function(_0x2a5a67,_0x59cbd1){_0x2a5a67=_0x2a5a67-0x0;var _0x279cc9=_0xeb9c[_0x2a5a67];return _0x279cc9;};'use strict';var Sequelize=require(_0xceb9('0x0'));var _=require(_0xceb9('0x1'));var util=require('util');module[_0xceb9('0x2')]={'name':{'type':Sequelize[_0xceb9('0x3')],'unique':_0xceb9('0x4')},'description':{'type':Sequelize[_0xceb9('0x3')]},'formData':{'type':Sequelize[_0xceb9('0x5')](_0xceb9('0x6')),'set':function(_0xf8962a){if(_[_0xceb9('0x7')](_0xf8962a)){this['setDataValue'](_0xceb9('0x8'),JSON[_0xceb9('0x9')](_0xf8962a));}else if(_[_0xceb9('0xa')](_0xf8962a)){this['setDataValue']('formData',_0xf8962a);}else{this[_0xceb9('0xb')](_0xceb9('0x8'),util[_0xceb9('0xc')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0xceb9('0xd')](_0xceb9('0x4'))||'',this[_0xceb9('0xd')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xceb9('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xceb9('0xe')],'defaultValue':![]}};