c8c35deeb8af6eb7de1fa1813527bb942b0d7ead
[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 _0x09fe=['util','../../config/logger','api','bluebird','rimraf','exports','AnalyticCustomReport'];(function(_0x1ab797,_0x38a3f0){var _0x52e635=function(_0x4842e6){while(--_0x4842e6){_0x1ab797['push'](_0x1ab797['shift']());}};_0x52e635(++_0x38a3f0);}(_0x09fe,0x13b));var _0xe09f=function(_0x11c271,_0x3051f3){_0x11c271=_0x11c271-0x0;var _0x549ef2=_0x09fe[_0x11c271];return _0x549ef2;};'use strict';var _=require('lodash');var util=require(_0xe09f('0x0'));var logger=require(_0xe09f('0x1'))(_0xe09f('0x2'));var moment=require('moment');var BPromise=require(_0xe09f('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xe09f('0x4'));var config=require('../../config/environment');var attributes=require('./analyticCustomReport.attributes');module[_0xe09f('0x5')]=function(_0x1f7934,_0x3d04e7){return _0x1f7934['define'](_0xe09f('0x6'),attributes,{'tableName':'analytics_custom_reports','paranoid':!![],'indexes':[],'timestamps':!![]});};