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 _0x3f28=['salesforce_unique_index','idField','FieldId','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x333798,_0x9f6561){var _0x389f4e=function(_0x193b28){while(--_0x193b28){_0x333798['push'](_0x333798['shift']());}};_0x389f4e(++_0x9f6561);}(_0x3f28,0xea));var _0x83f2=function(_0x1e863e,_0x47ac05){_0x1e863e=_0x1e863e-0x0;var _0x3323b7=_0x3f28[_0x1e863e];return _0x3323b7;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x83f2('0x0'))('api');var moment=require('moment');var BPromise=require(_0x83f2('0x1'));var rp=require(_0x83f2('0x2'));var fs=require('fs');var path=require(_0x83f2('0x3'));var rimraf=require(_0x83f2('0x4'));var config=require(_0x83f2('0x5'));var attributes=require('./intSalesforceField.attributes');module[_0x83f2('0x6')]=function(_0x3598f4,_0x3044ef){return _0x3598f4[_0x83f2('0x7')]('SalesforceField',attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x83f2('0x8'),'fields':[_0x83f2('0x9'),_0x83f2('0xa')],'unique':!![]}],'timestamps':!![]});};