e8ebbba268b888247e22b6662899b2a1d02bb740
[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 _0x20c0=['lodash','../../config/logger','api','moment','request-promise','../../config/environment','exports','define','VoiceDialReport','report_dial'];(function(_0x313f67,_0x1495c6){var _0x3a69d6=function(_0x332c62){while(--_0x332c62){_0x313f67['push'](_0x313f67['shift']());}};_0x3a69d6(++_0x1495c6);}(_0x20c0,0x1b8));var _0x020c=function(_0x262313,_0x19ddd8){_0x262313=_0x262313-0x0;var _0x15e0d9=_0x20c0[_0x262313];return _0x15e0d9;};'use strict';var _=require(_0x020c('0x0'));var util=require('util');var logger=require(_0x020c('0x1'))(_0x020c('0x2'));var moment=require(_0x020c('0x3'));var BPromise=require('bluebird');var rp=require(_0x020c('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x020c('0x5'));var attributes=require('./voiceDialReport.attributes');module[_0x020c('0x6')]=function(_0x1f9a7d,_0xaf1bad){return _0x1f9a7d[_0x020c('0x7')](_0x020c('0x8'),attributes,{'tableName':_0x020c('0x9'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};