Built motion from commit (unavailable).|2.5.22
[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 _0xa864=['name','long','isObjectLike','setDataValue','formData','stringify','isString','format','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','getDataValue','description','sequelize','util','exports','STRING'];(function(_0x5f3f88,_0x562baf){var _0xd08119=function(_0x42dbf7){while(--_0x42dbf7){_0x5f3f88['push'](_0x5f3f88['shift']());}};_0xd08119(++_0x562baf);}(_0xa864,0x83));var _0x4a86=function(_0x26b8b5,_0xf5c2c1){_0x26b8b5=_0x26b8b5-0x0;var _0x2150a9=_0xa864[_0x26b8b5];return _0x2150a9;};'use strict';var Sequelize=require(_0x4a86('0x0'));var _=require('lodash');var util=require(_0x4a86('0x1'));module[_0x4a86('0x2')]={'name':{'type':Sequelize[_0x4a86('0x3')],'unique':_0x4a86('0x4')},'description':{'type':Sequelize[_0x4a86('0x3')]},'formData':{'type':Sequelize['TEXT'](_0x4a86('0x5')),'set':function(_0x4e6563){if(_[_0x4a86('0x6')](_0x4e6563)){this[_0x4a86('0x7')](_0x4a86('0x8'),JSON[_0x4a86('0x9')](_0x4e6563));}else if(_[_0x4a86('0xa')](_0x4e6563)){this['setDataValue'](_0x4a86('0x8'),_0x4e6563);}else{this[_0x4a86('0x7')]('formData',util[_0x4a86('0xb')](_0x4a86('0xc'),this['getDataValue']('name')||'',this[_0x4a86('0xd')](_0x4a86('0xe'))||''));}}},'enableUncompleteSave':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}};