998ff8232af6a975565db4066ac61f9db82eea2d
[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 _0xfb99=['report_call','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','exports','define','VoiceCallReport'];(function(_0x55f8b4,_0x43f30d){var _0x2475f9=function(_0xdd6f4a){while(--_0xdd6f4a){_0x55f8b4['push'](_0x55f8b4['shift']());}};_0x2475f9(++_0x43f30d);}(_0xfb99,0x1e1));var _0x9fb9=function(_0x539505,_0x570ec5){_0x539505=_0x539505-0x0;var _0x3ac150=_0xfb99[_0x539505];return _0x3ac150;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x9fb9('0x0'))('api');var moment=require(_0x9fb9('0x1'));var BPromise=require(_0x9fb9('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9fb9('0x3'));var rimraf=require(_0x9fb9('0x4'));var config=require(_0x9fb9('0x5'));var attributes=require('./voiceCallReport.attributes');module[_0x9fb9('0x6')]=function(_0x40ec37,_0x3bfa3){return _0x40ec37[_0x9fb9('0x7')](_0x9fb9('0x8'),attributes,{'tableName':_0x9fb9('0x9'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};