92631747e131940cd113d1dde3f6ff6ef932fdb7
[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 _0xb2a1=['calleridnum','util','api','moment','../../config/environment','./voiceQueueReport.attributes','exports','define','VoiceQueueReport','uniqueid'];(function(_0x44fd5c,_0x4652a3){var _0x493db7=function(_0x224946){while(--_0x224946){_0x44fd5c['push'](_0x44fd5c['shift']());}};_0x493db7(++_0x4652a3);}(_0xb2a1,0x119));var _0x1b2a=function(_0x58e82f,_0xdec98a){_0x58e82f=_0x58e82f-0x0;var _0x510c7b=_0xb2a1[_0x58e82f];return _0x510c7b;};'use strict';var _=require('lodash');var util=require(_0x1b2a('0x0'));var logger=require('../../config/logger')(_0x1b2a('0x1'));var moment=require(_0x1b2a('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x1b2a('0x3'));var attributes=require(_0x1b2a('0x4'));module[_0x1b2a('0x5')]=function(_0x59b6db,_0x3fe9f5){return _0x59b6db[_0x1b2a('0x6')](_0x1b2a('0x7'),attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':[_0x1b2a('0x8')]},{'fields':[_0x1b2a('0x9')]}],'timestamps':!![]});};