98e1863cd85c58ecd1a3bd0afefa5d4420addbb2
[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 _0x1366=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','describe','show','post','create','put','/:id','update','delete','destroy','exports','multer','util','path'];(function(_0x175b8e,_0x2313a1){var _0x439188=function(_0x3edab2){while(--_0x3edab2){_0x175b8e['push'](_0x175b8e['shift']());}};_0x439188(++_0x2313a1);}(_0x1366,0xb1));var _0x6136=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x1366[_0x20a584];return _0x4b41a8;};'use strict';var multer=require(_0x6136('0x0'));var util=require(_0x6136('0x1'));var path=require(_0x6136('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x6136('0x3')]();var auth=require(_0x6136('0x4'));var interaction=require(_0x6136('0x5'));var config=require(_0x6136('0x6'));var controller=require('./saPaymentMethod.controller');router[_0x6136('0x7')]('/',auth[_0x6136('0x8')](),controller[_0x6136('0x9')]);router[_0x6136('0x7')]('/describe',auth[_0x6136('0x8')](),controller[_0x6136('0xa')]);router[_0x6136('0x7')]('/:id',auth[_0x6136('0x8')](),controller[_0x6136('0xb')]);router[_0x6136('0xc')]('/',auth[_0x6136('0x8')](),controller[_0x6136('0xd')]);router[_0x6136('0xe')](_0x6136('0xf'),auth['isAuthenticated'](),controller[_0x6136('0x10')]);router[_0x6136('0x11')](_0x6136('0xf'),auth['isAuthenticated'](),controller[_0x6136('0x12')]);module[_0x6136('0x13')]=router;