dfa0514f714978c7990eed74702bc35b4174c54d
[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 _0x198c=['../../config/logger','api','moment','bluebird','rimraf','../../config/environment','exports','define','ReportAgentPreview','report_agent_preview','lodash','util'];(function(_0x206210,_0x5c7d){var _0xae70e7=function(_0x395bed){while(--_0x395bed){_0x206210['push'](_0x206210['shift']());}};_0xae70e7(++_0x5c7d);}(_0x198c,0xe2));var _0xc198=function(_0x3b18f1,_0x18e362){_0x3b18f1=_0x3b18f1-0x0;var _0x4d4326=_0x198c[_0x3b18f1];return _0x4d4326;};'use strict';var _=require(_0xc198('0x0'));var util=require(_0xc198('0x1'));var logger=require(_0xc198('0x2'))(_0xc198('0x3'));var moment=require(_0xc198('0x4'));var BPromise=require(_0xc198('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xc198('0x6'));var config=require(_0xc198('0x7'));var attributes=require('./reportAgentPreview.attributes');module[_0xc198('0x8')]=function(_0x383c58,_0x475adf){return _0x383c58[_0xc198('0x9')](_0xc198('0xa'),attributes,{'tableName':_0xc198('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};