842795fac6346270399292c8b4edb62e0646f859
[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 _0xfeeb=['lodash','util','exports','STRING','name','TEXT','formData','stringify','setDataValue','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize'];(function(_0x2a2fd4,_0x13c195){var _0x599e12=function(_0x487711){while(--_0x487711){_0x2a2fd4['push'](_0x2a2fd4['shift']());}};_0x599e12(++_0x13c195);}(_0xfeeb,0xd1));var _0xbfee=function(_0x57b3c7,_0x14ce6d){_0x57b3c7=_0x57b3c7-0x0;var _0x370e47=_0xfeeb[_0x57b3c7];return _0x370e47;};'use strict';var Sequelize=require(_0xbfee('0x0'));var _=require(_0xbfee('0x1'));var util=require(_0xbfee('0x2'));module[_0xbfee('0x3')]={'name':{'type':Sequelize[_0xbfee('0x4')],'unique':_0xbfee('0x5')},'description':{'type':Sequelize[_0xbfee('0x4')]},'formData':{'type':Sequelize[_0xbfee('0x6')]('long'),'set':function(_0x55b2da){if(_['isObjectLike'](_0x55b2da)){this['setDataValue'](_0xbfee('0x7'),JSON[_0xbfee('0x8')](_0x55b2da));}else if(_['isString'](_0x55b2da)){this[_0xbfee('0x9')](_0xbfee('0x7'),_0x55b2da);}else{this['setDataValue'](_0xbfee('0x7'),util[_0xbfee('0xa')](_0xbfee('0xb'),this[_0xbfee('0xc')](_0xbfee('0x5'))||'',this['getDataValue'](_0xbfee('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xbfee('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};