Built motion from commit 9d1906d1.|2.5.40
[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 _0xd9f9=['api','moment','path','rimraf','./voiceQueueReport.attributes','exports','VoiceQueueReport','report_queue','uniqueid','lodash','../../config/logger'];(function(_0x1cdf2a,_0x53e82b){var _0x301f47=function(_0x1b7d72){while(--_0x1b7d72){_0x1cdf2a['push'](_0x1cdf2a['shift']());}};_0x301f47(++_0x53e82b);}(_0xd9f9,0x6c));var _0x9d9f=function(_0x2b968c,_0x131be8){_0x2b968c=_0x2b968c-0x0;var _0x100d29=_0xd9f9[_0x2b968c];return _0x100d29;};'use strict';var _=require(_0x9d9f('0x0'));var util=require('util');var logger=require(_0x9d9f('0x1'))(_0x9d9f('0x2'));var moment=require(_0x9d9f('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x9d9f('0x4'));var rimraf=require(_0x9d9f('0x5'));var config=require('../../config/environment');var attributes=require(_0x9d9f('0x6'));module[_0x9d9f('0x7')]=function(_0x4ed54c,_0x3c377d){return _0x4ed54c['define'](_0x9d9f('0x8'),attributes,{'tableName':_0x9d9f('0x9'),'paranoid':![],'indexes':[{'fields':[_0x9d9f('0xa')]},{'fields':['calleridnum']}],'timestamps':!![]});};