Built motion from commit (unavailable).|2.4.3
[motion2.git] / server / api / voiceQueueReport / voiceQueueReport.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 _0xaa03=['path','rimraf','./voiceQueueReport.attributes','exports','define','VoiceQueueReport','report_queue','uniqueid','util','../../config/logger','api','bluebird','request-promise'];(function(_0x45b034,_0x3a57dd){var _0x509cb0=function(_0x3a89d5){while(--_0x3a89d5){_0x45b034['push'](_0x45b034['shift']());}};_0x509cb0(++_0x3a57dd);}(_0xaa03,0xb1));var _0x3aa0=function(_0x3dc7f0,_0x203010){_0x3dc7f0=_0x3dc7f0-0x0;var _0x4289fc=_0xaa03[_0x3dc7f0];return _0x4289fc;};'use strict';var _=require('lodash');var util=require(_0x3aa0('0x0'));var logger=require(_0x3aa0('0x1'))(_0x3aa0('0x2'));var moment=require('moment');var BPromise=require(_0x3aa0('0x3'));var rp=require(_0x3aa0('0x4'));var fs=require('fs');var path=require(_0x3aa0('0x5'));var rimraf=require(_0x3aa0('0x6'));var config=require('../../config/environment');var attributes=require(_0x3aa0('0x7'));module[_0x3aa0('0x8')]=function(_0x40facd,_0x1d619b){return _0x40facd[_0x3aa0('0x9')](_0x3aa0('0xa'),attributes,{'tableName':_0x3aa0('0xb'),'paranoid':![],'indexes':[{'fields':[_0x3aa0('0xc')]},{'fields':['calleridnum']}],'timestamps':!![]});};