91c988b3f9fc6e5b9173b1d4dff3cccc3428d81a
[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 _0xcb78=['VoiceQueueReport','uniqueid','calleridnum','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','define'];(function(_0x48a98f,_0x3ad188){var _0x324006=function(_0x4478a0){while(--_0x4478a0){_0x48a98f['push'](_0x48a98f['shift']());}};_0x324006(++_0x3ad188);}(_0xcb78,0x1bd));var _0x8cb7=function(_0x258109,_0x58dc00){_0x258109=_0x258109-0x0;var _0xfb96ea=_0xcb78[_0x258109];return _0xfb96ea;};'use strict';var _=require(_0x8cb7('0x0'));var util=require(_0x8cb7('0x1'));var logger=require(_0x8cb7('0x2'))(_0x8cb7('0x3'));var moment=require(_0x8cb7('0x4'));var BPromise=require(_0x8cb7('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8cb7('0x6'));var rimraf=require(_0x8cb7('0x7'));var config=require(_0x8cb7('0x8'));var attributes=require('./voiceQueueReport.attributes');module['exports']=function(_0x1eb13c,_0x27ccc7){return _0x1eb13c[_0x8cb7('0x9')](_0x8cb7('0xa'),attributes,{'tableName':'report_queue','paranoid':![],'indexes':[{'fields':[_0x8cb7('0xb')]},{'fields':[_0x8cb7('0xc')]}],'timestamps':!![]});};