10aa020d2456bf8fcf51d72f393627b8e2ab7aca
[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 _0x4e86=['exports','define','VtigerField','vtiger_unique_index','idField','FieldId','lodash','util','../../config/logger','api','bluebird','request-promise','path','../../config/environment','./intVtigerField.attributes'];(function(_0x3b5250,_0x7a0b2c){var _0xc844a1=function(_0x2fbc98){while(--_0x2fbc98){_0x3b5250['push'](_0x3b5250['shift']());}};_0xc844a1(++_0x7a0b2c);}(_0x4e86,0x8d));var _0x64e8=function(_0x4b473f,_0x539bea){_0x4b473f=_0x4b473f-0x0;var _0x5a26fc=_0x4e86[_0x4b473f];return _0x5a26fc;};'use strict';var _=require(_0x64e8('0x0'));var util=require(_0x64e8('0x1'));var logger=require(_0x64e8('0x2'))(_0x64e8('0x3'));var moment=require('moment');var BPromise=require(_0x64e8('0x4'));var rp=require(_0x64e8('0x5'));var fs=require('fs');var path=require(_0x64e8('0x6'));var rimraf=require('rimraf');var config=require(_0x64e8('0x7'));var attributes=require(_0x64e8('0x8'));module[_0x64e8('0x9')]=function(_0x403ad2,_0x34b352){return _0x403ad2[_0x64e8('0xa')](_0x64e8('0xb'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':_0x64e8('0xc'),'fields':[_0x64e8('0xd'),_0x64e8('0xe')],'unique':!![]}],'timestamps':!![]});};