Built motion from commit (unavailable).|2.5.11
[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 _0x8ac1=['isAuthenticated','create','post','/:id','update','delete','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceExtension.controller','get','show'];(function(_0x25e483,_0x2eedd8){var _0x117af9=function(_0x1705ec){while(--_0x1705ec){_0x25e483['push'](_0x25e483['shift']());}};_0x117af9(++_0x2eedd8);}(_0x8ac1,0x6d));var _0x18ac=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x8ac1[_0x57b54c];return _0x59cc19;};'use strict';var multer=require(_0x18ac('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x18ac('0x1'));var express=require(_0x18ac('0x2'));var router=express[_0x18ac('0x3')]();var auth=require(_0x18ac('0x4'));var interaction=require(_0x18ac('0x5'));var config=require(_0x18ac('0x6'));var controller=require(_0x18ac('0x7'));router[_0x18ac('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0x18ac('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x18ac('0x9')]);router['post']('/',auth[_0x18ac('0xa')](),controller[_0x18ac('0xb')]);router[_0x18ac('0xc')]('/:id/applications',auth[_0x18ac('0xa')](),controller['addApplications']);router['put'](_0x18ac('0xd'),auth[_0x18ac('0xa')](),controller[_0x18ac('0xe')]);router[_0x18ac('0xf')]('/:id',auth[_0x18ac('0xa')](),controller['destroy']);module[_0x18ac('0x10')]=router;