be37b9ff1957d1ed26c66488e48df0fbe591f59f
[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 _0x79f1=['bluebird','request-promise','path','./voiceAgentReport.attributes','exports','define','VoiceAgentReport','report_agent','uniqueid','destuniqueid','lodash','util','../../config/logger','api'];(function(_0x398ee9,_0x24938e){var _0x52178c=function(_0x45e741){while(--_0x45e741){_0x398ee9['push'](_0x398ee9['shift']());}};_0x52178c(++_0x24938e);}(_0x79f1,0xea));var _0x179f=function(_0x12a2a6,_0x374ff1){_0x12a2a6=_0x12a2a6-0x0;var _0x1754ae=_0x79f1[_0x12a2a6];return _0x1754ae;};'use strict';var _=require(_0x179f('0x0'));var util=require(_0x179f('0x1'));var logger=require(_0x179f('0x2'))(_0x179f('0x3'));var moment=require('moment');var BPromise=require(_0x179f('0x4'));var rp=require(_0x179f('0x5'));var fs=require('fs');var path=require(_0x179f('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x179f('0x7'));module[_0x179f('0x8')]=function(_0x265d64,_0x13d49d){return _0x265d64[_0x179f('0x9')](_0x179f('0xa'),attributes,{'tableName':_0x179f('0xb'),'paranoid':![],'indexes':[{'fields':[_0x179f('0xc'),_0x179f('0xd')]}],'timestamps':!![]});};