Built motion from commit (unavailable).|2.5.18
[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 _0x848b=['ReportAgentPreview','report_agent_preview','util','../../config/logger','api','moment','bluebird','request-promise','exports','define'];(function(_0x17976b,_0x48c6f1){var _0x8c6b1a=function(_0x408096){while(--_0x408096){_0x17976b['push'](_0x17976b['shift']());}};_0x8c6b1a(++_0x48c6f1);}(_0x848b,0x1ce));var _0xb848=function(_0x1988c5,_0x17957e){_0x1988c5=_0x1988c5-0x0;var _0x19010e=_0x848b[_0x1988c5];return _0x19010e;};'use strict';var _=require('lodash');var util=require(_0xb848('0x0'));var logger=require(_0xb848('0x1'))(_0xb848('0x2'));var moment=require(_0xb848('0x3'));var BPromise=require(_0xb848('0x4'));var rp=require(_0xb848('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./reportAgentPreview.attributes');module[_0xb848('0x6')]=function(_0xb7f27a,_0x39d2ff){return _0xb7f27a[_0xb848('0x7')](_0xb848('0x8'),attributes,{'tableName':_0xb848('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};