875b0ed598cdd5eaac3688c24f64f1742b394c8b
[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 _0xb499=['index','/:id','isAuthenticated','show','post','create','/:id/applications','addApplications','update','delete','destroy','exports','multer','util','connect-timeout','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceExtension.controller','get'];(function(_0x5899e5,_0x580c28){var _0x4c53b5=function(_0x3e007c){while(--_0x3e007c){_0x5899e5['push'](_0x5899e5['shift']());}};_0x4c53b5(++_0x580c28);}(_0xb499,0x182));var _0x9b49=function(_0x248759,_0x296a4d){_0x248759=_0x248759-0x0;var _0x5731c2=_0xb499[_0x248759];return _0x5731c2;};'use strict';var multer=require(_0x9b49('0x0'));var util=require(_0x9b49('0x1'));var path=require('path');var timeout=require(_0x9b49('0x2'));var express=require(_0x9b49('0x3'));var router=express['Router']();var fs_extra=require(_0x9b49('0x4'));var auth=require(_0x9b49('0x5'));var interaction=require(_0x9b49('0x6'));var config=require(_0x9b49('0x7'));var controller=require(_0x9b49('0x8'));router[_0x9b49('0x9')]('/',auth['isAuthenticated'](),controller[_0x9b49('0xa')]);router['get'](_0x9b49('0xb'),auth[_0x9b49('0xc')](),controller[_0x9b49('0xd')]);router[_0x9b49('0xe')]('/',auth[_0x9b49('0xc')](),controller[_0x9b49('0xf')]);router[_0x9b49('0xe')](_0x9b49('0x10'),auth[_0x9b49('0xc')](),controller[_0x9b49('0x11')]);router['put'](_0x9b49('0xb'),auth[_0x9b49('0xc')](),controller[_0x9b49('0x12')]);router[_0x9b49('0x13')]('/:id',auth['isAuthenticated'](),controller[_0x9b49('0x14')]);module[_0x9b49('0x15')]=router;