Built motion from commit 85328c08.|2.5.50
[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 _0x50f0=['moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','VoiceCallReport','report_call','uniqueid','lodash','util','api'];(function(_0x3cac55,_0x586499){var _0x3a598f=function(_0x61800){while(--_0x61800){_0x3cac55['push'](_0x3cac55['shift']());}};_0x3a598f(++_0x586499);}(_0x50f0,0x1cb));var _0x050f=function(_0x28e2cd,_0x153b42){_0x28e2cd=_0x28e2cd-0x0;var _0x11fd46=_0x50f0[_0x28e2cd];return _0x11fd46;};'use strict';var _=require(_0x050f('0x0'));var util=require(_0x050f('0x1'));var logger=require('../../config/logger')(_0x050f('0x2'));var moment=require(_0x050f('0x3'));var BPromise=require(_0x050f('0x4'));var rp=require(_0x050f('0x5'));var fs=require('fs');var path=require(_0x050f('0x6'));var rimraf=require(_0x050f('0x7'));var config=require(_0x050f('0x8'));var attributes=require('./voiceCallReport.attributes');module[_0x050f('0x9')]=function(_0xed99e4,_0xdf8793){return _0xed99e4[_0x050f('0xa')](_0x050f('0xb'),attributes,{'tableName':_0x050f('0xc'),'paranoid':![],'indexes':[{'fields':[_0x050f('0xd')]}],'timestamps':!![]});};