ebec03a959265056ce65add9d93dc70a41a276bb
[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 _0xc636=['VtigerField','int_vtiger_fields','vtiger_unique_index','FieldId','lodash','util','../../config/logger','api','moment','bluebird','path','exports','define'];(function(_0x2e81a2,_0x4477fc){var _0x27b108=function(_0xcee602){while(--_0xcee602){_0x2e81a2['push'](_0x2e81a2['shift']());}};_0x27b108(++_0x4477fc);}(_0xc636,0x86));var _0x6c63=function(_0x48551b,_0x176600){_0x48551b=_0x48551b-0x0;var _0x56b490=_0xc636[_0x48551b];return _0x56b490;};'use strict';var _=require(_0x6c63('0x0'));var util=require(_0x6c63('0x1'));var logger=require(_0x6c63('0x2'))(_0x6c63('0x3'));var moment=require(_0x6c63('0x4'));var BPromise=require(_0x6c63('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6c63('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./intVtigerField.attributes');module[_0x6c63('0x7')]=function(_0x47031e,_0x247026){return _0x47031e[_0x6c63('0x8')](_0x6c63('0x9'),attributes,{'tableName':_0x6c63('0xa'),'paranoid':![],'indexes':[{'name':_0x6c63('0xb'),'fields':['idField',_0x6c63('0xc')],'unique':!![]}],'timestamps':!![]});};