767798231e60a8dbd5a020a51e0aecd7341e4b6a
[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 _0xd64b=['lodash','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intSalesforceField.attributes','exports','define','SalesforceField','int_salesforce_fields','idField','FieldId'];(function(_0x3d4c79,_0x505110){var _0x131ed7=function(_0xbd5a1b){while(--_0xbd5a1b){_0x3d4c79['push'](_0x3d4c79['shift']());}};_0x131ed7(++_0x505110);}(_0xd64b,0x140));var _0xbd64=function(_0xe6f4ef,_0x4e34cc){_0xe6f4ef=_0xe6f4ef-0x0;var _0x4f3447=_0xd64b[_0xe6f4ef];return _0x4f3447;};'use strict';var _=require(_0xbd64('0x0'));var util=require(_0xbd64('0x1'));var logger=require('../../config/logger')(_0xbd64('0x2'));var moment=require(_0xbd64('0x3'));var BPromise=require(_0xbd64('0x4'));var rp=require(_0xbd64('0x5'));var fs=require('fs');var path=require(_0xbd64('0x6'));var rimraf=require(_0xbd64('0x7'));var config=require(_0xbd64('0x8'));var attributes=require(_0xbd64('0x9'));module[_0xbd64('0xa')]=function(_0x18b56a,_0x577486){return _0x18b56a[_0xbd64('0xb')](_0xbd64('0xc'),attributes,{'tableName':_0xbd64('0xd'),'paranoid':![],'indexes':[{'name':'salesforce_unique_index','fields':[_0xbd64('0xe'),_0xbd64('0xf')],'unique':!![]}],'timestamps':!![]});};