cbdbc6a8dc2217ef737018d618e260ee08f4d30e
[motion2.git] / server / api / cmCustomField / cmCustomField.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 _0x5bf5=['BOOLEAN','voice','sequelize','lodash','exports','VIRTUAL','getDataValue','alias','setDataValue','name','STRING','TEXT','type','parse','values','isArray','stringify'];(function(_0x596649,_0x4773b1){var _0x26f5d8=function(_0x203e3e){while(--_0x203e3e){_0x596649['push'](_0x596649['shift']());}};_0x26f5d8(++_0x4773b1);}(_0x5bf5,0x1ab));var _0x55bf=function(_0x42eb44,_0x5b5a9a){_0x42eb44=_0x42eb44-0x0;var _0x4f6b13=_0x5bf5[_0x42eb44];return _0x4f6b13;};'use strict';var Sequelize=require(_0x55bf('0x0'));var _=require(_0x55bf('0x1'));module[_0x55bf('0x2')]={'name':{'type':Sequelize[_0x55bf('0x3')],'get':function(_0x1dc39d){return this[_0x55bf('0x4')](_0x55bf('0x5'));}},'alias':{'type':Sequelize['STRING'],'allowNull':![],'set':function(_0xb90fb0){this[_0x55bf('0x6')](_0x55bf('0x5'),_0xb90fb0?_0xb90fb0:this['getDataValue'](_0x55bf('0x7')));}},'type':{'type':Sequelize[_0x55bf('0x8')],'allowNull':![]},'values':{'type':Sequelize[_0x55bf('0x9')]('long'),'get':function(){if(this[_0x55bf('0x4')](_0x55bf('0xa'))==='select'){return JSON[_0x55bf('0xb')](this[_0x55bf('0x4')](_0x55bf('0xc')));}else{return this[_0x55bf('0x4')](_0x55bf('0xc'));}},'set':function(_0x57edf8){if(Array[_0x55bf('0xd')](_0x57edf8)){this['setDataValue'](_0x55bf('0xc'),JSON[_0x55bf('0xe')](_0x57edf8));}else{this[_0x55bf('0x6')](_0x55bf('0xc'),_0x57edf8);}}},'required':{'type':Sequelize[_0x55bf('0xf')],'defaultValue':![]},'clickToAction':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'actionType':{'type':Sequelize['ENUM'](_0x55bf('0x10'))}};