eb506ca5f8a7c4c3c96f7b323d837d9bee111d57
[motion2.git] / server / api / chatQueueReport / chatQueueReport.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 _0xacce=['uniqueid','lodash','../../config/logger','api','bluebird','request-promise','path','exports','define','ChatQueueReport'];(function(_0x5d11ab,_0x557394){var _0x227f4c=function(_0x497018){while(--_0x497018){_0x5d11ab['push'](_0x5d11ab['shift']());}};_0x227f4c(++_0x557394);}(_0xacce,0x137));var _0xeacc=function(_0x2ee9b5,_0x535dce){_0x2ee9b5=_0x2ee9b5-0x0;var _0x500510=_0xacce[_0x2ee9b5];return _0x500510;};'use strict';var _=require(_0xeacc('0x0'));var util=require('util');var logger=require(_0xeacc('0x1'))(_0xeacc('0x2'));var moment=require('moment');var BPromise=require(_0xeacc('0x3'));var rp=require(_0xeacc('0x4'));var fs=require('fs');var path=require(_0xeacc('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./chatQueueReport.attributes');module[_0xeacc('0x6')]=function(_0x45855c,_0x568b1e){return _0x45855c[_0xeacc('0x7')](_0xeacc('0x8'),attributes,{'tableName':'report_chat_queue','paranoid':![],'indexes':[{'name':_0xeacc('0x9'),'fields':[_0xeacc('0x9')]}],'timestamps':!![]});};