e7c345e2697066803c3f1c645e3ab711e223d90c
[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 _0xa9e7=['SalesforceAccount','int_salesforce_accounts','../../config/logger','api','moment','bluebird','request-promise','path','../../config/environment','./intSalesforceAccount.attributes','exports','define'];(function(_0x3305de,_0x16582f){var _0x3b5a84=function(_0x57d7e1){while(--_0x57d7e1){_0x3305de['push'](_0x3305de['shift']());}};_0x3b5a84(++_0x16582f);}(_0xa9e7,0x86));var _0x7a9e=function(_0x36acb2,_0x12faaa){_0x36acb2=_0x36acb2-0x0;var _0x581204=_0xa9e7[_0x36acb2];return _0x581204;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x7a9e('0x0'))(_0x7a9e('0x1'));var moment=require(_0x7a9e('0x2'));var BPromise=require(_0x7a9e('0x3'));var rp=require(_0x7a9e('0x4'));var fs=require('fs');var path=require(_0x7a9e('0x5'));var rimraf=require('rimraf');var config=require(_0x7a9e('0x6'));var attributes=require(_0x7a9e('0x7'));var integrations=require('../../components/integrations/configuration');module[_0x7a9e('0x8')]=function(_0x3f2862,_0x5e2a16){return _0x3f2862[_0x7a9e('0x9')](_0x7a9e('0xa'),attributes,{'tableName':_0x7a9e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};