Built motion from commit (unavailable).|2.5.13
[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 _0x4f31=['index','show','post','create','/:id/applications','addApplications','/:id','update','delete','exports','multer','util','path','connect-timeout','express','Router','../../config/environment','./voiceExtension.controller','get','isAuthenticated'];(function(_0x19965d,_0x50881d){var _0x5a0092=function(_0x4671e3){while(--_0x4671e3){_0x19965d['push'](_0x19965d['shift']());}};_0x5a0092(++_0x50881d);}(_0x4f31,0x122));var _0x14f3=function(_0x2717c2,_0x192dca){_0x2717c2=_0x2717c2-0x0;var _0x223061=_0x4f31[_0x2717c2];return _0x223061;};'use strict';var multer=require(_0x14f3('0x0'));var util=require(_0x14f3('0x1'));var path=require(_0x14f3('0x2'));var timeout=require(_0x14f3('0x3'));var express=require(_0x14f3('0x4'));var router=express[_0x14f3('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x14f3('0x6'));var controller=require(_0x14f3('0x7'));router[_0x14f3('0x8')]('/',auth[_0x14f3('0x9')](),controller[_0x14f3('0xa')]);router[_0x14f3('0x8')]('/:id',auth[_0x14f3('0x9')](),controller[_0x14f3('0xb')]);router[_0x14f3('0xc')]('/',auth[_0x14f3('0x9')](),controller[_0x14f3('0xd')]);router[_0x14f3('0xc')](_0x14f3('0xe'),auth[_0x14f3('0x9')](),controller[_0x14f3('0xf')]);router['put'](_0x14f3('0x10'),auth[_0x14f3('0x9')](),controller[_0x14f3('0x11')]);router[_0x14f3('0x12')](_0x14f3('0x10'),auth['isAuthenticated'](),controller['destroy']);module[_0x14f3('0x13')]=router;