4556f682a5c7b810512db6477bda3502d56db047
[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 _0xb715=['rimraf','../../config/environment','report_queue','uniqueid','calleridnum','util','api','moment','request-promise'];(function(_0x529059,_0x294a33){var _0x156bc2=function(_0x9bc770){while(--_0x9bc770){_0x529059['push'](_0x529059['shift']());}};_0x156bc2(++_0x294a33);}(_0xb715,0x16d));var _0x5b71=function(_0x320a59,_0x2ece25){_0x320a59=_0x320a59-0x0;var _0x1cf207=_0xb715[_0x320a59];return _0x1cf207;};'use strict';var _=require('lodash');var util=require(_0x5b71('0x0'));var logger=require('../../config/logger')(_0x5b71('0x1'));var moment=require(_0x5b71('0x2'));var BPromise=require('bluebird');var rp=require(_0x5b71('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5b71('0x4'));var config=require(_0x5b71('0x5'));var attributes=require('./voiceQueueReport.attributes');module['exports']=function(_0x887674,_0x2a2950){return _0x887674['define']('VoiceQueueReport',attributes,{'tableName':_0x5b71('0x6'),'paranoid':![],'indexes':[{'fields':[_0x5b71('0x7')]},{'fields':[_0x5b71('0x8')]}],'timestamps':!![]});};