ee1aa833b782234801f6ffbc7f7302088179ceb4
[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 _0x6642=['uniqueid','lodash','util','../../config/logger','bluebird','path','rimraf','exports','VoiceCallReport','report_call'];(function(_0x1e626,_0x2c630d){var _0x4bb3e8=function(_0x8d9122){while(--_0x8d9122){_0x1e626['push'](_0x1e626['shift']());}};_0x4bb3e8(++_0x2c630d);}(_0x6642,0x105));var _0x2664=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x6642[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x2664('0x0'));var util=require(_0x2664('0x1'));var logger=require(_0x2664('0x2'))('api');var moment=require('moment');var BPromise=require(_0x2664('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x2664('0x4'));var rimraf=require(_0x2664('0x5'));var config=require('../../config/environment');var attributes=require('./voiceCallReport.attributes');module[_0x2664('0x6')]=function(_0x2071ef,_0x5297cb){return _0x2071ef['define'](_0x2664('0x7'),attributes,{'tableName':_0x2664('0x8'),'paranoid':![],'indexes':[{'fields':[_0x2664('0x9')]}],'timestamps':!![]});};