Built motion from commit (unavailable).|2.5.18
[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 _0xb99a=['STRING','name','formData','stringify','setDataValue','format','getDataValue','BOOLEAN','lodash','util','exports'];(function(_0x4438ec,_0x1ee669){var _0xc2ef64=function(_0x4ff750){while(--_0x4ff750){_0x4438ec['push'](_0x4438ec['shift']());}};_0xc2ef64(++_0x1ee669);}(_0xb99a,0x189));var _0xab99=function(_0x225169,_0x2a6b68){_0x225169=_0x225169-0x0;var _0xe1ddb8=_0xb99a[_0x225169];return _0xe1ddb8;};'use strict';var Sequelize=require('sequelize');var _=require(_0xab99('0x0'));var util=require(_0xab99('0x1'));module[_0xab99('0x2')]={'name':{'type':Sequelize[_0xab99('0x3')],'unique':_0xab99('0x4')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0x81a8bc){if(_['isObjectLike'](_0x81a8bc)){this['setDataValue'](_0xab99('0x5'),JSON[_0xab99('0x6')](_0x81a8bc));}else if(_['isString'](_0x81a8bc)){this[_0xab99('0x7')](_0xab99('0x5'),_0x81a8bc);}else{this['setDataValue']('formData',util[_0xab99('0x8')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0xab99('0x9')](_0xab99('0x4'))||'',this[_0xab99('0x9')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xab99('0xa')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xab99('0xa')],'defaultValue':![]}};