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