cf191c4f971651b826a2e89e4e4908a092cf1a38
[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 _0x465a=['api','moment','bluebird','request-promise','../../config/environment','./voiceCallReport.attributes','exports','VoiceCallReport','report_call','uniqueid','util'];(function(_0x8f364,_0x1bef56){var _0x1c5cf2=function(_0x1e2079){while(--_0x1e2079){_0x8f364['push'](_0x8f364['shift']());}};_0x1c5cf2(++_0x1bef56);}(_0x465a,0x1d8));var _0xa465=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0x465a[_0x3947c9];return _0x2e7871;};'use strict';var _=require('lodash');var util=require(_0xa465('0x0'));var logger=require('../../config/logger')(_0xa465('0x1'));var moment=require(_0xa465('0x2'));var BPromise=require(_0xa465('0x3'));var rp=require(_0xa465('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xa465('0x5'));var attributes=require(_0xa465('0x6'));module[_0xa465('0x7')]=function(_0x172043,_0x616511){return _0x172043['define'](_0xa465('0x8'),attributes,{'tableName':_0xa465('0x9'),'paranoid':![],'indexes':[{'fields':[_0xa465('0xa')]}],'timestamps':!![]});};