Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / analyticFieldReport / analyticFieldReport.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 _0x4833=['request-promise','path','rimraf','../../config/environment','exports','define','AnalyticFieldReport','analytics_report_fields','lodash','util','bluebird'];(function(_0x77b38c,_0x546837){var _0x462441=function(_0x212edb){while(--_0x212edb){_0x77b38c['push'](_0x77b38c['shift']());}};_0x462441(++_0x546837);}(_0x4833,0xad));var _0x3483=function(_0x3a2a3c,_0x37bd31){_0x3a2a3c=_0x3a2a3c-0x0;var _0x50ac9a=_0x4833[_0x3a2a3c];return _0x50ac9a;};'use strict';var _=require(_0x3483('0x0'));var util=require(_0x3483('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x3483('0x2'));var rp=require(_0x3483('0x3'));var fs=require('fs');var path=require(_0x3483('0x4'));var rimraf=require(_0x3483('0x5'));var config=require(_0x3483('0x6'));var attributes=require('./analyticFieldReport.attributes');module[_0x3483('0x7')]=function(_0x5ded00,_0x3e1898){return _0x5ded00[_0x3483('0x8')](_0x3483('0x9'),attributes,{'tableName':_0x3483('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};