a0fcf8af7a9ff34bb328e3781a88bec549c7f84e
[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 _0x6b29=['util','api','moment','bluebird','../../config/environment','./reportAgentPreview.attributes','exports','define','ReportAgentPreview','report_agent_preview','lodash'];(function(_0x2def84,_0x22a636){var _0xf7c73e=function(_0x5519b6){while(--_0x5519b6){_0x2def84['push'](_0x2def84['shift']());}};_0xf7c73e(++_0x22a636);}(_0x6b29,0x128));var _0x96b2=function(_0x54d4a8,_0x585a59){_0x54d4a8=_0x54d4a8-0x0;var _0x3b321b=_0x6b29[_0x54d4a8];return _0x3b321b;};'use strict';var _=require(_0x96b2('0x0'));var util=require(_0x96b2('0x1'));var logger=require('../../config/logger')(_0x96b2('0x2'));var moment=require(_0x96b2('0x3'));var BPromise=require(_0x96b2('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x96b2('0x5'));var attributes=require(_0x96b2('0x6'));module[_0x96b2('0x7')]=function(_0x47d896,_0x1095db){return _0x47d896[_0x96b2('0x8')](_0x96b2('0x9'),attributes,{'tableName':_0x96b2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};