Built motion from commit 25580385.|2.6.2
[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 _0xf596=['rimraf','../../config/environment','exports','VoiceDialReport','report_dial','uniqueid','lodash','../../config/logger','api','moment','bluebird','path'];(function(_0x5e465a,_0x3e0f32){var _0x52c7db=function(_0x2c9dea){while(--_0x2c9dea){_0x5e465a['push'](_0x5e465a['shift']());}};_0x52c7db(++_0x3e0f32);}(_0xf596,0x66));var _0x6f59=function(_0x1b3aef,_0x13548e){_0x1b3aef=_0x1b3aef-0x0;var _0x20fe33=_0xf596[_0x1b3aef];return _0x20fe33;};'use strict';var _=require(_0x6f59('0x0'));var util=require('util');var logger=require(_0x6f59('0x1'))(_0x6f59('0x2'));var moment=require(_0x6f59('0x3'));var BPromise=require(_0x6f59('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6f59('0x5'));var rimraf=require(_0x6f59('0x6'));var config=require(_0x6f59('0x7'));var attributes=require('./voiceDialReport.attributes');module[_0x6f59('0x8')]=function(_0x3ac024,_0x1e1e79){return _0x3ac024['define'](_0x6f59('0x9'),attributes,{'tableName':_0x6f59('0xa'),'paranoid':![],'indexes':[{'fields':[_0x6f59('0xb')]}],'timestamps':!![]});};