6cc53c4ca965d39c039622a3f208909fa196353f
[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 _0x3805=['report_queue','uniqueid','calleridnum','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','define'];(function(_0x47fd36,_0x41535d){var _0x21a0fc=function(_0x44c07c){while(--_0x44c07c){_0x47fd36['push'](_0x47fd36['shift']());}};_0x21a0fc(++_0x41535d);}(_0x3805,0x1f2));var _0x5380=function(_0x26ed29,_0x2288f1){_0x26ed29=_0x26ed29-0x0;var _0x26182c=_0x3805[_0x26ed29];return _0x26182c;};'use strict';var _=require(_0x5380('0x0'));var util=require(_0x5380('0x1'));var logger=require(_0x5380('0x2'))('api');var moment=require(_0x5380('0x3'));var BPromise=require(_0x5380('0x4'));var rp=require(_0x5380('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5380('0x6'));var config=require('../../config/environment');var attributes=require('./voiceQueueReport.attributes');module['exports']=function(_0x41c249,_0x2beff5){return _0x41c249[_0x5380('0x7')]('VoiceQueueReport',attributes,{'tableName':_0x5380('0x8'),'paranoid':![],'indexes':[{'fields':[_0x5380('0x9')]},{'fields':[_0x5380('0xa')]}],'timestamps':!![]});};