Built motion from commit 43538d75.|2.5.35
[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 _0x8f05=['VtigerField','idField','FieldId','lodash','util','../../config/logger','api','bluebird','request-promise','../../config/environment','./intVtigerField.attributes','exports','define'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x8f05,0x9f));var _0x58f0=function(_0x1ff9d4,_0x42c4d8){_0x1ff9d4=_0x1ff9d4-0x0;var _0x50a6f8=_0x8f05[_0x1ff9d4];return _0x50a6f8;};'use strict';var _=require(_0x58f0('0x0'));var util=require(_0x58f0('0x1'));var logger=require(_0x58f0('0x2'))(_0x58f0('0x3'));var moment=require('moment');var BPromise=require(_0x58f0('0x4'));var rp=require(_0x58f0('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x58f0('0x6'));var attributes=require(_0x58f0('0x7'));module[_0x58f0('0x8')]=function(_0x540f60,_0x445389){return _0x540f60[_0x58f0('0x9')](_0x58f0('0xa'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':'vtiger_unique_index','fields':[_0x58f0('0xb'),_0x58f0('0xc')],'unique':!![]}],'timestamps':!![]});};