98dbf9949ab8e0eb9246a3214ec2e66c09037961
[motion2.git] / server / api / voiceDialReport / voiceDialReport.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 _0x996a=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./voiceDialReport.attributes','exports','define','VoiceDialReport','report_dial','lodash','../../config/logger'];(function(_0xbd08b4,_0x4790ed){var _0x314f1e=function(_0x161589){while(--_0x161589){_0xbd08b4['push'](_0xbd08b4['shift']());}};_0x314f1e(++_0x4790ed);}(_0x996a,0x1be));var _0xa996=function(_0x12373e,_0x3ab0ea){_0x12373e=_0x12373e-0x0;var _0x25f8ee=_0x996a[_0x12373e];return _0x25f8ee;};'use strict';var _=require(_0xa996('0x0'));var util=require('util');var logger=require(_0xa996('0x1'))(_0xa996('0x2'));var moment=require(_0xa996('0x3'));var BPromise=require(_0xa996('0x4'));var rp=require(_0xa996('0x5'));var fs=require('fs');var path=require(_0xa996('0x6'));var rimraf=require(_0xa996('0x7'));var config=require(_0xa996('0x8'));var attributes=require(_0xa996('0x9'));module[_0xa996('0xa')]=function(_0x1e88d9,_0x4f5966){return _0x1e88d9[_0xa996('0xb')](_0xa996('0xc'),attributes,{'tableName':_0xa996('0xd'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};