Built motion from commit (unavailable).|2.5.11
[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 _0x3e24=['util','connect-timeout','Router','../../components/interaction/service','./smsApplication.controller','get','isAuthenticated','index','/:id','update','delete','exports','multer'];(function(_0x2ffc46,_0x35ce3c){var _0x1eda8f=function(_0x285344){while(--_0x285344){_0x2ffc46['push'](_0x2ffc46['shift']());}};_0x1eda8f(++_0x35ce3c);}(_0x3e24,0x9b));var _0x43e2=function(_0x4b4dd0,_0x4b7586){_0x4b4dd0=_0x4b4dd0-0x0;var _0x42da25=_0x3e24[_0x4b4dd0];return _0x42da25;};'use strict';var multer=require(_0x43e2('0x0'));var util=require(_0x43e2('0x1'));var path=require('path');var timeout=require(_0x43e2('0x2'));var express=require('express');var router=express[_0x43e2('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0x43e2('0x4'));var config=require('../../config/environment');var controller=require(_0x43e2('0x5'));router[_0x43e2('0x6')]('/',auth[_0x43e2('0x7')](),controller[_0x43e2('0x8')]);router['get'](_0x43e2('0x9'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put'](_0x43e2('0x9'),auth[_0x43e2('0x7')](),controller[_0x43e2('0xa')]);router[_0x43e2('0xb')](_0x43e2('0x9'),auth[_0x43e2('0x7')](),controller['destroy']);module[_0x43e2('0xc')]=router;