Built motion from commit 6f14c8ba.|2.6.29
[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 _0xe585=['path','express','Router','fs-extra','../../components/interaction/service','isAuthenticated','get','/:id','show','post','/:id/applications','destroy','exports','multer'];(function(_0x100167,_0x430982){var _0x1346d1=function(_0xe33622){while(--_0xe33622){_0x100167['push'](_0x100167['shift']());}};_0x1346d1(++_0x430982);}(_0xe585,0x109));var _0x5e58=function(_0xeb955e,_0x4eaa5d){_0xeb955e=_0xeb955e-0x0;var _0x292b43=_0xe585[_0xeb955e];return _0x292b43;};'use strict';var multer=require(_0x5e58('0x0'));var util=require('util');var path=require(_0x5e58('0x1'));var timeout=require('connect-timeout');var express=require(_0x5e58('0x2'));var router=express[_0x5e58('0x3')]();var fs_extra=require(_0x5e58('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x5e58('0x5'));var config=require('../../config/environment');var controller=require('./voiceExtension.controller');router['get']('/',auth[_0x5e58('0x6')](),controller['index']);router[_0x5e58('0x7')](_0x5e58('0x8'),auth['isAuthenticated'](),controller[_0x5e58('0x9')]);router[_0x5e58('0xa')]('/',auth[_0x5e58('0x6')](),controller['create']);router[_0x5e58('0xa')](_0x5e58('0xb'),auth[_0x5e58('0x6')](),controller['addApplications']);router['put'](_0x5e58('0x8'),auth[_0x5e58('0x6')](),controller['update']);router['delete']('/:id',auth[_0x5e58('0x6')](),controller[_0x5e58('0xc')]);module[_0x5e58('0xd')]=router;