Built motion from commit 14588770.|2.5.38
[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 _0x805e=['uniqueid','calleridnum','util','api','moment','bluebird','request-promise','../../config/environment','exports','define','VoiceQueueReport'];(function(_0x14f466,_0xa58628){var _0xd8d98b=function(_0x2aed63){while(--_0x2aed63){_0x14f466['push'](_0x14f466['shift']());}};_0xd8d98b(++_0xa58628);}(_0x805e,0x70));var _0xe805=function(_0x19c765,_0x5c7831){_0x19c765=_0x19c765-0x0;var _0x6e07a0=_0x805e[_0x19c765];return _0x6e07a0;};'use strict';var _=require('lodash');var util=require(_0xe805('0x0'));var logger=require('../../config/logger')(_0xe805('0x1'));var moment=require(_0xe805('0x2'));var BPromise=require(_0xe805('0x3'));var rp=require(_0xe805('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xe805('0x5'));var attributes=require('./voiceQueueReport.attributes');module[_0xe805('0x6')]=function(_0x5d74a5,_0x3260a2){return _0x5d74a5[_0xe805('0x7')](_0xe805('0x8'),attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':[_0xe805('0x9')]},{'fields':[_0xe805('0xa')]}],'timestamps':!![]});};