Built motion from commit c116dc8b.|2.6.30
[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 _0x499f=['util','../../config/logger','api','moment','bluebird','path','./analyticFieldReport.attributes','exports','AnalyticFieldReport','analytics_report_fields','lodash'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0x499f,0x11d));var _0xf499=function(_0x4695ba,_0x5a7f2a){_0x4695ba=_0x4695ba-0x0;var _0x524b7d=_0x499f[_0x4695ba];return _0x524b7d;};'use strict';var _=require(_0xf499('0x0'));var util=require(_0xf499('0x1'));var logger=require(_0xf499('0x2'))(_0xf499('0x3'));var moment=require(_0xf499('0x4'));var BPromise=require(_0xf499('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf499('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xf499('0x7'));module[_0xf499('0x8')]=function(_0x426c6f,_0xca3eba){return _0x426c6f['define'](_0xf499('0x9'),attributes,{'tableName':_0xf499('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};