Built motion from commit 10af8726.|2.6.34
[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 _0xbebf=['get','/:id','isAuthenticated','show','post','create','addApplications','put','update','delete','destroy','exports','multer','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./voiceExtension.controller'];(function(_0x1a1460,_0x539531){var _0x33ab03=function(_0x26a04b){while(--_0x26a04b){_0x1a1460['push'](_0x1a1460['shift']());}};_0x33ab03(++_0x539531);}(_0xbebf,0xf0));var _0xfbeb=function(_0x335afc,_0x5d06c1){_0x335afc=_0x335afc-0x0;var _0x537a75=_0xbebf[_0x335afc];return _0x537a75;};'use strict';var multer=require(_0xfbeb('0x0'));var util=require('util');var path=require(_0xfbeb('0x1'));var timeout=require(_0xfbeb('0x2'));var express=require(_0xfbeb('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xfbeb('0x4'));var config=require(_0xfbeb('0x5'));var controller=require(_0xfbeb('0x6'));router[_0xfbeb('0x7')]('/',auth['isAuthenticated'](),controller['index']);router[_0xfbeb('0x7')](_0xfbeb('0x8'),auth[_0xfbeb('0x9')](),controller[_0xfbeb('0xa')]);router[_0xfbeb('0xb')]('/',auth[_0xfbeb('0x9')](),controller[_0xfbeb('0xc')]);router[_0xfbeb('0xb')]('/:id/applications',auth['isAuthenticated'](),controller[_0xfbeb('0xd')]);router[_0xfbeb('0xe')](_0xfbeb('0x8'),auth[_0xfbeb('0x9')](),controller[_0xfbeb('0xf')]);router[_0xfbeb('0x10')](_0xfbeb('0x8'),auth[_0xfbeb('0x9')](),controller[_0xfbeb('0x11')]);module[_0xfbeb('0x12')]=router;