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 _0x47e8=['SalesforceField','int_salesforce_fields','idField','FieldId','lodash','util','moment','request-promise','path','../../config/environment','./intSalesforceField.attributes','exports','define'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x47e8,0x86));var _0x847e=function(_0x36bc58,_0x27f03c){_0x36bc58=_0x36bc58-0x0;var _0x4a547e=_0x47e8[_0x36bc58];return _0x4a547e;};'use strict';var _=require(_0x847e('0x0'));var util=require(_0x847e('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x847e('0x2'));var BPromise=require('bluebird');var rp=require(_0x847e('0x3'));var fs=require('fs');var path=require(_0x847e('0x4'));var rimraf=require('rimraf');var config=require(_0x847e('0x5'));var attributes=require(_0x847e('0x6'));module[_0x847e('0x7')]=function(_0x4ab626,_0x630499){return _0x4ab626[_0x847e('0x8')](_0x847e('0x9'),attributes,{'tableName':_0x847e('0xa'),'paranoid':![],'indexes':[{'name':'salesforce_unique_index','fields':[_0x847e('0xb'),_0x847e('0xc')],'unique':!![]}],'timestamps':!![]});};