Built motion from commit (unavailable).|2.5.21
[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 _0xab55=['exports','define','OpenchannelQueueReport','report_openchannel_queue','uniqueid','lodash','util','../../config/logger','api','bluebird','path','rimraf','../../config/environment','./openchannelQueueReport.attributes'];(function(_0x2a838d,_0x5cb298){var _0xa423ee=function(_0x125f76){while(--_0x125f76){_0x2a838d['push'](_0x2a838d['shift']());}};_0xa423ee(++_0x5cb298);}(_0xab55,0x139));var _0x5ab5=function(_0x1f7bcd,_0xa2ccc3){_0x1f7bcd=_0x1f7bcd-0x0;var _0xe83af6=_0xab55[_0x1f7bcd];return _0xe83af6;};'use strict';var _=require(_0x5ab5('0x0'));var util=require(_0x5ab5('0x1'));var logger=require(_0x5ab5('0x2'))(_0x5ab5('0x3'));var moment=require('moment');var BPromise=require(_0x5ab5('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x5ab5('0x5'));var rimraf=require(_0x5ab5('0x6'));var config=require(_0x5ab5('0x7'));var attributes=require(_0x5ab5('0x8'));module[_0x5ab5('0x9')]=function(_0x37fce1,_0x27d170){return _0x37fce1[_0x5ab5('0xa')](_0x5ab5('0xb'),attributes,{'tableName':_0x5ab5('0xc'),'paranoid':![],'indexes':[{'name':_0x5ab5('0xd'),'fields':[_0x5ab5('0xd')]}],'timestamps':!![]});};