17a1924c8c6d98538c6f7ee94a2d37b58ae2ae46
[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 _0x2cdd=['formData','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','BOOLEAN','sequelize','exports','STRING','TEXT','isObjectLike','setDataValue'];(function(_0x1e05c1,_0x3cffa3){var _0x15f1ca=function(_0x3a9594){while(--_0x3a9594){_0x1e05c1['push'](_0x1e05c1['shift']());}};_0x15f1ca(++_0x3cffa3);}(_0x2cdd,0x186));var _0xd2cd=function(_0x500419,_0x549162){_0x500419=_0x500419-0x0;var _0x241c1a=_0x2cdd[_0x500419];return _0x241c1a;};'use strict';var Sequelize=require(_0xd2cd('0x0'));var _=require('lodash');var util=require('util');module[_0xd2cd('0x1')]={'name':{'type':Sequelize[_0xd2cd('0x2')],'unique':'name'},'description':{'type':Sequelize[_0xd2cd('0x2')]},'formData':{'type':Sequelize[_0xd2cd('0x3')]('long'),'set':function(_0x3ca902){if(_[_0xd2cd('0x4')](_0x3ca902)){this[_0xd2cd('0x5')](_0xd2cd('0x6'),JSON['stringify'](_0x3ca902));}else if(_['isString'](_0x3ca902)){this[_0xd2cd('0x5')](_0xd2cd('0x6'),_0x3ca902);}else{this[_0xd2cd('0x5')]('formData',util[_0xd2cd('0x7')](_0xd2cd('0x8'),this[_0xd2cd('0x9')]('name')||'',this[_0xd2cd('0x9')](_0xd2cd('0xa'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xd2cd('0xb')],'defaultValue':![]}};