4b958436e3c2fc21b50aaaaf68c1cdd0c587faf6
[motion2.git] / server / api / voiceAgentReport / voiceAgentReport.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 _0xc058=['VoiceAgentReport','report_agent','uniqueid','destuniqueid','lodash','../../config/logger','api','bluebird','request-promise','path','rimraf','./voiceAgentReport.attributes','define'];(function(_0x403fac,_0x386bd8){var _0x3f217e=function(_0xa17bcd){while(--_0xa17bcd){_0x403fac['push'](_0x403fac['shift']());}};_0x3f217e(++_0x386bd8);}(_0xc058,0xc7));var _0x8c05=function(_0x27af45,_0x1b57aa){_0x27af45=_0x27af45-0x0;var _0x18df21=_0xc058[_0x27af45];return _0x18df21;};'use strict';var _=require(_0x8c05('0x0'));var util=require('util');var logger=require(_0x8c05('0x1'))(_0x8c05('0x2'));var moment=require('moment');var BPromise=require(_0x8c05('0x3'));var rp=require(_0x8c05('0x4'));var fs=require('fs');var path=require(_0x8c05('0x5'));var rimraf=require(_0x8c05('0x6'));var config=require('../../config/environment');var attributes=require(_0x8c05('0x7'));module['exports']=function(_0x26af9c,_0x112e14){return _0x26af9c[_0x8c05('0x8')](_0x8c05('0x9'),attributes,{'tableName':_0x8c05('0xa'),'paranoid':![],'indexes':[{'fields':[_0x8c05('0xb'),_0x8c05('0xc')]}],'timestamps':!![]});};