d32192b13fa7cafc43e2dfba25ce3552b0902817
[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 _0x2a8e=['rimraf','exports','define','VoiceAgentReport','uniqueid','lodash','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x4eaa30,_0x5b4c11){var _0x28a6f4=function(_0xf07b17){while(--_0xf07b17){_0x4eaa30['push'](_0x4eaa30['shift']());}};_0x28a6f4(++_0x5b4c11);}(_0x2a8e,0x191));var _0xe2a8=function(_0x224b26,_0x504950){_0x224b26=_0x224b26-0x0;var _0x42bb22=_0x2a8e[_0x224b26];return _0x42bb22;};'use strict';var _=require(_0xe2a8('0x0'));var util=require('util');var logger=require(_0xe2a8('0x1'))(_0xe2a8('0x2'));var moment=require(_0xe2a8('0x3'));var BPromise=require(_0xe2a8('0x4'));var rp=require(_0xe2a8('0x5'));var fs=require('fs');var path=require(_0xe2a8('0x6'));var rimraf=require(_0xe2a8('0x7'));var config=require('../../config/environment');var attributes=require('./voiceAgentReport.attributes');module[_0xe2a8('0x8')]=function(_0x25f5c0,_0x1d06b8){return _0x25f5c0[_0xe2a8('0x9')](_0xe2a8('0xa'),attributes,{'tableName':'report_agent','paranoid':![],'indexes':[{'fields':[_0xe2a8('0xb'),'destuniqueid']}],'timestamps':!![]});};