Built motion from commit 00bf23f6.|2.6.16
[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 _0x13c4=['rimraf','./integrationReport.attributes','exports','define','IntegrationReport','util','../../config/logger','moment','bluebird','path'];(function(_0x217f24,_0x4cd621){var _0x140852=function(_0x421a4e){while(--_0x421a4e){_0x217f24['push'](_0x217f24['shift']());}};_0x140852(++_0x4cd621);}(_0x13c4,0x1e5));var _0x413c=function(_0x151ed6,_0x6e971){_0x151ed6=_0x151ed6-0x0;var _0x218a0d=_0x13c4[_0x151ed6];return _0x218a0d;};'use strict';var _=require('lodash');var util=require(_0x413c('0x0'));var logger=require(_0x413c('0x1'))('api');var moment=require(_0x413c('0x2'));var BPromise=require(_0x413c('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x413c('0x4'));var rimraf=require(_0x413c('0x5'));var config=require('../../config/environment');var attributes=require(_0x413c('0x6'));module[_0x413c('0x7')]=function(_0x3fd8cb,_0x14dfc0){return _0x3fd8cb[_0x413c('0x8')](_0x413c('0x9'),attributes,{'tableName':'report_integration','paranoid':![],'indexes':[],'timestamps':!![]});};