Built motion from commit (unavailable).|2.4.4
[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 _0x3cb6=['report_queue','util','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','exports','define','VoiceQueueReport'];(function(_0x462999,_0x24d200){var _0x4b1366=function(_0x1fa353){while(--_0x1fa353){_0x462999['push'](_0x462999['shift']());}};_0x4b1366(++_0x24d200);}(_0x3cb6,0x121));var _0x63cb=function(_0x390067,_0x262df0){_0x390067=_0x390067-0x0;var _0x3d4111=_0x3cb6[_0x390067];return _0x3d4111;};'use strict';var _=require('lodash');var util=require(_0x63cb('0x0'));var logger=require(_0x63cb('0x1'))(_0x63cb('0x2'));var moment=require(_0x63cb('0x3'));var BPromise=require(_0x63cb('0x4'));var rp=require(_0x63cb('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x63cb('0x6'));var config=require(_0x63cb('0x7'));var attributes=require('./voiceQueueReport.attributes');module[_0x63cb('0x8')]=function(_0x20bc29,_0x4dd8a0){return _0x20bc29[_0x63cb('0x9')](_0x63cb('0xa'),attributes,{'tableName':_0x63cb('0xb'),'paranoid':![],'indexes':[{'fields':['uniqueid']},{'fields':['calleridnum']}],'timestamps':!![]});};