56d1defdeb443a4ec500bfd836d76e5bfa4aca86
[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 _0xd502=['bluebird','request-promise','path','rimraf','../../config/environment','./analyticCustomReport.attributes','exports','define','AnalyticCustomReport','lodash','../../config/logger','moment'];(function(_0x597e6c,_0x37ddaa){var _0x10bc1c=function(_0x1a5fda){while(--_0x1a5fda){_0x597e6c['push'](_0x597e6c['shift']());}};_0x10bc1c(++_0x37ddaa);}(_0xd502,0x135));var _0x2d50=function(_0x5c8628,_0x2fc5f5){_0x5c8628=_0x5c8628-0x0;var _0xcbd50e=_0xd502[_0x5c8628];return _0xcbd50e;};'use strict';var _=require(_0x2d50('0x0'));var util=require('util');var logger=require(_0x2d50('0x1'))('api');var moment=require(_0x2d50('0x2'));var BPromise=require(_0x2d50('0x3'));var rp=require(_0x2d50('0x4'));var fs=require('fs');var path=require(_0x2d50('0x5'));var rimraf=require(_0x2d50('0x6'));var config=require(_0x2d50('0x7'));var attributes=require(_0x2d50('0x8'));module[_0x2d50('0x9')]=function(_0x137dce,_0x1e6624){return _0x137dce[_0x2d50('0xa')](_0x2d50('0xb'),attributes,{'tableName':'analytics_custom_reports','paranoid':!![],'indexes':[],'timestamps':!![]});};