Built motion from commit 85328c08.|2.5.50
[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 _0x0e08=['../../config/environment','SalesforceField','int_salesforce_fields','salesforce_unique_index','idField','FieldId','lodash','util','api','moment','request-promise','path','rimraf'];(function(_0x35b135,_0x1a5f58){var _0x1a592f=function(_0x20c1b4){while(--_0x20c1b4){_0x35b135['push'](_0x35b135['shift']());}};_0x1a592f(++_0x1a5f58);}(_0x0e08,0xbc));var _0x80e0=function(_0x4a209a,_0x1ace06){_0x4a209a=_0x4a209a-0x0;var _0x992c8e=_0x0e08[_0x4a209a];return _0x992c8e;};'use strict';var _=require(_0x80e0('0x0'));var util=require(_0x80e0('0x1'));var logger=require('../../config/logger')(_0x80e0('0x2'));var moment=require(_0x80e0('0x3'));var BPromise=require('bluebird');var rp=require(_0x80e0('0x4'));var fs=require('fs');var path=require(_0x80e0('0x5'));var rimraf=require(_0x80e0('0x6'));var config=require(_0x80e0('0x7'));var attributes=require('./intSalesforceField.attributes');module['exports']=function(_0x180e62,_0x52db49){return _0x180e62['define'](_0x80e0('0x8'),attributes,{'tableName':_0x80e0('0x9'),'paranoid':![],'indexes':[{'name':_0x80e0('0xa'),'fields':[_0x80e0('0xb'),_0x80e0('0xc')],'unique':!![]}],'timestamps':!![]});};