d32433e307c53570bbdbc509b3d92070ebee644a
[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 _0x7884=['request-promise','path','rimraf','./voiceQueueReport.attributes','exports','define','VoiceQueueReport','report_queue','calleridnum','lodash','util','../../config/logger','api','moment'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0x7884,0x19f));var _0x4788=function(_0x2ce6ec,_0x36e168){_0x2ce6ec=_0x2ce6ec-0x0;var _0xe2e8ab=_0x7884[_0x2ce6ec];return _0xe2e8ab;};'use strict';var _=require(_0x4788('0x0'));var util=require(_0x4788('0x1'));var logger=require(_0x4788('0x2'))(_0x4788('0x3'));var moment=require(_0x4788('0x4'));var BPromise=require('bluebird');var rp=require(_0x4788('0x5'));var fs=require('fs');var path=require(_0x4788('0x6'));var rimraf=require(_0x4788('0x7'));var config=require('../../config/environment');var attributes=require(_0x4788('0x8'));module[_0x4788('0x9')]=function(_0x2d5a61,_0x35b6e5){return _0x2d5a61[_0x4788('0xa')](_0x4788('0xb'),attributes,{'tableName':_0x4788('0xc'),'paranoid':![],'indexes':[{'fields':['uniqueid']},{'fields':[_0x4788('0xd')]}],'timestamps':!![]});};