Built motion from commit 00bf23f6.|2.6.16
[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 _0x7f76=['define','VoiceQueueReport','lodash','util','../../config/logger','moment','bluebird','request-promise','path','rimraf','./voiceQueueReport.attributes','exports'];(function(_0x146b09,_0x345cd3){var _0x4e9e36=function(_0x1d9749){while(--_0x1d9749){_0x146b09['push'](_0x146b09['shift']());}};_0x4e9e36(++_0x345cd3);}(_0x7f76,0x1b2));var _0x67f7=function(_0x11a3c3,_0x59acac){_0x11a3c3=_0x11a3c3-0x0;var _0x7afd2f=_0x7f76[_0x11a3c3];return _0x7afd2f;};'use strict';var _=require(_0x67f7('0x0'));var util=require(_0x67f7('0x1'));var logger=require(_0x67f7('0x2'))('api');var moment=require(_0x67f7('0x3'));var BPromise=require(_0x67f7('0x4'));var rp=require(_0x67f7('0x5'));var fs=require('fs');var path=require(_0x67f7('0x6'));var rimraf=require(_0x67f7('0x7'));var config=require('../../config/environment');var attributes=require(_0x67f7('0x8'));module[_0x67f7('0x9')]=function(_0x303d9b,_0x37dbc5){return _0x303d9b[_0x67f7('0xa')](_0x67f7('0xb'),attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':['uniqueid']},{'fields':['calleridnum']}],'timestamps':!![]});};