f752534ca37f881b6cbbdeff649dd2cfb1279ffd
[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 _0x6484=['uniqueid','util','../../config/logger','api','moment','request-promise','path','../../config/environment','./voiceDialReport.attributes','exports','define','VoiceDialReport','report_dial'];(function(_0xf30651,_0x964c8){var _0x5382a0=function(_0x29d618){while(--_0x29d618){_0xf30651['push'](_0xf30651['shift']());}};_0x5382a0(++_0x964c8);}(_0x6484,0x1bb));var _0x4648=function(_0x58a3ab,_0x5a7ee4){_0x58a3ab=_0x58a3ab-0x0;var _0x791961=_0x6484[_0x58a3ab];return _0x791961;};'use strict';var _=require('lodash');var util=require(_0x4648('0x0'));var logger=require(_0x4648('0x1'))(_0x4648('0x2'));var moment=require(_0x4648('0x3'));var BPromise=require('bluebird');var rp=require(_0x4648('0x4'));var fs=require('fs');var path=require(_0x4648('0x5'));var rimraf=require('rimraf');var config=require(_0x4648('0x6'));var attributes=require(_0x4648('0x7'));module[_0x4648('0x8')]=function(_0x59a611,_0x85581e){return _0x59a611[_0x4648('0x9')](_0x4648('0xa'),attributes,{'tableName':_0x4648('0xb'),'paranoid':![],'indexes':[{'fields':[_0x4648('0xc')]}],'timestamps':!![]});};