f50067a6eed07f35ee0b1a3b733f5c58399d34fc
[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 _0x37a1=['index','/:id','post','create','put','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./smsApplication.controller','get','isAuthenticated'];(function(_0x38ea38,_0x58f0e0){var _0x2a5b36=function(_0x54aa64){while(--_0x54aa64){_0x38ea38['push'](_0x38ea38['shift']());}};_0x2a5b36(++_0x58f0e0);}(_0x37a1,0x1e4));var _0x137a=function(_0x53ae20,_0x59446a){_0x53ae20=_0x53ae20-0x0;var _0x5d2f60=_0x37a1[_0x53ae20];return _0x5d2f60;};'use strict';var multer=require('multer');var util=require(_0x137a('0x0'));var path=require(_0x137a('0x1'));var timeout=require(_0x137a('0x2'));var express=require(_0x137a('0x3'));var router=express[_0x137a('0x4')]();var auth=require(_0x137a('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x137a('0x6'));var controller=require(_0x137a('0x7'));router[_0x137a('0x8')]('/',auth[_0x137a('0x9')](),controller[_0x137a('0xa')]);router[_0x137a('0x8')](_0x137a('0xb'),auth['isAuthenticated'](),controller['show']);router[_0x137a('0xc')]('/',auth[_0x137a('0x9')](),controller[_0x137a('0xd')]);router[_0x137a('0xe')](_0x137a('0xb'),auth[_0x137a('0x9')](),controller[_0x137a('0xf')]);router[_0x137a('0x10')](_0x137a('0xb'),auth['isAuthenticated'](),controller[_0x137a('0x11')]);module[_0x137a('0x12')]=router;