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 _0x4071=['util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intSalesforceField.attributes','exports','define','SalesforceField','int_salesforce_fields','salesforce_unique_index','idField','FieldId'];(function(_0x14b8f8,_0x3e7b4a){var _0x1e0309=function(_0x222be3){while(--_0x222be3){_0x14b8f8['push'](_0x14b8f8['shift']());}};_0x1e0309(++_0x3e7b4a);}(_0x4071,0x1c0));var _0x1407=function(_0x58df79,_0x255542){_0x58df79=_0x58df79-0x0;var _0x33bb1a=_0x4071[_0x58df79];return _0x33bb1a;};'use strict';var _=require('lodash');var util=require(_0x1407('0x0'));var logger=require(_0x1407('0x1'))('api');var moment=require(_0x1407('0x2'));var BPromise=require(_0x1407('0x3'));var rp=require(_0x1407('0x4'));var fs=require('fs');var path=require(_0x1407('0x5'));var rimraf=require(_0x1407('0x6'));var config=require(_0x1407('0x7'));var attributes=require(_0x1407('0x8'));module[_0x1407('0x9')]=function(_0x34617e,_0x40be7b){return _0x34617e[_0x1407('0xa')](_0x1407('0xb'),attributes,{'tableName':_0x1407('0xc'),'paranoid':![],'indexes':[{'name':_0x1407('0xd'),'fields':[_0x1407('0xe'),_0x1407('0xf')],'unique':!![]}],'timestamps':!![]});};