Built motion from commit 994c64e1.|2.6.1
[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 _0x5398=['uniqueid','calleridnum','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','exports','define','VoiceQueueReport','report_queue'];(function(_0x5ecddb,_0x38dadf){var _0x2a9cde=function(_0x12b243){while(--_0x12b243){_0x5ecddb['push'](_0x5ecddb['shift']());}};_0x2a9cde(++_0x38dadf);}(_0x5398,0x91));var _0x8539=function(_0x57e7d6,_0xf6c35){_0x57e7d6=_0x57e7d6-0x0;var _0x50d843=_0x5398[_0x57e7d6];return _0x50d843;};'use strict';var _=require(_0x8539('0x0'));var util=require(_0x8539('0x1'));var logger=require(_0x8539('0x2'))(_0x8539('0x3'));var moment=require('moment');var BPromise=require(_0x8539('0x4'));var rp=require(_0x8539('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x8539('0x6'));var config=require('../../config/environment');var attributes=require('./voiceQueueReport.attributes');module[_0x8539('0x7')]=function(_0xaa286a,_0x59d408){return _0xaa286a[_0x8539('0x8')](_0x8539('0x9'),attributes,{'tableName':_0x8539('0xa'),'paranoid':![],'indexes':[{'fields':[_0x8539('0xb')]},{'fields':[_0x8539('0xc')]}],'timestamps':!![]});};