Built motion from commit (unavailable).|2.5.2
[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 _0xe4ff=['description','BOOLEAN','lodash','util','STRING','long','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','name'];(function(_0x1d70e6,_0x31f6eb){var _0x2d61cb=function(_0x3bf6b2){while(--_0x3bf6b2){_0x1d70e6['push'](_0x1d70e6['shift']());}};_0x2d61cb(++_0x31f6eb);}(_0xe4ff,0x64));var _0xfe4f=function(_0x382602,_0x5e9d2d){_0x382602=_0x382602-0x0;var _0x14dda6=_0xe4ff[_0x382602];return _0x14dda6;};'use strict';var Sequelize=require('sequelize');var _=require(_0xfe4f('0x0'));var util=require(_0xfe4f('0x1'));module['exports']={'name':{'type':Sequelize[_0xfe4f('0x2')],'unique':'name'},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize['TEXT'](_0xfe4f('0x3')),'set':function(_0x554f87){if(_['isObjectLike'](_0x554f87)){this[_0xfe4f('0x4')](_0xfe4f('0x5'),JSON[_0xfe4f('0x6')](_0x554f87));}else if(_[_0xfe4f('0x7')](_0x554f87)){this['setDataValue']('formData',_0x554f87);}else{this[_0xfe4f('0x4')](_0xfe4f('0x5'),util[_0xfe4f('0x8')](_0xfe4f('0x9'),this[_0xfe4f('0xa')](_0xfe4f('0xb'))||'',this[_0xfe4f('0xa')](_0xfe4f('0xc'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0xfe4f('0xd')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};