e2f691c8064948fe30e4279f13085994fa08d348
[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 _0xd82a=['../../config/environment','./openchannelQueueReport.attributes','exports','define','OpenchannelQueueReport','report_openchannel_queue','uniqueid','lodash','util','../../config/logger','api','bluebird','path','rimraf'];(function(_0x7feb90,_0x28e700){var _0x3c5b33=function(_0x113cfa){while(--_0x113cfa){_0x7feb90['push'](_0x7feb90['shift']());}};_0x3c5b33(++_0x28e700);}(_0xd82a,0xbd));var _0xad82=function(_0x4b369d,_0x265eb8){_0x4b369d=_0x4b369d-0x0;var _0x571a98=_0xd82a[_0x4b369d];return _0x571a98;};'use strict';var _=require(_0xad82('0x0'));var util=require(_0xad82('0x1'));var logger=require(_0xad82('0x2'))(_0xad82('0x3'));var moment=require('moment');var BPromise=require(_0xad82('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xad82('0x5'));var rimraf=require(_0xad82('0x6'));var config=require(_0xad82('0x7'));var attributes=require(_0xad82('0x8'));module[_0xad82('0x9')]=function(_0x19e277,_0x343d52){return _0x19e277[_0xad82('0xa')](_0xad82('0xb'),attributes,{'tableName':_0xad82('0xc'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0xad82('0xd')]}],'timestamps':!![]});};