fe72ac2969165107bfadfb23450dc16dd1854726
[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 _0x7781=['request-promise','path','./intSalesforceField.attributes','exports','define','SalesforceField','salesforce_unique_index','idField','FieldId','lodash','util','../../config/logger','api','bluebird'];(function(_0x413feb,_0x10477f){var _0x40ee88=function(_0x32a3f6){while(--_0x32a3f6){_0x413feb['push'](_0x413feb['shift']());}};_0x40ee88(++_0x10477f);}(_0x7781,0x19f));var _0x1778=function(_0x5168ad,_0x278244){_0x5168ad=_0x5168ad-0x0;var _0x4b4b9f=_0x7781[_0x5168ad];return _0x4b4b9f;};'use strict';var _=require(_0x1778('0x0'));var util=require(_0x1778('0x1'));var logger=require(_0x1778('0x2'))(_0x1778('0x3'));var moment=require('moment');var BPromise=require(_0x1778('0x4'));var rp=require(_0x1778('0x5'));var fs=require('fs');var path=require(_0x1778('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x1778('0x7'));module[_0x1778('0x8')]=function(_0x4b3aad,_0x506ddc){return _0x4b3aad[_0x1778('0x9')](_0x1778('0xa'),attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x1778('0xb'),'fields':[_0x1778('0xc'),_0x1778('0xd')],'unique':!![]}],'timestamps':!![]});};