Built motion from commit (unavailable).|2.5.10
[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 _0x14a4=['exports','STRING','long','isObjectLike','setDataValue','formData','isString','format','getDataValue','name','BOOLEAN','sequelize','lodash','util'];(function(_0x4dc8e2,_0x2fee51){var _0x33af1f=function(_0x5abf93){while(--_0x5abf93){_0x4dc8e2['push'](_0x4dc8e2['shift']());}};_0x33af1f(++_0x2fee51);}(_0x14a4,0x7b));var _0x414a=function(_0x2e9694,_0x2cdd50){_0x2e9694=_0x2e9694-0x0;var _0x3100f2=_0x14a4[_0x2e9694];return _0x3100f2;};'use strict';var Sequelize=require(_0x414a('0x0'));var _=require(_0x414a('0x1'));var util=require(_0x414a('0x2'));module[_0x414a('0x3')]={'name':{'type':Sequelize[_0x414a('0x4')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT'](_0x414a('0x5')),'set':function(_0x420000){if(_[_0x414a('0x6')](_0x420000)){this[_0x414a('0x7')](_0x414a('0x8'),JSON['stringify'](_0x420000));}else if(_[_0x414a('0x9')](_0x420000)){this['setDataValue'](_0x414a('0x8'),_0x420000);}else{this[_0x414a('0x7')](_0x414a('0x8'),util[_0x414a('0xa')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0x414a('0xb')](_0x414a('0xc'))||'',this[_0x414a('0xb')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x414a('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x414a('0xd')],'defaultValue':![]}};