Built motion from commit da617fac.|2.6.6
[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 _0x8df3=['../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','IntegrationReport','util'];(function(_0x3e6729,_0x16d4af){var _0x535bcd=function(_0x5e6c5f){while(--_0x5e6c5f){_0x3e6729['push'](_0x3e6729['shift']());}};_0x535bcd(++_0x16d4af);}(_0x8df3,0xfc));var _0x38df=function(_0x2ccf81,_0x4bbda0){_0x2ccf81=_0x2ccf81-0x0;var _0x2fdfe9=_0x8df3[_0x2ccf81];return _0x2fdfe9;};'use strict';var _=require('lodash');var util=require(_0x38df('0x0'));var logger=require(_0x38df('0x1'))(_0x38df('0x2'));var moment=require(_0x38df('0x3'));var BPromise=require('bluebird');var rp=require(_0x38df('0x4'));var fs=require('fs');var path=require(_0x38df('0x5'));var rimraf=require(_0x38df('0x6'));var config=require(_0x38df('0x7'));var attributes=require('./integrationReport.attributes');module[_0x38df('0x8')]=function(_0x166f20,_0x52fbe4){return _0x166f20[_0x38df('0x9')](_0x38df('0xa'),attributes,{'tableName':'report_integration','paranoid':![],'indexes':[],'timestamps':!![]});};