Built motion from commit 85328c08.|2.5.50
[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 _0xc616=['uniqueid','util','../../config/logger','request-promise','rimraf','./voiceQueueReport.attributes','exports','define'];(function(_0x38fb0d,_0x52b5db){var _0x30a5d6=function(_0x31eba6){while(--_0x31eba6){_0x38fb0d['push'](_0x38fb0d['shift']());}};_0x30a5d6(++_0x52b5db);}(_0xc616,0x1f1));var _0x6c61=function(_0x31080a,_0x55b5cd){_0x31080a=_0x31080a-0x0;var _0x58d2fc=_0xc616[_0x31080a];return _0x58d2fc;};'use strict';var _=require('lodash');var util=require(_0x6c61('0x0'));var logger=require(_0x6c61('0x1'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x6c61('0x2'));var fs=require('fs');var path=require('path');var rimraf=require(_0x6c61('0x3'));var config=require('../../config/environment');var attributes=require(_0x6c61('0x4'));module[_0x6c61('0x5')]=function(_0x1a9e70,_0x21cd39){return _0x1a9e70[_0x6c61('0x6')]('VoiceQueueReport',attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':[_0x6c61('0x7')]},{'fields':['calleridnum']}],'timestamps':!![]});};