Built motion from commit 67e5df37.|2.0.66
[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 _0x03eb=['getDataValue','description','sequelize','lodash','util','name','TEXT','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}'];(function(_0x16a637,_0x5eb627){var _0x25126d=function(_0x54e016){while(--_0x54e016){_0x16a637['push'](_0x16a637['shift']());}};_0x25126d(++_0x5eb627);}(_0x03eb,0x136));var _0xb03e=function(_0x3349b2,_0x56c0ed){_0x3349b2=_0x3349b2-0x0;var _0x2c120e=_0x03eb[_0x3349b2];return _0x2c120e;};'use strict';var Sequelize=require(_0xb03e('0x0'));var _=require(_0xb03e('0x1'));var util=require(_0xb03e('0x2'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':_0xb03e('0x3')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0xb03e('0x4')]('long'),'set':function(_0x4bf069){if(_[_0xb03e('0x5')](_0x4bf069)){this[_0xb03e('0x6')](_0xb03e('0x7'),JSON[_0xb03e('0x8')](_0x4bf069));}else if(_[_0xb03e('0x9')](_0x4bf069)){this['setDataValue'](_0xb03e('0x7'),_0x4bf069);}else{this['setDataValue'](_0xb03e('0x7'),util[_0xb03e('0xa')](_0xb03e('0xb'),this[_0xb03e('0xc')](_0xb03e('0x3'))||'',this['getDataValue'](_0xb03e('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}};