b699f813e004ccb66278a72237b4e84c94359c89
[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 _0x6429=['path','rimraf','../../config/environment','./voiceQueueReport.attributes','exports','VoiceQueueReport','report_queue','uniqueid','calleridnum','lodash','util','../../config/logger','api','moment','request-promise'];(function(_0x5fa520,_0xaf0e7d){var _0x1bf6c4=function(_0x2a7440){while(--_0x2a7440){_0x5fa520['push'](_0x5fa520['shift']());}};_0x1bf6c4(++_0xaf0e7d);}(_0x6429,0x1bc));var _0x9642=function(_0x2fdbf8,_0x461a51){_0x2fdbf8=_0x2fdbf8-0x0;var _0x5dc976=_0x6429[_0x2fdbf8];return _0x5dc976;};'use strict';var _=require(_0x9642('0x0'));var util=require(_0x9642('0x1'));var logger=require(_0x9642('0x2'))(_0x9642('0x3'));var moment=require(_0x9642('0x4'));var BPromise=require('bluebird');var rp=require(_0x9642('0x5'));var fs=require('fs');var path=require(_0x9642('0x6'));var rimraf=require(_0x9642('0x7'));var config=require(_0x9642('0x8'));var attributes=require(_0x9642('0x9'));module[_0x9642('0xa')]=function(_0x265307,_0x1bb079){return _0x265307['define'](_0x9642('0xb'),attributes,{'tableName':_0x9642('0xc'),'paranoid':![],'indexes':[{'fields':[_0x9642('0xd')]},{'fields':[_0x9642('0xe')]}],'timestamps':!![]});};