80971a4bf34fe10af76ee253e9477cd3b12e088a
[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 _0x2e98=['../../config/environment','./intSalesforceField.attributes','define','SalesforceField','int_salesforce_fields','idField','lodash','util','../../config/logger','moment','bluebird','path','rimraf'];(function(_0x5e77db,_0x356d1c){var _0x34b675=function(_0x4914b5){while(--_0x4914b5){_0x5e77db['push'](_0x5e77db['shift']());}};_0x34b675(++_0x356d1c);}(_0x2e98,0x88));var _0x82e9=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0x2e98[_0x2641f9];return _0x585741;};'use strict';var _=require(_0x82e9('0x0'));var util=require(_0x82e9('0x1'));var logger=require(_0x82e9('0x2'))('api');var moment=require(_0x82e9('0x3'));var BPromise=require(_0x82e9('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x82e9('0x5'));var rimraf=require(_0x82e9('0x6'));var config=require(_0x82e9('0x7'));var attributes=require(_0x82e9('0x8'));module['exports']=function(_0x9fcd17,_0x4632d5){return _0x9fcd17[_0x82e9('0x9')](_0x82e9('0xa'),attributes,{'tableName':_0x82e9('0xb'),'paranoid':![],'indexes':[{'name':'salesforce_unique_index','fields':[_0x82e9('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};