Built motion from commit (unavailable).|2.5.1
[motion2.git] / server / api / openchannelQueueReport / openchannelQueueReport.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 _0x4a99=['rimraf','../../config/environment','./openchannelQueueReport.attributes','OpenchannelQueueReport','report_openchannel_queue','uniqueid','lodash','api','moment','request-promise'];(function(_0x3f9092,_0x35ffc8){var _0x5e65d3=function(_0xd7e74a){while(--_0xd7e74a){_0x3f9092['push'](_0x3f9092['shift']());}};_0x5e65d3(++_0x35ffc8);}(_0x4a99,0x1aa));var _0x94a9=function(_0x31e29a,_0x349c9b){_0x31e29a=_0x31e29a-0x0;var _0x32d892=_0x4a99[_0x31e29a];return _0x32d892;};'use strict';var _=require(_0x94a9('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x94a9('0x1'));var moment=require(_0x94a9('0x2'));var BPromise=require('bluebird');var rp=require(_0x94a9('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x94a9('0x4'));var config=require(_0x94a9('0x5'));var attributes=require(_0x94a9('0x6'));module['exports']=function(_0x3cad6a,_0x1b86d8){return _0x3cad6a['define'](_0x94a9('0x7'),attributes,{'tableName':_0x94a9('0x8'),'paranoid':![],'indexes':[{'name':_0x94a9('0x9'),'fields':['uniqueid']}],'timestamps':!![]});};