86fca8dc60196e6ed7dfe2cdd01c48414690167b
[motion2.git] / server / api / jscriptySessionReport / jscriptySessionReport.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 _0x9a2d=['path','rimraf','../../config/environment','./jscriptySessionReport.attributes','exports','JscriptySessionReport','report_jscripty_sessions','lodash','util','api','moment','bluebird','request-promise'];(function(_0x687c5e,_0x5a397e){var _0xdeb055=function(_0x4d92a1){while(--_0x4d92a1){_0x687c5e['push'](_0x687c5e['shift']());}};_0xdeb055(++_0x5a397e);}(_0x9a2d,0xb0));var _0xd9a2=function(_0x1789dd,_0x325138){_0x1789dd=_0x1789dd-0x0;var _0x4b1526=_0x9a2d[_0x1789dd];return _0x4b1526;};'use strict';var _=require(_0xd9a2('0x0'));var util=require(_0xd9a2('0x1'));var logger=require('../../config/logger')(_0xd9a2('0x2'));var moment=require(_0xd9a2('0x3'));var BPromise=require(_0xd9a2('0x4'));var rp=require(_0xd9a2('0x5'));var fs=require('fs');var path=require(_0xd9a2('0x6'));var rimraf=require(_0xd9a2('0x7'));var config=require(_0xd9a2('0x8'));var attributes=require(_0xd9a2('0x9'));module[_0xd9a2('0xa')]=function(_0x5b1f60,_0x1efc08){return _0x5b1f60['define'](_0xd9a2('0xb'),attributes,{'tableName':_0xd9a2('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};