Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / reportAgentPreview / reportAgentPreview.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 _0xab93=['report_agent_preview','util','../../config/logger','api','bluebird','path','../../config/environment','./reportAgentPreview.attributes','exports','define','ReportAgentPreview'];(function(_0x59be39,_0x38558d){var _0x136795=function(_0x5e499f){while(--_0x5e499f){_0x59be39['push'](_0x59be39['shift']());}};_0x136795(++_0x38558d);}(_0xab93,0x85));var _0x3ab9=function(_0x9e7a7e,_0x34071f){_0x9e7a7e=_0x9e7a7e-0x0;var _0x3af9c2=_0xab93[_0x9e7a7e];return _0x3af9c2;};'use strict';var _=require('lodash');var util=require(_0x3ab9('0x0'));var logger=require(_0x3ab9('0x1'))(_0x3ab9('0x2'));var moment=require('moment');var BPromise=require(_0x3ab9('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3ab9('0x4'));var rimraf=require('rimraf');var config=require(_0x3ab9('0x5'));var attributes=require(_0x3ab9('0x6'));module[_0x3ab9('0x7')]=function(_0x4216f4,_0x3af4ce){return _0x4216f4[_0x3ab9('0x8')](_0x3ab9('0x9'),attributes,{'tableName':_0x3ab9('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};