8b106499db66a8f6032e4b3c4fbfd2151eff9e6f
[motion2.git] / server / api / voiceCallReport / voiceCallReport.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 _0xbc96=['lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','uniqueid'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0xbc96,0x1c0));var _0x6bc9=function(_0x3ab51d,_0x2fa01d){_0x3ab51d=_0x3ab51d-0x0;var _0x29a04e=_0xbc96[_0x3ab51d];return _0x29a04e;};'use strict';var _=require(_0x6bc9('0x0'));var util=require(_0x6bc9('0x1'));var logger=require(_0x6bc9('0x2'))(_0x6bc9('0x3'));var moment=require('moment');var BPromise=require(_0x6bc9('0x4'));var rp=require(_0x6bc9('0x5'));var fs=require('fs');var path=require(_0x6bc9('0x6'));var rimraf=require(_0x6bc9('0x7'));var config=require('../../config/environment');var attributes=require(_0x6bc9('0x8'));module[_0x6bc9('0x9')]=function(_0x4a0836,_0x4a7033){return _0x4a0836[_0x6bc9('0xa')](_0x6bc9('0xb'),attributes,{'tableName':_0x6bc9('0xc'),'paranoid':![],'indexes':[{'fields':[_0x6bc9('0xd')]}],'timestamps':!![]});};