4ae653f5d52c099dceb6ed4a257446d3b22045ab
[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 _0x0852=['api','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','VoiceQueueReport','report_queue','uniqueid','lodash','../../config/logger'];(function(_0xe9a8ac,_0x4db046){var _0x3c79bb=function(_0x5be429){while(--_0x5be429){_0xe9a8ac['push'](_0xe9a8ac['shift']());}};_0x3c79bb(++_0x4db046);}(_0x0852,0x8d));var _0x2085=function(_0x3070dc,_0x40cf11){_0x3070dc=_0x3070dc-0x0;var _0x431489=_0x0852[_0x3070dc];return _0x431489;};'use strict';var _=require(_0x2085('0x0'));var util=require('util');var logger=require(_0x2085('0x1'))(_0x2085('0x2'));var moment=require('moment');var BPromise=require(_0x2085('0x3'));var rp=require(_0x2085('0x4'));var fs=require('fs');var path=require(_0x2085('0x5'));var rimraf=require(_0x2085('0x6'));var config=require(_0x2085('0x7'));var attributes=require('./voiceQueueReport.attributes');module[_0x2085('0x8')]=function(_0x4a550a,_0x54938a){return _0x4a550a[_0x2085('0x9')](_0x2085('0xa'),attributes,{'tableName':_0x2085('0xb'),'paranoid':![],'indexes':[{'fields':[_0x2085('0xc')]},{'fields':['calleridnum']}],'timestamps':!![]});};