Built motion from commit cb845558.|2.6.34
[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 _0x7752=['./intSalesforceField.attributes','define','SalesforceField','salesforce_unique_index','idField','FieldId','util','api','moment','bluebird','rimraf'];(function(_0x9c3c56,_0x169b56){var _0x2dd782=function(_0x386962){while(--_0x386962){_0x9c3c56['push'](_0x9c3c56['shift']());}};_0x2dd782(++_0x169b56);}(_0x7752,0x1ea));var _0x2775=function(_0x31faec,_0x2c2a7e){_0x31faec=_0x31faec-0x0;var _0x5257d2=_0x7752[_0x31faec];return _0x5257d2;};'use strict';var _=require('lodash');var util=require(_0x2775('0x0'));var logger=require('../../config/logger')(_0x2775('0x1'));var moment=require(_0x2775('0x2'));var BPromise=require(_0x2775('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x2775('0x4'));var config=require('../../config/environment');var attributes=require(_0x2775('0x5'));module['exports']=function(_0xbfab0e,_0x52f647){return _0xbfab0e[_0x2775('0x6')](_0x2775('0x7'),attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x2775('0x8'),'fields':[_0x2775('0x9'),_0x2775('0xa')],'unique':!![]}],'timestamps':!![]});};