Built motion from commit efa66e19.|2.6.22
[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 _0xc7f0=['../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','show','create','/:id/applications','addApplications','put','/:id','update','delete','util','express','Router'];(function(_0x3f2845,_0x3bc9c0){var _0x3221af=function(_0x515d71){while(--_0x515d71){_0x3f2845['push'](_0x3f2845['shift']());}};_0x3221af(++_0x3bc9c0);}(_0xc7f0,0x15d));var _0x0c7f=function(_0x23cf3d,_0x2195b7){_0x23cf3d=_0x23cf3d-0x0;var _0x220fab=_0xc7f0[_0x23cf3d];return _0x220fab;};'use strict';var multer=require('multer');var util=require(_0x0c7f('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x0c7f('0x1'));var router=express[_0x0c7f('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x0c7f('0x3'));var interaction=require(_0x0c7f('0x4'));var config=require('../../config/environment');var controller=require('./voiceExtension.controller');router[_0x0c7f('0x5')]('/',auth[_0x0c7f('0x6')](),controller[_0x0c7f('0x7')]);router[_0x0c7f('0x5')]('/:id',auth[_0x0c7f('0x6')](),controller[_0x0c7f('0x8')]);router['post']('/',auth[_0x0c7f('0x6')](),controller[_0x0c7f('0x9')]);router['post'](_0x0c7f('0xa'),auth['isAuthenticated'](),controller[_0x0c7f('0xb')]);router[_0x0c7f('0xc')](_0x0c7f('0xd'),auth['isAuthenticated'](),controller[_0x0c7f('0xe')]);router[_0x0c7f('0xf')](_0x0c7f('0xd'),auth[_0x0c7f('0x6')](),controller['destroy']);module['exports']=router;