Built motion from commit (unavailable).|2.5.19
[motion2.git] / server / api / voiceExtension / 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 _0xc77f=['put','/:id','update','delete','destroy','multer','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','isAuthenticated','show','post','create','/:id/applications'];(function(_0x3b45e8,_0x628af6){var _0x370099=function(_0x80765f){while(--_0x80765f){_0x3b45e8['push'](_0x3b45e8['shift']());}};_0x370099(++_0x628af6);}(_0xc77f,0x1d9));var _0xfc77=function(_0x40a77f,_0x1d5f8d){_0x40a77f=_0x40a77f-0x0;var _0x415aa1=_0xc77f[_0x40a77f];return _0x415aa1;};'use strict';var multer=require(_0xfc77('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xfc77('0x1'));var express=require(_0xfc77('0x2'));var router=express['Router']();var auth=require(_0xfc77('0x3'));var interaction=require(_0xfc77('0x4'));var config=require(_0xfc77('0x5'));var controller=require('./voiceExtension.controller');router[_0xfc77('0x6')]('/',auth['isAuthenticated'](),controller[_0xfc77('0x7')]);router[_0xfc77('0x6')]('/:id',auth[_0xfc77('0x8')](),controller[_0xfc77('0x9')]);router[_0xfc77('0xa')]('/',auth[_0xfc77('0x8')](),controller[_0xfc77('0xb')]);router['post'](_0xfc77('0xc'),auth[_0xfc77('0x8')](),controller['addApplications']);router[_0xfc77('0xd')](_0xfc77('0xe'),auth['isAuthenticated'](),controller[_0xfc77('0xf')]);router[_0xfc77('0x10')](_0xfc77('0xe'),auth[_0xfc77('0x8')](),controller[_0xfc77('0x11')]);module['exports']=router;