Built motion from commit (unavailable).|2.4.18
[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 _0x4dc0=['isAuthenticated','show','create','put','/:id','update','delete','destroy','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./smsApplication.controller','get'];(function(_0xb6e43,_0x1568fc){var _0x47c40f=function(_0x107786){while(--_0x107786){_0xb6e43['push'](_0xb6e43['shift']());}};_0x47c40f(++_0x1568fc);}(_0x4dc0,0xe6));var _0x04dc=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0x4dc0[_0x2b4411];return _0x8e41ef;};'use strict';var multer=require('multer');var util=require(_0x04dc('0x0'));var path=require(_0x04dc('0x1'));var timeout=require(_0x04dc('0x2'));var express=require(_0x04dc('0x3'));var router=express['Router']();var auth=require(_0x04dc('0x4'));var interaction=require(_0x04dc('0x5'));var config=require('../../config/environment');var controller=require(_0x04dc('0x6'));router[_0x04dc('0x7')]('/',auth[_0x04dc('0x8')](),controller['index']);router['get']('/:id',auth['isAuthenticated'](),controller[_0x04dc('0x9')]);router['post']('/',auth[_0x04dc('0x8')](),controller[_0x04dc('0xa')]);router[_0x04dc('0xb')](_0x04dc('0xc'),auth[_0x04dc('0x8')](),controller[_0x04dc('0xd')]);router[_0x04dc('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x04dc('0xf')]);module[_0x04dc('0x10')]=router;