Built motion from commit (unavailable).|2.6.0
[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 _0xd5e8=['util','exports','STRING','name','TEXT','long','setDataValue','isString','formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','BOOLEAN','lodash'];(function(_0x1dda27,_0x23c0e6){var _0x1be7e7=function(_0x2f3629){while(--_0x2f3629){_0x1dda27['push'](_0x1dda27['shift']());}};_0x1be7e7(++_0x23c0e6);}(_0xd5e8,0x16b));var _0x8d5e=function(_0x5f4fdb,_0x3342d9){_0x5f4fdb=_0x5f4fdb-0x0;var _0x42ff8e=_0xd5e8[_0x5f4fdb];return _0x42ff8e;};'use strict';var Sequelize=require('sequelize');var _=require(_0x8d5e('0x0'));var util=require(_0x8d5e('0x1'));module[_0x8d5e('0x2')]={'name':{'type':Sequelize[_0x8d5e('0x3')],'unique':_0x8d5e('0x4')},'description':{'type':Sequelize[_0x8d5e('0x3')]},'formData':{'type':Sequelize[_0x8d5e('0x5')](_0x8d5e('0x6')),'set':function(_0x1eb84f){if(_['isObjectLike'](_0x1eb84f)){this[_0x8d5e('0x7')]('formData',JSON['stringify'](_0x1eb84f));}else if(_[_0x8d5e('0x8')](_0x1eb84f)){this['setDataValue'](_0x8d5e('0x9'),_0x1eb84f);}else{this[_0x8d5e('0x7')]('formData',util[_0x8d5e('0xa')](_0x8d5e('0xb'),this[_0x8d5e('0xc')](_0x8d5e('0x4'))||'',this[_0x8d5e('0xc')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x8d5e('0xd')],'defaultValue':![]}};