bf6773a991a391138983e8e10c55868b440f0d36
[motion2.git] / server / api / analyticCustomReport / analyticCustomReport.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 _0xec4f=['./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','analytics_custom_reports','util','../../config/logger','bluebird','request-promise','rimraf','../../config/environment'];(function(_0x3be8e8,_0x246a8f){var _0x5f7c64=function(_0x14b674){while(--_0x14b674){_0x3be8e8['push'](_0x3be8e8['shift']());}};_0x5f7c64(++_0x246a8f);}(_0xec4f,0x15a));var _0xfec4=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xec4f[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0xfec4('0x0'));var logger=require(_0xfec4('0x1'))('api');var moment=require('moment');var BPromise=require(_0xfec4('0x2'));var rp=require(_0xfec4('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xfec4('0x4'));var config=require(_0xfec4('0x5'));var attributes=require(_0xfec4('0x6'));module[_0xfec4('0x7')]=function(_0xbd63dc,_0x1c165e){return _0xbd63dc[_0xfec4('0x8')](_0xfec4('0x9'),attributes,{'tableName':_0xfec4('0xa'),'paranoid':!![],'indexes':[],'timestamps':!![]});};