Built motion from commit 753c950e.|2.5.42
[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 _0xe8a4=['ReportAgentPreview','report_agent_preview','lodash','util','api','moment','bluebird','./reportAgentPreview.attributes','exports','define'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0xe8a4,0x19c));var _0x4e8a=function(_0x6c993a,_0x5ea3ab){_0x6c993a=_0x6c993a-0x0;var _0x27f547=_0xe8a4[_0x6c993a];return _0x27f547;};'use strict';var _=require(_0x4e8a('0x0'));var util=require(_0x4e8a('0x1'));var logger=require('../../config/logger')(_0x4e8a('0x2'));var moment=require(_0x4e8a('0x3'));var BPromise=require(_0x4e8a('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x4e8a('0x5'));module[_0x4e8a('0x6')]=function(_0xe8fbe7,_0xc1ccbb){return _0xe8fbe7[_0x4e8a('0x7')](_0x4e8a('0x8'),attributes,{'tableName':_0x4e8a('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};