a7e6d68bbaefede96037f866554a28657dd4bf65
[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 _0x1b3e=['define','report_queue','uniqueid','lodash','../../config/logger','api','moment','bluebird','../../config/environment'];(function(_0x365de0,_0x37f736){var _0xf4b260=function(_0x405ae5){while(--_0x405ae5){_0x365de0['push'](_0x365de0['shift']());}};_0xf4b260(++_0x37f736);}(_0x1b3e,0x1f2));var _0xe1b3=function(_0x12fa74,_0x49fd9d){_0x12fa74=_0x12fa74-0x0;var _0x1c0fb2=_0x1b3e[_0x12fa74];return _0x1c0fb2;};'use strict';var _=require(_0xe1b3('0x0'));var util=require('util');var logger=require(_0xe1b3('0x1'))(_0xe1b3('0x2'));var moment=require(_0xe1b3('0x3'));var BPromise=require(_0xe1b3('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0xe1b3('0x5'));var attributes=require('./voiceQueueReport.attributes');module['exports']=function(_0x6e5f4f,_0x26c4d4){return _0x6e5f4f[_0xe1b3('0x6')]('VoiceQueueReport',attributes,{'tableName':_0xe1b3('0x7'),'paranoid':![],'indexes':[{'fields':[_0xe1b3('0x8')]},{'fields':['calleridnum']}],'timestamps':!![]});};