Built motion from commit (unavailable).|2.5.8
[motion2.git] / server / api / smsApplication / 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 _0x02fd=['express','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','show','post','create','put','/:id','destroy','util','path','connect-timeout'];(function(_0x311c35,_0x534915){var _0x5cc50c=function(_0x3ad680){while(--_0x3ad680){_0x311c35['push'](_0x311c35['shift']());}};_0x5cc50c(++_0x534915);}(_0x02fd,0x1bd));var _0xd02f=function(_0x231e16,_0x67347b){_0x231e16=_0x231e16-0x0;var _0x570a7c=_0x02fd[_0x231e16];return _0x570a7c;};'use strict';var multer=require('multer');var util=require(_0xd02f('0x0'));var path=require(_0xd02f('0x1'));var timeout=require(_0xd02f('0x2'));var express=require(_0xd02f('0x3'));var router=express['Router']();var auth=require(_0xd02f('0x4'));var interaction=require(_0xd02f('0x5'));var config=require('../../config/environment');var controller=require('./smsApplication.controller');router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xd02f('0x6')]('/:id',auth[_0xd02f('0x7')](),controller[_0xd02f('0x8')]);router[_0xd02f('0x9')]('/',auth[_0xd02f('0x7')](),controller[_0xd02f('0xa')]);router[_0xd02f('0xb')](_0xd02f('0xc'),auth[_0xd02f('0x7')](),controller['update']);router['delete'](_0xd02f('0xc'),auth[_0xd02f('0x7')](),controller[_0xd02f('0xd')]);module['exports']=router;