Built motion from commit e02f907f.|2.6.14
[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 _0xd3fc=['BOOLEAN','sequelize','util','STRING','name','TEXT','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description'];(function(_0x81dcac,_0x8ff7db){var _0xc7803b=function(_0x499b29){while(--_0x499b29){_0x81dcac['push'](_0x81dcac['shift']());}};_0xc7803b(++_0x8ff7db);}(_0xd3fc,0x101));var _0xcd3f=function(_0x2b29b3,_0x7da1d0){_0x2b29b3=_0x2b29b3-0x0;var _0x1c8d5c=_0xd3fc[_0x2b29b3];return _0x1c8d5c;};'use strict';var Sequelize=require(_0xcd3f('0x0'));var _=require('lodash');var util=require(_0xcd3f('0x1'));module['exports']={'name':{'type':Sequelize[_0xcd3f('0x2')],'unique':_0xcd3f('0x3')},'description':{'type':Sequelize[_0xcd3f('0x2')]},'formData':{'type':Sequelize[_0xcd3f('0x4')](_0xcd3f('0x5')),'set':function(_0x37dc8f){if(_[_0xcd3f('0x6')](_0x37dc8f)){this[_0xcd3f('0x7')](_0xcd3f('0x8'),JSON[_0xcd3f('0x9')](_0x37dc8f));}else if(_[_0xcd3f('0xa')](_0x37dc8f)){this['setDataValue'](_0xcd3f('0x8'),_0x37dc8f);}else{this['setDataValue'](_0xcd3f('0x8'),util[_0xcd3f('0xb')](_0xcd3f('0xc'),this[_0xcd3f('0xd')]('name')||'',this[_0xcd3f('0xd')](_0xcd3f('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xcd3f('0xf')],'defaultValue':![]}};