e22740aa3ff675d6f8837cb2c3eadb5e3b738ca2
[motion2.git] / server / api / saCreditNoteNumber / 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 _0x417c=['create','put','destroy','exports','multer','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./saCreditNoteNumber.controller','isAuthenticated','index','get','/describe','/:id','show'];(function(_0x14b81d,_0x445f34){var _0x536bef=function(_0x564eed){while(--_0x564eed){_0x14b81d['push'](_0x14b81d['shift']());}};_0x536bef(++_0x445f34);}(_0x417c,0xb8));var _0xc417=function(_0x49a6fd,_0x4ff8bb){_0x49a6fd=_0x49a6fd-0x0;var _0x4f3ea4=_0x417c[_0x49a6fd];return _0x4f3ea4;};'use strict';var multer=require(_0xc417('0x0'));var util=require(_0xc417('0x1'));var path=require(_0xc417('0x2'));var timeout=require(_0xc417('0x3'));var express=require(_0xc417('0x4'));var router=express['Router']();var auth=require(_0xc417('0x5'));var interaction=require(_0xc417('0x6'));var config=require('../../config/environment');var controller=require(_0xc417('0x7'));router['get']('/',auth[_0xc417('0x8')](),controller[_0xc417('0x9')]);router[_0xc417('0xa')](_0xc417('0xb'),auth[_0xc417('0x8')](),controller['describe']);router[_0xc417('0xa')](_0xc417('0xc'),auth[_0xc417('0x8')](),controller[_0xc417('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xc417('0xe')]);router[_0xc417('0xf')](_0xc417('0xc'),auth[_0xc417('0x8')](),controller['update']);router['delete'](_0xc417('0xc'),auth[_0xc417('0x8')](),controller[_0xc417('0x10')]);module[_0xc417('0x11')]=router;