e0c701ea9a2c5609cd43d01194eddbde1d084477
[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 _0xd0b4=['rimraf','../../config/environment','exports','define','IntegrationReport','report_integration','lodash','util','../../config/logger','api','bluebird','request-promise','path'];(function(_0x57811f,_0x3ae838){var _0x326f53=function(_0x2eddd2){while(--_0x2eddd2){_0x57811f['push'](_0x57811f['shift']());}};_0x326f53(++_0x3ae838);}(_0xd0b4,0x88));var _0x4d0b=function(_0x3d1d31,_0xa9cda5){_0x3d1d31=_0x3d1d31-0x0;var _0x40ed14=_0xd0b4[_0x3d1d31];return _0x40ed14;};'use strict';var _=require(_0x4d0b('0x0'));var util=require(_0x4d0b('0x1'));var logger=require(_0x4d0b('0x2'))(_0x4d0b('0x3'));var moment=require('moment');var BPromise=require(_0x4d0b('0x4'));var rp=require(_0x4d0b('0x5'));var fs=require('fs');var path=require(_0x4d0b('0x6'));var rimraf=require(_0x4d0b('0x7'));var config=require(_0x4d0b('0x8'));var attributes=require('./integrationReport.attributes');module[_0x4d0b('0x9')]=function(_0x1fe4ea,_0x5be2d2){return _0x1fe4ea[_0x4d0b('0xa')](_0x4d0b('0xb'),attributes,{'tableName':_0x4d0b('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};