d5837460f77e13df0b5845f70d050e058be92d63
[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 _0xcd2c=['moment','bluebird','../../config/environment','./voiceQueueReport.attributes','exports','define','uniqueid','calleridnum','util','api'];(function(_0x4cb5fa,_0x267bb8){var _0x2720f7=function(_0x53418e){while(--_0x53418e){_0x4cb5fa['push'](_0x4cb5fa['shift']());}};_0x2720f7(++_0x267bb8);}(_0xcd2c,0xc6));var _0xccd2=function(_0x23473c,_0x43c686){_0x23473c=_0x23473c-0x0;var _0x4896e1=_0xcd2c[_0x23473c];return _0x4896e1;};'use strict';var _=require('lodash');var util=require(_0xccd2('0x0'));var logger=require('../../config/logger')(_0xccd2('0x1'));var moment=require(_0xccd2('0x2'));var BPromise=require(_0xccd2('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xccd2('0x4'));var attributes=require(_0xccd2('0x5'));module[_0xccd2('0x6')]=function(_0x18b32e,_0x1ddf42){return _0x18b32e[_0xccd2('0x7')]('VoiceQueueReport',attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':[_0xccd2('0x8')]},{'fields':[_0xccd2('0x9')]}],'timestamps':!![]});};