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 _0x98b5=['path','../../config/environment','exports','define','VoiceQueueReport','report_queue','uniqueid','calleridnum','util','api','moment','request-promise'];(function(_0x908e8c,_0x2da11c){var _0x930a4d=function(_0x18d4d0){while(--_0x18d4d0){_0x908e8c['push'](_0x908e8c['shift']());}};_0x930a4d(++_0x2da11c);}(_0x98b5,0x98));var _0x598b=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x98b5[_0x57b54c];return _0x59cc19;};'use strict';var _=require('lodash');var util=require(_0x598b('0x0'));var logger=require('../../config/logger')(_0x598b('0x1'));var moment=require(_0x598b('0x2'));var BPromise=require('bluebird');var rp=require(_0x598b('0x3'));var fs=require('fs');var path=require(_0x598b('0x4'));var rimraf=require('rimraf');var config=require(_0x598b('0x5'));var attributes=require('./voiceQueueReport.attributes');module[_0x598b('0x6')]=function(_0x569351,_0x14cf6f){return _0x569351[_0x598b('0x7')](_0x598b('0x8'),attributes,{'tableName':_0x598b('0x9'),'paranoid':![],'indexes':[{'fields':[_0x598b('0xa')]},{'fields':[_0x598b('0xb')]}],'timestamps':!![]});};