Built motion from commit (unavailable).|2.5.18
[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 _0xa7b4=['uniqueid','util','../../config/logger','moment','bluebird','../../config/environment','./openchannelQueueReport.attributes','define','OpenchannelQueueReport','report_openchannel_queue'];(function(_0x106053,_0x3fce31){var _0x95eda=function(_0x575335){while(--_0x575335){_0x106053['push'](_0x106053['shift']());}};_0x95eda(++_0x3fce31);}(_0xa7b4,0x8d));var _0x4a7b=function(_0x4dc0c8,_0x48d51f){_0x4dc0c8=_0x4dc0c8-0x0;var _0x26bf81=_0xa7b4[_0x4dc0c8];return _0x26bf81;};'use strict';var _=require('lodash');var util=require(_0x4a7b('0x0'));var logger=require(_0x4a7b('0x1'))('api');var moment=require(_0x4a7b('0x2'));var BPromise=require(_0x4a7b('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x4a7b('0x4'));var attributes=require(_0x4a7b('0x5'));module['exports']=function(_0x27e783,_0xf43e24){return _0x27e783[_0x4a7b('0x6')](_0x4a7b('0x7'),attributes,{'tableName':_0x4a7b('0x8'),'paranoid':![],'indexes':[{'name':_0x4a7b('0x9'),'fields':[_0x4a7b('0x9')]}],'timestamps':!![]});};