Built motion from commit (unavailable).|2.4.15
[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 _0xb6d6=['exports','define','VoiceDialReport','report_dial','uniqueid','util','api','moment','request-promise','rimraf','../../config/environment'];(function(_0x4cc6bc,_0x21ca25){var _0x5e25d9=function(_0x181241){while(--_0x181241){_0x4cc6bc['push'](_0x4cc6bc['shift']());}};_0x5e25d9(++_0x21ca25);}(_0xb6d6,0xb5));var _0x6b6d=function(_0x289f92,_0x112616){_0x289f92=_0x289f92-0x0;var _0x23001c=_0xb6d6[_0x289f92];return _0x23001c;};'use strict';var _=require('lodash');var util=require(_0x6b6d('0x0'));var logger=require('../../config/logger')(_0x6b6d('0x1'));var moment=require(_0x6b6d('0x2'));var BPromise=require('bluebird');var rp=require(_0x6b6d('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x6b6d('0x4'));var config=require(_0x6b6d('0x5'));var attributes=require('./voiceDialReport.attributes');module[_0x6b6d('0x6')]=function(_0x2cd03a,_0x2c2ed3){return _0x2cd03a[_0x6b6d('0x7')](_0x6b6d('0x8'),attributes,{'tableName':_0x6b6d('0x9'),'paranoid':![],'indexes':[{'fields':[_0x6b6d('0xa')]}],'timestamps':!![]});};