1307dbb11b938278fbed2d6db4cf7c5bf2a03c10
[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 _0xdf23=['VoiceAgentReport','uniqueid','destuniqueid','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./voiceAgentReport.attributes','exports'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xdf23,0x1bf));var _0x3df2=function(_0x2262fa,_0x1a58d2){_0x2262fa=_0x2262fa-0x0;var _0x439a18=_0xdf23[_0x2262fa];return _0x439a18;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x3df2('0x0'))(_0x3df2('0x1'));var moment=require(_0x3df2('0x2'));var BPromise=require(_0x3df2('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3df2('0x4'));var rimraf=require(_0x3df2('0x5'));var config=require(_0x3df2('0x6'));var attributes=require(_0x3df2('0x7'));module[_0x3df2('0x8')]=function(_0xc7a08d,_0x5d1f69){return _0xc7a08d['define'](_0x3df2('0x9'),attributes,{'tableName':'report_agent','paranoid':![],'indexes':[{'fields':[_0x3df2('0xa'),_0x3df2('0xb')]}],'timestamps':!![]});};