de302260209138f9fc752772d9eaa65b267fdf6d
[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 _0x9dcc=['path','rimraf','./chatQueueReport.attributes','exports','ChatQueueReport','uniqueid','lodash','util','../../config/logger','moment'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x9dcc,0x10a));var _0xc9dc=function(_0x4f1d58,_0x64dbf){_0x4f1d58=_0x4f1d58-0x0;var _0x12dd38=_0x9dcc[_0x4f1d58];return _0x12dd38;};'use strict';var _=require(_0xc9dc('0x0'));var util=require(_0xc9dc('0x1'));var logger=require(_0xc9dc('0x2'))('api');var moment=require(_0xc9dc('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xc9dc('0x4'));var rimraf=require(_0xc9dc('0x5'));var config=require('../../config/environment');var attributes=require(_0xc9dc('0x6'));module[_0xc9dc('0x7')]=function(_0x5bc799,_0xc9d83b){return _0x5bc799['define'](_0xc9dc('0x8'),attributes,{'tableName':'report_chat_queue','paranoid':![],'indexes':[{'name':_0xc9dc('0x9'),'fields':[_0xc9dc('0x9')]}],'timestamps':!![]});};