0902de64084cef50f279c5c9b48dc532e479f247
[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 _0xa2f8=['uniqueid','util','api','moment','bluebird','request-promise','path','./voiceQueueReport.attributes','exports','VoiceQueueReport','report_queue'];(function(_0x32d21e,_0x2c451f){var _0x14dd81=function(_0x19802c){while(--_0x19802c){_0x32d21e['push'](_0x32d21e['shift']());}};_0x14dd81(++_0x2c451f);}(_0xa2f8,0x18d));var _0x8a2f=function(_0x3be454,_0xb37612){_0x3be454=_0x3be454-0x0;var _0xcead50=_0xa2f8[_0x3be454];return _0xcead50;};'use strict';var _=require('lodash');var util=require(_0x8a2f('0x0'));var logger=require('../../config/logger')(_0x8a2f('0x1'));var moment=require(_0x8a2f('0x2'));var BPromise=require(_0x8a2f('0x3'));var rp=require(_0x8a2f('0x4'));var fs=require('fs');var path=require(_0x8a2f('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x8a2f('0x6'));module[_0x8a2f('0x7')]=function(_0x212788,_0x390107){return _0x212788['define'](_0x8a2f('0x8'),attributes,{'tableName':_0x8a2f('0x9'),'paranoid':![],'indexes':[{'fields':[_0x8a2f('0xa')]},{'fields':['calleridnum']}],'timestamps':!![]});};