c009756b7dc65647bf609de93ef1e4df499adc41
[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 _0x2c5b=['../../config/environment','./reportAgentPreview.attributes','exports','define','ReportAgentPreview','report_agent_preview','lodash','../../config/logger','api','moment','bluebird','rimraf'];(function(_0x376d6b,_0xcb98bf){var _0x4f7d19=function(_0x121cbf){while(--_0x121cbf){_0x376d6b['push'](_0x376d6b['shift']());}};_0x4f7d19(++_0xcb98bf);}(_0x2c5b,0x7e));var _0xb2c5=function(_0x4cf372,_0x2682f3){_0x4cf372=_0x4cf372-0x0;var _0x43c8b2=_0x2c5b[_0x4cf372];return _0x43c8b2;};'use strict';var _=require(_0xb2c5('0x0'));var util=require('util');var logger=require(_0xb2c5('0x1'))(_0xb2c5('0x2'));var moment=require(_0xb2c5('0x3'));var BPromise=require(_0xb2c5('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xb2c5('0x5'));var config=require(_0xb2c5('0x6'));var attributes=require(_0xb2c5('0x7'));module[_0xb2c5('0x8')]=function(_0x2eb01b,_0x11e21f){return _0x2eb01b[_0xb2c5('0x9')](_0xb2c5('0xa'),attributes,{'tableName':_0xb2c5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};