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 _0x63e4=['path','rimraf','../../config/environment','./intSugarcrmField.attributes','exports','SugarcrmField','int_sugarcrm_fields','idField','FieldId','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x21a686,_0x12bd48){var _0xdd7908=function(_0x19e09d){while(--_0x19e09d){_0x21a686['push'](_0x21a686['shift']());}};_0xdd7908(++_0x12bd48);}(_0x63e4,0x180));var _0x463e=function(_0x24e6ba,_0x949b9){_0x24e6ba=_0x24e6ba-0x0;var _0x5ee7ae=_0x63e4[_0x24e6ba];return _0x5ee7ae;};'use strict';var _=require(_0x463e('0x0'));var util=require(_0x463e('0x1'));var logger=require(_0x463e('0x2'))(_0x463e('0x3'));var moment=require('moment');var BPromise=require(_0x463e('0x4'));var rp=require(_0x463e('0x5'));var fs=require('fs');var path=require(_0x463e('0x6'));var rimraf=require(_0x463e('0x7'));var config=require(_0x463e('0x8'));var attributes=require(_0x463e('0x9'));module[_0x463e('0xa')]=function(_0x12f57e,_0x583abe){return _0x12f57e['define'](_0x463e('0xb'),attributes,{'tableName':_0x463e('0xc'),'paranoid':![],'indexes':[{'name':'sugarcrm_unique_index','fields':[_0x463e('0xd'),_0x463e('0xe')],'unique':!![]}],'timestamps':!![]});};