1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xe7d3=['rimraf','./intVtigerField.attributes','exports','define','VtigerField','int_vtiger_fields','vtiger_unique_index','FieldId','util','../../config/logger','bluebird','request-promise','path'];(function(_0x11a55c,_0x4eced9){var _0x26c390=function(_0x5b0662){while(--_0x5b0662){_0x11a55c['push'](_0x11a55c['shift']());}};_0x26c390(++_0x4eced9);}(_0xe7d3,0x181));var _0x3e7d=function(_0x5d2618,_0x4c3e84){_0x5d2618=_0x5d2618-0x0;var _0x47ed02=_0xe7d3[_0x5d2618];return _0x47ed02;};'use strict';var _=require('lodash');var util=require(_0x3e7d('0x0'));var logger=require(_0x3e7d('0x1'))('api');var moment=require('moment');var BPromise=require(_0x3e7d('0x2'));var rp=require(_0x3e7d('0x3'));var fs=require('fs');var path=require(_0x3e7d('0x4'));var rimraf=require(_0x3e7d('0x5'));var config=require('../../config/environment');var attributes=require(_0x3e7d('0x6'));module[_0x3e7d('0x7')]=function(_0x3093d0,_0x191d92){return _0x3093d0[_0x3e7d('0x8')](_0x3e7d('0x9'),attributes,{'tableName':_0x3e7d('0xa'),'paranoid':![],'indexes':[{'name':_0x3e7d('0xb'),'fields':['idField',_0x3e7d('0xc')],'unique':!![]}],'timestamps':!![]});};