Built motion from commit 9d0783e6.|2.6.13
[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 _0x1c74=['request-promise','path','rimraf','./voiceQueueReport.attributes','define','VoiceQueueReport','report_queue','uniqueid','calleridnum','../../config/logger','api','moment','bluebird'];(function(_0x12954a,_0x304691){var _0x5ccde2=function(_0x5c3d68){while(--_0x5c3d68){_0x12954a['push'](_0x12954a['shift']());}};_0x5ccde2(++_0x304691);}(_0x1c74,0xb2));var _0x41c7=function(_0x224721,_0x45b988){_0x224721=_0x224721-0x0;var _0x145358=_0x1c74[_0x224721];return _0x145358;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x41c7('0x0'))(_0x41c7('0x1'));var moment=require(_0x41c7('0x2'));var BPromise=require(_0x41c7('0x3'));var rp=require(_0x41c7('0x4'));var fs=require('fs');var path=require(_0x41c7('0x5'));var rimraf=require(_0x41c7('0x6'));var config=require('../../config/environment');var attributes=require(_0x41c7('0x7'));module['exports']=function(_0x49f3fe,_0x245187){return _0x49f3fe[_0x41c7('0x8')](_0x41c7('0x9'),attributes,{'tableName':_0x41c7('0xa'),'paranoid':![],'indexes':[{'fields':[_0x41c7('0xb')]},{'fields':[_0x41c7('0xc')]}],'timestamps':!![]});};