f3f549fc6be3a4b23d6b0873ca640444323575e3
[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 _0x75ca=['request-promise','path','rimraf','../../config/environment','./voiceCallReport.attributes','exports','define','VoiceCallReport','report_call','uniqueid','util','../../config/logger','moment','bluebird'];(function(_0x5bdff8,_0x589e4a){var _0x5b83ba=function(_0x1d48a3){while(--_0x1d48a3){_0x5bdff8['push'](_0x5bdff8['shift']());}};_0x5b83ba(++_0x589e4a);}(_0x75ca,0xf8));var _0xa75c=function(_0x1b70e3,_0x3a15b1){_0x1b70e3=_0x1b70e3-0x0;var _0x1452ab=_0x75ca[_0x1b70e3];return _0x1452ab;};'use strict';var _=require('lodash');var util=require(_0xa75c('0x0'));var logger=require(_0xa75c('0x1'))('api');var moment=require(_0xa75c('0x2'));var BPromise=require(_0xa75c('0x3'));var rp=require(_0xa75c('0x4'));var fs=require('fs');var path=require(_0xa75c('0x5'));var rimraf=require(_0xa75c('0x6'));var config=require(_0xa75c('0x7'));var attributes=require(_0xa75c('0x8'));module[_0xa75c('0x9')]=function(_0x80a49b,_0x190c70){return _0x80a49b[_0xa75c('0xa')](_0xa75c('0xb'),attributes,{'tableName':_0xa75c('0xc'),'paranoid':![],'indexes':[{'fields':[_0xa75c('0xd')]}],'timestamps':!![]});};