008ce1ffd4577f77a0d2790e32fbca3d8e057c75
[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 _0x3e51=['rimraf','../../config/environment','exports','define','VoiceDialReport','report_dial','uniqueid','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x462679,_0x2e8206){var _0x314dc3=function(_0x5e1a14){while(--_0x5e1a14){_0x462679['push'](_0x462679['shift']());}};_0x314dc3(++_0x2e8206);}(_0x3e51,0xa3));var _0x13e5=function(_0x5e804f,_0xd2ba4){_0x5e804f=_0x5e804f-0x0;var _0x215ac2=_0x3e51[_0x5e804f];return _0x215ac2;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x13e5('0x0'))(_0x13e5('0x1'));var moment=require(_0x13e5('0x2'));var BPromise=require(_0x13e5('0x3'));var rp=require(_0x13e5('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x13e5('0x5'));var config=require(_0x13e5('0x6'));var attributes=require('./voiceDialReport.attributes');module[_0x13e5('0x7')]=function(_0x356aad,_0x53ae8d){return _0x356aad[_0x13e5('0x8')](_0x13e5('0x9'),attributes,{'tableName':_0x13e5('0xa'),'paranoid':![],'indexes':[{'fields':[_0x13e5('0xb')]}],'timestamps':!![]});};