60399a4516443962ee129c871e443ab2ae5f36b3
[motion2.git] / server / api / saPaymentMethod / 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 _0x2dc3=['express','../../components/auth/service','../../components/interaction/service','../../config/environment','./saPaymentMethod.controller','isAuthenticated','/describe','describe','/:id','show','post','create','put','update','destroy','multer','path','connect-timeout'];(function(_0x3c8ca1,_0x7cc09a){var _0x1eb209=function(_0x30180c){while(--_0x30180c){_0x3c8ca1['push'](_0x3c8ca1['shift']());}};_0x1eb209(++_0x7cc09a);}(_0x2dc3,0x9f));var _0x32dc=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0x2dc3[_0x3b380d];return _0x54502b;};'use strict';var multer=require(_0x32dc('0x0'));var util=require('util');var path=require(_0x32dc('0x1'));var timeout=require(_0x32dc('0x2'));var express=require(_0x32dc('0x3'));var router=express['Router']();var auth=require(_0x32dc('0x4'));var interaction=require(_0x32dc('0x5'));var config=require(_0x32dc('0x6'));var controller=require(_0x32dc('0x7'));router['get']('/',auth[_0x32dc('0x8')](),controller['index']);router['get'](_0x32dc('0x9'),auth['isAuthenticated'](),controller[_0x32dc('0xa')]);router['get'](_0x32dc('0xb'),auth[_0x32dc('0x8')](),controller[_0x32dc('0xc')]);router[_0x32dc('0xd')]('/',auth['isAuthenticated'](),controller[_0x32dc('0xe')]);router[_0x32dc('0xf')](_0x32dc('0xb'),auth[_0x32dc('0x8')](),controller[_0x32dc('0x10')]);router['delete'](_0x32dc('0xb'),auth[_0x32dc('0x8')](),controller[_0x32dc('0x11')]);module['exports']=router;