Built motion from commit 9d1906d1.|2.5.40
[motion2.git] / server / api / intVtigerField / intVtigerField.model.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 _0x51d3=['idField','FieldId','lodash','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','exports','VtigerField','int_vtiger_fields','vtiger_unique_index'];(function(_0x58442e,_0x21db2a){var _0x5da4fa=function(_0x5105ab){while(--_0x5105ab){_0x58442e['push'](_0x58442e['shift']());}};_0x5da4fa(++_0x21db2a);}(_0x51d3,0x1d3));var _0x351d=function(_0x54a6fc,_0x56fe63){_0x54a6fc=_0x54a6fc-0x0;var _0x3a2375=_0x51d3[_0x54a6fc];return _0x3a2375;};'use strict';var _=require(_0x351d('0x0'));var util=require(_0x351d('0x1'));var logger=require(_0x351d('0x2'))(_0x351d('0x3'));var moment=require(_0x351d('0x4'));var BPromise=require(_0x351d('0x5'));var rp=require(_0x351d('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x351d('0x7'));var config=require(_0x351d('0x8'));var attributes=require('./intVtigerField.attributes');module[_0x351d('0x9')]=function(_0xf310f6,_0x350093){return _0xf310f6['define'](_0x351d('0xa'),attributes,{'tableName':_0x351d('0xb'),'paranoid':![],'indexes':[{'name':_0x351d('0xc'),'fields':[_0x351d('0xd'),_0x351d('0xe')],'unique':!![]}],'timestamps':!![]});};