Built motion from commit bbec7235.|2.6.20
[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 _0xf2f1=['lodash','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','VoiceQueueReport','report_queue','uniqueid','calleridnum'];(function(_0xbca1b1,_0x33f0ce){var _0x4e1686=function(_0x58a80c){while(--_0x58a80c){_0xbca1b1['push'](_0xbca1b1['shift']());}};_0x4e1686(++_0x33f0ce);}(_0xf2f1,0xee));var _0x1f2f=function(_0x11e30d,_0x5584aa){_0x11e30d=_0x11e30d-0x0;var _0x2d4e29=_0xf2f1[_0x11e30d];return _0x2d4e29;};'use strict';var _=require(_0x1f2f('0x0'));var util=require('util');var logger=require(_0x1f2f('0x1'))(_0x1f2f('0x2'));var moment=require(_0x1f2f('0x3'));var BPromise=require('bluebird');var rp=require(_0x1f2f('0x4'));var fs=require('fs');var path=require(_0x1f2f('0x5'));var rimraf=require(_0x1f2f('0x6'));var config=require(_0x1f2f('0x7'));var attributes=require('./voiceQueueReport.attributes');module[_0x1f2f('0x8')]=function(_0x399877,_0x551f9f){return _0x399877[_0x1f2f('0x9')](_0x1f2f('0xa'),attributes,{'tableName':_0x1f2f('0xb'),'paranoid':![],'indexes':[{'fields':[_0x1f2f('0xc')]},{'fields':[_0x1f2f('0xd')]}],'timestamps':!![]});};