ddc9f2530c096dd6088b649ec2f2647ea0a23516
[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 _0xc89b=['./openchannelQueueReport.attributes','exports','define','OpenchannelQueueReport','report_openchannel_queue','lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf'];(function(_0x4416ff,_0x24ebbe){var _0x5bf4e7=function(_0x19be15){while(--_0x19be15){_0x4416ff['push'](_0x4416ff['shift']());}};_0x5bf4e7(++_0x24ebbe);}(_0xc89b,0x7d));var _0xbc89=function(_0x4d8ed9,_0x2ae284){_0x4d8ed9=_0x4d8ed9-0x0;var _0x1e2140=_0xc89b[_0x4d8ed9];return _0x1e2140;};'use strict';var _=require(_0xbc89('0x0'));var util=require('util');var logger=require(_0xbc89('0x1'))(_0xbc89('0x2'));var moment=require(_0xbc89('0x3'));var BPromise=require(_0xbc89('0x4'));var rp=require(_0xbc89('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xbc89('0x6'));var config=require('../../config/environment');var attributes=require(_0xbc89('0x7'));module[_0xbc89('0x8')]=function(_0x24198c,_0x595808){return _0x24198c[_0xbc89('0x9')](_0xbc89('0xa'),attributes,{'tableName':_0xbc89('0xb'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});};