4b1e97b41623169615ac8860bdaa9103f29dd6fe
[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 _0x897a=['report_agent','uniqueid','destuniqueid','lodash','api','moment','bluebird','request-promise','path','../../config/environment','./voiceAgentReport.attributes','exports','define','VoiceAgentReport'];(function(_0x56a061,_0x53fb1b){var _0x105fa0=function(_0x164d08){while(--_0x164d08){_0x56a061['push'](_0x56a061['shift']());}};_0x105fa0(++_0x53fb1b);}(_0x897a,0xe3));var _0xa897=function(_0x3ee10e,_0x14c8de){_0x3ee10e=_0x3ee10e-0x0;var _0x19fba9=_0x897a[_0x3ee10e];return _0x19fba9;};'use strict';var _=require(_0xa897('0x0'));var util=require('util');var logger=require('../../config/logger')(_0xa897('0x1'));var moment=require(_0xa897('0x2'));var BPromise=require(_0xa897('0x3'));var rp=require(_0xa897('0x4'));var fs=require('fs');var path=require(_0xa897('0x5'));var rimraf=require('rimraf');var config=require(_0xa897('0x6'));var attributes=require(_0xa897('0x7'));module[_0xa897('0x8')]=function(_0x377883,_0x347735){return _0x377883[_0xa897('0x9')](_0xa897('0xa'),attributes,{'tableName':_0xa897('0xb'),'paranoid':![],'indexes':[{'fields':[_0xa897('0xc'),_0xa897('0xd')]}],'timestamps':!![]});};