14647a15b654c4ddc47805a301752be137309870
[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 _0xa267=['SalesforceField','int_salesforce_fields','idField','FieldId','lodash','../../config/logger','api','bluebird','request-promise','path','../../config/environment','./intSalesforceField.attributes','exports','define'];(function(_0xbb157f,_0x120dec){var _0x1eee50=function(_0x9132bb){while(--_0x9132bb){_0xbb157f['push'](_0xbb157f['shift']());}};_0x1eee50(++_0x120dec);}(_0xa267,0x1a8));var _0x7a26=function(_0xcb17ea,_0x356d28){_0xcb17ea=_0xcb17ea-0x0;var _0x166062=_0xa267[_0xcb17ea];return _0x166062;};'use strict';var _=require(_0x7a26('0x0'));var util=require('util');var logger=require(_0x7a26('0x1'))(_0x7a26('0x2'));var moment=require('moment');var BPromise=require(_0x7a26('0x3'));var rp=require(_0x7a26('0x4'));var fs=require('fs');var path=require(_0x7a26('0x5'));var rimraf=require('rimraf');var config=require(_0x7a26('0x6'));var attributes=require(_0x7a26('0x7'));module[_0x7a26('0x8')]=function(_0x2e6bf0,_0x265897){return _0x2e6bf0[_0x7a26('0x9')](_0x7a26('0xa'),attributes,{'tableName':_0x7a26('0xb'),'paranoid':![],'indexes':[{'name':'salesforce_unique_index','fields':[_0x7a26('0xc'),_0x7a26('0xd')],'unique':!![]}],'timestamps':!![]});};