797a0cbf77625039feb544b4c0538679d7cc516b
[motion2.git] / server / api / intSalesforceField / intSalesforceField.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x64f6=['util','../../config/logger','api','request-promise','path','rimraf','../../config/environment','./intSalesforceField.attributes','exports','define','SalesforceField','int_salesforce_fields','idField','FieldId','lodash'];(function(_0x17fba1,_0x4533c1){var _0x5d95b1=function(_0x361cef){while(--_0x361cef){_0x17fba1['push'](_0x17fba1['shift']());}};_0x5d95b1(++_0x4533c1);}(_0x64f6,0xb3));var _0x664f=function(_0x208bc9,_0x4f36f6){_0x208bc9=_0x208bc9-0x0;var _0x2675a8=_0x64f6[_0x208bc9];return _0x2675a8;};'use strict';var _=require(_0x664f('0x0'));var util=require(_0x664f('0x1'));var logger=require(_0x664f('0x2'))(_0x664f('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x664f('0x4'));var fs=require('fs');var path=require(_0x664f('0x5'));var rimraf=require(_0x664f('0x6'));var config=require(_0x664f('0x7'));var attributes=require(_0x664f('0x8'));module[_0x664f('0x9')]=function(_0x36f127,_0x269125){return _0x36f127[_0x664f('0xa')](_0x664f('0xb'),attributes,{'tableName':_0x664f('0xc'),'paranoid':![],'indexes':[{'name':'salesforce_unique_index','fields':[_0x664f('0xd'),_0x664f('0xe')],'unique':!![]}],'timestamps':!![]});};