e27e52dad8012c55467d4ff836c6252f08010fcc
[motion2.git] / server / api / integrationReport / integrationReport.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 _0xff70=['path','exports','define','IntegrationReport','report_integration','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x64e894,_0x137664){var _0x3c04ed=function(_0x35f1b9){while(--_0x35f1b9){_0x64e894['push'](_0x64e894['shift']());}};_0x3c04ed(++_0x137664);}(_0xff70,0xaa));var _0x0ff7=function(_0x3df223,_0x1740fc){_0x3df223=_0x3df223-0x0;var _0x562d11=_0xff70[_0x3df223];return _0x562d11;};'use strict';var _=require(_0x0ff7('0x0'));var util=require('util');var logger=require(_0x0ff7('0x1'))(_0x0ff7('0x2'));var moment=require(_0x0ff7('0x3'));var BPromise=require(_0x0ff7('0x4'));var rp=require(_0x0ff7('0x5'));var fs=require('fs');var path=require(_0x0ff7('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./integrationReport.attributes');module[_0x0ff7('0x7')]=function(_0xb4fb5a,_0x625d1d){return _0xb4fb5a[_0x0ff7('0x8')](_0x0ff7('0x9'),attributes,{'tableName':_0x0ff7('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};