Built motion from commit (unavailable).|2.4.18
[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 _0xab24=['rimraf','../../config/environment','./jscriptySessionReport.attributes','exports','JscriptySessionReport','report_jscripty_sessions','lodash','api','moment','path'];(function(_0x395341,_0x479285){var _0x163cc0=function(_0xb5e539){while(--_0xb5e539){_0x395341['push'](_0x395341['shift']());}};_0x163cc0(++_0x479285);}(_0xab24,0x18c));var _0x4ab2=function(_0x1ada06,_0x3f4beb){_0x1ada06=_0x1ada06-0x0;var _0xcc9b24=_0xab24[_0x1ada06];return _0xcc9b24;};'use strict';var _=require(_0x4ab2('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x4ab2('0x1'));var moment=require(_0x4ab2('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x4ab2('0x3'));var rimraf=require(_0x4ab2('0x4'));var config=require(_0x4ab2('0x5'));var attributes=require(_0x4ab2('0x6'));module[_0x4ab2('0x7')]=function(_0x38a2e3,_0x47221d){return _0x38a2e3['define'](_0x4ab2('0x8'),attributes,{'tableName':_0x4ab2('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};