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 _0xdf8a=['../../config/logger','moment','bluebird','request-promise','path','../../config/environment','exports','define','SugarcrmField','int_sugarcrm_fields','sugarcrm_unique_index','lodash','util'];(function(_0x13999c,_0x11ae7a){var _0x360d2c=function(_0x488bec){while(--_0x488bec){_0x13999c['push'](_0x13999c['shift']());}};_0x360d2c(++_0x11ae7a);}(_0xdf8a,0xdb));var _0xadf8=function(_0x54e6f5,_0x4f4e99){_0x54e6f5=_0x54e6f5-0x0;var _0x5e8794=_0xdf8a[_0x54e6f5];return _0x5e8794;};'use strict';var _=require(_0xadf8('0x0'));var util=require(_0xadf8('0x1'));var logger=require(_0xadf8('0x2'))('api');var moment=require(_0xadf8('0x3'));var BPromise=require(_0xadf8('0x4'));var rp=require(_0xadf8('0x5'));var fs=require('fs');var path=require(_0xadf8('0x6'));var rimraf=require('rimraf');var config=require(_0xadf8('0x7'));var attributes=require('./intSugarcrmField.attributes');module[_0xadf8('0x8')]=function(_0x4e2aa9,_0x4e2517){return _0x4e2aa9[_0xadf8('0x9')](_0xadf8('0xa'),attributes,{'tableName':_0xadf8('0xb'),'paranoid':![],'indexes':[{'name':_0xadf8('0xc'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};