Built motion from commit 3c2ce842.|2.6.31
[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 _0xc65b=['define','SalesforceField','int_salesforce_fields','FieldId','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','../../config/environment','./intSalesforceField.attributes','exports'];(function(_0x15bc81,_0x4d4f77){var _0x59440e=function(_0x1b60f2){while(--_0x1b60f2){_0x15bc81['push'](_0x15bc81['shift']());}};_0x59440e(++_0x4d4f77);}(_0xc65b,0x112));var _0xbc65=function(_0x5b374e,_0x244e02){_0x5b374e=_0x5b374e-0x0;var _0x5da9a4=_0xc65b[_0x5b374e];return _0x5da9a4;};'use strict';var _=require(_0xbc65('0x0'));var util=require(_0xbc65('0x1'));var logger=require(_0xbc65('0x2'))('api');var moment=require(_0xbc65('0x3'));var BPromise=require(_0xbc65('0x4'));var rp=require(_0xbc65('0x5'));var fs=require('fs');var path=require(_0xbc65('0x6'));var rimraf=require(_0xbc65('0x7'));var config=require(_0xbc65('0x8'));var attributes=require(_0xbc65('0x9'));module[_0xbc65('0xa')]=function(_0x3cf04b,_0xdf4b74){return _0x3cf04b[_0xbc65('0xb')](_0xbc65('0xc'),attributes,{'tableName':_0xbc65('0xd'),'paranoid':![],'indexes':[{'name':'salesforce_unique_index','fields':['idField',_0xbc65('0xe')],'unique':!![]}],'timestamps':!![]});};