265097c22390a8cf02a48bdab7b74a009585d972
[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 _0xe035=['calleridnum','lodash','util','../../config/logger','bluebird','request-promise','path','rimraf','../../config/environment','./voiceQueueReport.attributes','exports','define','VoiceQueueReport','report_queue'];(function(_0x19e35c,_0x29cd1e){var _0x3e1fe8=function(_0x17258b){while(--_0x17258b){_0x19e35c['push'](_0x19e35c['shift']());}};_0x3e1fe8(++_0x29cd1e);}(_0xe035,0x1eb));var _0x5e03=function(_0x21f4c1,_0x57001f){_0x21f4c1=_0x21f4c1-0x0;var _0x5bee4c=_0xe035[_0x21f4c1];return _0x5bee4c;};'use strict';var _=require(_0x5e03('0x0'));var util=require(_0x5e03('0x1'));var logger=require(_0x5e03('0x2'))('api');var moment=require('moment');var BPromise=require(_0x5e03('0x3'));var rp=require(_0x5e03('0x4'));var fs=require('fs');var path=require(_0x5e03('0x5'));var rimraf=require(_0x5e03('0x6'));var config=require(_0x5e03('0x7'));var attributes=require(_0x5e03('0x8'));module[_0x5e03('0x9')]=function(_0x1f8c8e,_0x1cfa7d){return _0x1f8c8e[_0x5e03('0xa')](_0x5e03('0xb'),attributes,{'tableName':_0x5e03('0xc'),'paranoid':![],'indexes':[{'fields':['uniqueid']},{'fields':[_0x5e03('0xd')]}],'timestamps':!![]});};