Built motion from commit (unavailable).|2.5.11
[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 _0xfadf=['setDataValue','formData','stringify','isString','format','getDataValue','BOOLEAN','util','exports','STRING','name','long','isObjectLike'];(function(_0x562071,_0x57a342){var _0x45db81=function(_0x3be628){while(--_0x3be628){_0x562071['push'](_0x562071['shift']());}};_0x45db81(++_0x57a342);}(_0xfadf,0x89));var _0xffad=function(_0x267ce2,_0x16d394){_0x267ce2=_0x267ce2-0x0;var _0xcefe7=_0xfadf[_0x267ce2];return _0xcefe7;};'use strict';var Sequelize=require('sequelize');var _=require('lodash');var util=require(_0xffad('0x0'));module[_0xffad('0x1')]={'name':{'type':Sequelize[_0xffad('0x2')],'unique':_0xffad('0x3')},'description':{'type':Sequelize[_0xffad('0x2')]},'formData':{'type':Sequelize['TEXT'](_0xffad('0x4')),'set':function(_0x2dd05b){if(_[_0xffad('0x5')](_0x2dd05b)){this[_0xffad('0x6')](_0xffad('0x7'),JSON[_0xffad('0x8')](_0x2dd05b));}else if(_[_0xffad('0x9')](_0x2dd05b)){this[_0xffad('0x6')](_0xffad('0x7'),_0x2dd05b);}else{this['setDataValue'](_0xffad('0x7'),util[_0xffad('0xa')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this[_0xffad('0xb')]('name')||'',this[_0xffad('0xb')]('description')||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0xffad('0xc')],'defaultValue':![]}};