Built motion from commit (unavailable).|2.4.4
[motion2.git] / server / api / saInvoice / index.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 _0x0f30=['delete','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./saInvoice.controller','isAuthenticated','index','/describe','describe','get','/getInvoicesNumberByYear','getInvoicesNumberByYear','/getInvoicesRevenueBy','/getYearToCompare','getYearToCompare','/getTopClients','getTopClients','/:id','show','/:id/download','getInvoicePDF','post','create','/:id/automaticInvoiceCreditnote','automaticInvoiceCreditnote','update'];(function(_0x48b5f9,_0x585cfb){var _0x55ae7a=function(_0x5b86a4){while(--_0x5b86a4){_0x48b5f9['push'](_0x48b5f9['shift']());}};_0x55ae7a(++_0x585cfb);}(_0x0f30,0xc2));var _0x00f3=function(_0x1cea7b,_0x37f5f4){_0x1cea7b=_0x1cea7b-0x0;var _0x5618d1=_0x0f30[_0x1cea7b];return _0x5618d1;};'use strict';var multer=require(_0x00f3('0x0'));var util=require(_0x00f3('0x1'));var path=require(_0x00f3('0x2'));var timeout=require(_0x00f3('0x3'));var express=require(_0x00f3('0x4'));var router=express[_0x00f3('0x5')]();var auth=require(_0x00f3('0x6'));var interaction=require(_0x00f3('0x7'));var config=require('../../config/environment');var controller=require(_0x00f3('0x8'));router['get']('/',auth[_0x00f3('0x9')](),controller[_0x00f3('0xa')]);router['get'](_0x00f3('0xb'),auth[_0x00f3('0x9')](),controller[_0x00f3('0xc')]);router[_0x00f3('0xd')](_0x00f3('0xe'),auth[_0x00f3('0x9')](),controller[_0x00f3('0xf')]);router[_0x00f3('0xd')](_0x00f3('0x10'),auth['isAuthenticated'](),controller['getInvoicesRevenueBy']);router['get'](_0x00f3('0x11'),auth[_0x00f3('0x9')](),controller[_0x00f3('0x12')]);router[_0x00f3('0xd')](_0x00f3('0x13'),auth[_0x00f3('0x9')](),controller[_0x00f3('0x14')]);router['get'](_0x00f3('0x15'),auth[_0x00f3('0x9')](),controller[_0x00f3('0x16')]);router[_0x00f3('0xd')](_0x00f3('0x17'),auth['isAuthenticated'](),controller[_0x00f3('0x18')]);router[_0x00f3('0x19')]('/',auth['isAuthenticated'](),controller[_0x00f3('0x1a')]);router[_0x00f3('0x19')](_0x00f3('0x1b'),auth[_0x00f3('0x9')](),controller[_0x00f3('0x1c')]);router['put']('/:id',auth[_0x00f3('0x9')](),controller[_0x00f3('0x1d')]);router[_0x00f3('0x1e')](_0x00f3('0x15'),auth[_0x00f3('0x9')](),controller['destroy']);module[_0x00f3('0x1f')]=router;