Built motion from commit (unavailable).|2.4.4
[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 _0xa428=['get','index','post','isAuthenticated','update','delete','/:id','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','./smsApplication.controller'];(function(_0x4469a0,_0x3462b4){var _0x47bd86=function(_0x352f63){while(--_0x352f63){_0x4469a0['push'](_0x4469a0['shift']());}};_0x47bd86(++_0x3462b4);}(_0xa428,0xf3));var _0x8a42=function(_0x338dd9,_0x5b7d33){_0x338dd9=_0x338dd9-0x0;var _0x4c33f1=_0xa428[_0x338dd9];return _0x4c33f1;};'use strict';var multer=require(_0x8a42('0x0'));var util=require(_0x8a42('0x1'));var path=require(_0x8a42('0x2'));var timeout=require(_0x8a42('0x3'));var express=require(_0x8a42('0x4'));var router=express[_0x8a42('0x5')]();var auth=require(_0x8a42('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x8a42('0x7'));var controller=require(_0x8a42('0x8'));router[_0x8a42('0x9')]('/',auth['isAuthenticated'](),controller[_0x8a42('0xa')]);router[_0x8a42('0x9')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0x8a42('0xb')]('/',auth[_0x8a42('0xc')](),controller['create']);router['put']('/:id',auth['isAuthenticated'](),controller[_0x8a42('0xd')]);router[_0x8a42('0xe')](_0x8a42('0xf'),auth['isAuthenticated'](),controller[_0x8a42('0x10')]);module[_0x8a42('0x11')]=router;