c08e38486beaef735bc8fbc32515dcf84c22db36
[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 _0xd9ac=['getDataValue','name','BOOLEAN','sequelize','lodash','exports','TEXT','isObjectLike','formData','stringify','isString','setDataValue','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}'];(function(_0x162ee0,_0x291661){var _0x48fc5e=function(_0x297a35){while(--_0x297a35){_0x162ee0['push'](_0x162ee0['shift']());}};_0x48fc5e(++_0x291661);}(_0xd9ac,0x65));var _0xcd9a=function(_0x430ae0,_0x4887ef){_0x430ae0=_0x430ae0-0x0;var _0x38c1e1=_0xd9ac[_0x430ae0];return _0x38c1e1;};'use strict';var Sequelize=require(_0xcd9a('0x0'));var _=require(_0xcd9a('0x1'));var util=require('util');module[_0xcd9a('0x2')]={'name':{'type':Sequelize['STRING'],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0xcd9a('0x3')]('long'),'set':function(_0x128db9){if(_[_0xcd9a('0x4')](_0x128db9)){this['setDataValue'](_0xcd9a('0x5'),JSON[_0xcd9a('0x6')](_0x128db9));}else if(_[_0xcd9a('0x7')](_0x128db9)){this[_0xcd9a('0x8')](_0xcd9a('0x5'),_0x128db9);}else{this[_0xcd9a('0x8')](_0xcd9a('0x5'),util[_0xcd9a('0x9')](_0xcd9a('0xa'),this[_0xcd9a('0xb')](_0xcd9a('0xc'))||'',this[_0xcd9a('0xb')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xcd9a('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xcd9a('0xd')],'defaultValue':![]}};