06ce528817bb730c6c77cf86dfdcc47e3e3ff468
[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 _0xe556=['rimraf','./voiceQueueReport.attributes','exports','define','VoiceQueueReport','report_queue','uniqueid','calleridnum','lodash','util','api','bluebird','request-promise','path'];(function(_0x4244bb,_0x12ef95){var _0x318297=function(_0x5eacaf){while(--_0x5eacaf){_0x4244bb['push'](_0x4244bb['shift']());}};_0x318297(++_0x12ef95);}(_0xe556,0x182));var _0x6e55=function(_0x47f883,_0x375f48){_0x47f883=_0x47f883-0x0;var _0x29f7c5=_0xe556[_0x47f883];return _0x29f7c5;};'use strict';var _=require(_0x6e55('0x0'));var util=require(_0x6e55('0x1'));var logger=require('../../config/logger')(_0x6e55('0x2'));var moment=require('moment');var BPromise=require(_0x6e55('0x3'));var rp=require(_0x6e55('0x4'));var fs=require('fs');var path=require(_0x6e55('0x5'));var rimraf=require(_0x6e55('0x6'));var config=require('../../config/environment');var attributes=require(_0x6e55('0x7'));module[_0x6e55('0x8')]=function(_0x15a655,_0x5e4bda){return _0x15a655[_0x6e55('0x9')](_0x6e55('0xa'),attributes,{'tableName':_0x6e55('0xb'),'paranoid':![],'indexes':[{'fields':[_0x6e55('0xc')]},{'fields':[_0x6e55('0xd')]}],'timestamps':!![]});};