Built motion from commit (unavailable).|2.5.7
[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 _0x778b=['express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceExtension.controller','get','isAuthenticated','index','/:id','show','post','create','/:id/applications','addApplications','update','destroy','exports','util','path','connect-timeout'];(function(_0xc4f7c0,_0x3d731b){var _0x479501=function(_0x36a2cd){while(--_0x36a2cd){_0xc4f7c0['push'](_0xc4f7c0['shift']());}};_0x479501(++_0x3d731b);}(_0x778b,0x14d));var _0xb778=function(_0x5ddb1c,_0x5ea4df){_0x5ddb1c=_0x5ddb1c-0x0;var _0x354adc=_0x778b[_0x5ddb1c];return _0x354adc;};'use strict';var multer=require('multer');var util=require(_0xb778('0x0'));var path=require(_0xb778('0x1'));var timeout=require(_0xb778('0x2'));var express=require(_0xb778('0x3'));var router=express[_0xb778('0x4')]();var auth=require(_0xb778('0x5'));var interaction=require(_0xb778('0x6'));var config=require(_0xb778('0x7'));var controller=require(_0xb778('0x8'));router[_0xb778('0x9')]('/',auth[_0xb778('0xa')](),controller[_0xb778('0xb')]);router[_0xb778('0x9')](_0xb778('0xc'),auth[_0xb778('0xa')](),controller[_0xb778('0xd')]);router[_0xb778('0xe')]('/',auth[_0xb778('0xa')](),controller[_0xb778('0xf')]);router['post'](_0xb778('0x10'),auth['isAuthenticated'](),controller[_0xb778('0x11')]);router['put'](_0xb778('0xc'),auth[_0xb778('0xa')](),controller[_0xb778('0x12')]);router['delete'](_0xb778('0xc'),auth[_0xb778('0xa')](),controller[_0xb778('0x13')]);module[_0xb778('0x14')]=router;