Built motion from commit 753c950e.|2.5.42
[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 _0x1da7=['uniqueid','calleridnum','lodash','util','../../config/logger','api','moment','bluebird','request-promise','path','exports','define','VoiceQueueReport'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x1da7,0x13a));var _0x71da=function(_0x1be832,_0xb8c74){_0x1be832=_0x1be832-0x0;var _0x430e80=_0x1da7[_0x1be832];return _0x430e80;};'use strict';var _=require(_0x71da('0x0'));var util=require(_0x71da('0x1'));var logger=require(_0x71da('0x2'))(_0x71da('0x3'));var moment=require(_0x71da('0x4'));var BPromise=require(_0x71da('0x5'));var rp=require(_0x71da('0x6'));var fs=require('fs');var path=require(_0x71da('0x7'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./voiceQueueReport.attributes');module[_0x71da('0x8')]=function(_0x132274,_0x1f5096){return _0x132274[_0x71da('0x9')](_0x71da('0xa'),attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':[_0x71da('0xb')]},{'fields':[_0x71da('0xc')]}],'timestamps':!![]});};