d173153f60c1b4f013d2a6912d5d5f541602f012
[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 _0x9811=['../../config/environment','exports','define','ReportAgentPreview','lodash','../../config/logger','moment','path','rimraf'];(function(_0x4b185a,_0x4c131f){var _0x578334=function(_0x1f571f){while(--_0x1f571f){_0x4b185a['push'](_0x4b185a['shift']());}};_0x578334(++_0x4c131f);}(_0x9811,0xf7));var _0x1981=function(_0x34f2ef,_0x5ba721){_0x34f2ef=_0x34f2ef-0x0;var _0x3615f2=_0x9811[_0x34f2ef];return _0x3615f2;};'use strict';var _=require(_0x1981('0x0'));var util=require('util');var logger=require(_0x1981('0x1'))('api');var moment=require(_0x1981('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x1981('0x3'));var rimraf=require(_0x1981('0x4'));var config=require(_0x1981('0x5'));var attributes=require('./reportAgentPreview.attributes');module[_0x1981('0x6')]=function(_0x1c8e9d,_0x389043){return _0x1c8e9d[_0x1981('0x7')](_0x1981('0x8'),attributes,{'tableName':'report_agent_preview','paranoid':![],'indexes':[],'timestamps':!![]});};