Built motion from commit (unavailable).|2.5.4
[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 _0xf7b9=['../../config/logger','path','rimraf','./openchannelQueueReport.attributes','exports','define','OpenchannelQueueReport','report_openchannel_queue','uniqueid','lodash','util'];(function(_0x2c93a4,_0x3e90b7){var _0x41e095=function(_0x53439a){while(--_0x53439a){_0x2c93a4['push'](_0x2c93a4['shift']());}};_0x41e095(++_0x3e90b7);}(_0xf7b9,0x8d));var _0x9f7b=function(_0x5929ff,_0x2c88d5){_0x5929ff=_0x5929ff-0x0;var _0x79477d=_0xf7b9[_0x5929ff];return _0x79477d;};'use strict';var _=require(_0x9f7b('0x0'));var util=require(_0x9f7b('0x1'));var logger=require(_0x9f7b('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x9f7b('0x3'));var rimraf=require(_0x9f7b('0x4'));var config=require('../../config/environment');var attributes=require(_0x9f7b('0x5'));module[_0x9f7b('0x6')]=function(_0x31e7fd,_0x50cb54){return _0x31e7fd[_0x9f7b('0x7')](_0x9f7b('0x8'),attributes,{'tableName':_0x9f7b('0x9'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x9f7b('0xa')]}],'timestamps':!![]});};