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 _0x4e03=['salesforce_unique_index','lodash','../../config/logger','moment','bluebird','request-promise','path','rimraf','define','SalesforceField','int_salesforce_fields'];(function(_0x5783f4,_0x4a9e0a){var _0x28e380=function(_0x1ffc49){while(--_0x1ffc49){_0x5783f4['push'](_0x5783f4['shift']());}};_0x28e380(++_0x4a9e0a);}(_0x4e03,0x1e5));var _0x34e0=function(_0x2fafb4,_0x4c7e1f){_0x2fafb4=_0x2fafb4-0x0;var _0x56a1d0=_0x4e03[_0x2fafb4];return _0x56a1d0;};'use strict';var _=require(_0x34e0('0x0'));var util=require('util');var logger=require(_0x34e0('0x1'))('api');var moment=require(_0x34e0('0x2'));var BPromise=require(_0x34e0('0x3'));var rp=require(_0x34e0('0x4'));var fs=require('fs');var path=require(_0x34e0('0x5'));var rimraf=require(_0x34e0('0x6'));var config=require('../../config/environment');var attributes=require('./intSalesforceField.attributes');module['exports']=function(_0x3ffcbb,_0x504870){return _0x3ffcbb[_0x34e0('0x7')](_0x34e0('0x8'),attributes,{'tableName':_0x34e0('0x9'),'paranoid':![],'indexes':[{'name':_0x34e0('0xa'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});};