6cae6b7b0bbf6bf8732e2ff3544c7533b657486f
[motion2.git] / server / api / intSalesforceAccount / intSalesforceAccount.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 _0xaee0=['SalesforceAccount','int_salesforce_accounts','lodash','util','../../config/logger','api','request-promise','path','../../config/environment','./intSalesforceAccount.attributes','../../components/integrations/configuration','exports','define'];(function(_0x1cee8c,_0x361c32){var _0x3800dc=function(_0x4d0d79){while(--_0x4d0d79){_0x1cee8c['push'](_0x1cee8c['shift']());}};_0x3800dc(++_0x361c32);}(_0xaee0,0x17b));var _0x0aee=function(_0xd91aea,_0x90202d){_0xd91aea=_0xd91aea-0x0;var _0xed7cb0=_0xaee0[_0xd91aea];return _0xed7cb0;};'use strict';var _=require(_0x0aee('0x0'));var util=require(_0x0aee('0x1'));var logger=require(_0x0aee('0x2'))(_0x0aee('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x0aee('0x4'));var fs=require('fs');var path=require(_0x0aee('0x5'));var rimraf=require('rimraf');var config=require(_0x0aee('0x6'));var attributes=require(_0x0aee('0x7'));var integrations=require(_0x0aee('0x8'));module[_0x0aee('0x9')]=function(_0x686229,_0x5a09cd){return _0x686229[_0x0aee('0xa')](_0x0aee('0xb'),attributes,{'tableName':_0x0aee('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};