84b8abf44a1809c3329be50afa5a263ffe0867cc
[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 _0x8c48=['uniqueid','../../config/logger','api','moment','bluebird','path','rimraf','./voiceCallReport.attributes','exports','define','VoiceCallReport'];(function(_0x1f708e,_0x21018e){var _0x490aa8=function(_0x12e6b6){while(--_0x12e6b6){_0x1f708e['push'](_0x1f708e['shift']());}};_0x490aa8(++_0x21018e);}(_0x8c48,0x14b));var _0x88c4=function(_0xe27b65,_0x5c0f4c){_0xe27b65=_0xe27b65-0x0;var _0x17b420=_0x8c48[_0xe27b65];return _0x17b420;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x88c4('0x0'))(_0x88c4('0x1'));var moment=require(_0x88c4('0x2'));var BPromise=require(_0x88c4('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x88c4('0x4'));var rimraf=require(_0x88c4('0x5'));var config=require('../../config/environment');var attributes=require(_0x88c4('0x6'));module[_0x88c4('0x7')]=function(_0x583c86,_0x2734a6){return _0x583c86[_0x88c4('0x8')](_0x88c4('0x9'),attributes,{'tableName':'report_call','paranoid':![],'indexes':[{'fields':[_0x88c4('0xa')]}],'timestamps':!![]});};