Built motion from commit e1760111.|2.6.18
[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 _0x71ee=['setDataValue','getDataValue','name','TEXT','long','type','select','parse','isArray','stringify','BOOLEAN','ENUM','voice','sequelize','VIRTUAL','alias','STRING'];(function(_0x5513f6,_0x1eea43){var _0x4cc91b=function(_0x54f776){while(--_0x54f776){_0x5513f6['push'](_0x5513f6['shift']());}};_0x4cc91b(++_0x1eea43);}(_0x71ee,0xb7));var _0xe71e=function(_0x1ba57f,_0xb81938){_0x1ba57f=_0x1ba57f-0x0;var _0x5a7f02=_0x71ee[_0x1ba57f];return _0x5a7f02;};'use strict';var Sequelize=require(_0xe71e('0x0'));var _=require('lodash');module['exports']={'name':{'type':Sequelize[_0xe71e('0x1')],'get':function(_0x32901f){return this['getDataValue'](_0xe71e('0x2'));}},'alias':{'type':Sequelize[_0xe71e('0x3')],'allowNull':![],'set':function(_0xe1838d){this[_0xe71e('0x4')]('alias',_0xe1838d?_0xe1838d:this[_0xe71e('0x5')](_0xe71e('0x6')));}},'type':{'type':Sequelize[_0xe71e('0x3')],'allowNull':![]},'values':{'type':Sequelize[_0xe71e('0x7')](_0xe71e('0x8')),'get':function(){if(this[_0xe71e('0x5')](_0xe71e('0x9'))===_0xe71e('0xa')){return JSON[_0xe71e('0xb')](this[_0xe71e('0x5')]('values'));}else{return this['getDataValue']('values');}},'set':function(_0x462d9a){if(Array[_0xe71e('0xc')](_0x462d9a)){this[_0xe71e('0x4')]('values',JSON[_0xe71e('0xd')](_0x462d9a));}else{this[_0xe71e('0x4')]('values',_0x462d9a);}}},'required':{'type':Sequelize[_0xe71e('0xe')],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0xe71e('0xe')],'defaultValue':![]},'actionType':{'type':Sequelize[_0xe71e('0xf')](_0xe71e('0x10'))}};