1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xeb85=['show','create','put','update','destroy','exports','multer','util','express','Router','../../config/environment','isAuthenticated','get','/:id'];(function(_0x58572c,_0x386076){var _0x1ce1e2=function(_0x5c9aff){while(--_0x5c9aff){_0x58572c['push'](_0x58572c['shift']());}};_0x1ce1e2(++_0x386076);}(_0xeb85,0x11e));var _0x5eb8=function(_0x2b28a2,_0x5af969){_0x2b28a2=_0x2b28a2-0x0;var _0x761107=_0xeb85[_0x2b28a2];return _0x761107;};'use strict';var multer=require(_0x5eb8('0x0'));var util=require(_0x5eb8('0x1'));var path=require('path');var express=require(_0x5eb8('0x2'));var router=express[_0x5eb8('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x5eb8('0x4'));var controller=require('./smsApplication.controller');router['get']('/',auth[_0x5eb8('0x5')](),controller['index']);router[_0x5eb8('0x6')](_0x5eb8('0x7'),auth[_0x5eb8('0x5')](),controller[_0x5eb8('0x8')]);router['post']('/',auth['isAuthenticated'](),controller[_0x5eb8('0x9')]);router[_0x5eb8('0xa')](_0x5eb8('0x7'),auth['isAuthenticated'](),controller[_0x5eb8('0xb')]);router['delete'](_0x5eb8('0x7'),auth['isAuthenticated'](),controller[_0x5eb8('0xc')]);module[_0x5eb8('0xd')]=router;