Built motion from commit b0a9a629.|2.6.33
[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 _0xf031=['isObjectLike','stringify','isString','setDataValue','formData','format','getDataValue','description','BOOLEAN','sequelize','lodash','util','STRING','TEXT','long'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xf031,0xcc));var _0x1f03=function(_0x3f3729,_0x5586ea){_0x3f3729=_0x3f3729-0x0;var _0x589448=_0xf031[_0x3f3729];return _0x589448;};'use strict';var Sequelize=require(_0x1f03('0x0'));var _=require(_0x1f03('0x1'));var util=require(_0x1f03('0x2'));module['exports']={'name':{'type':Sequelize[_0x1f03('0x3')],'unique':'name'},'description':{'type':Sequelize[_0x1f03('0x3')]},'formData':{'type':Sequelize[_0x1f03('0x4')](_0x1f03('0x5')),'set':function(_0x292e79){if(_[_0x1f03('0x6')](_0x292e79)){this['setDataValue']('formData',JSON[_0x1f03('0x7')](_0x292e79));}else if(_[_0x1f03('0x8')](_0x292e79)){this[_0x1f03('0x9')](_0x1f03('0xa'),_0x292e79);}else{this[_0x1f03('0x9')]('formData',util[_0x1f03('0xb')]('{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}',this['getDataValue']('name')||'',this[_0x1f03('0xc')](_0x1f03('0xd'))||''));}}},'enableUncompleteSave':{'type':Sequelize[_0x1f03('0xe')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x1f03('0xe')],'defaultValue':![]}};