Built motion from commit (unavailable).|2.5.29
[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 _0xfe3d=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','/:id/applications','addApplications','put','update','destroy','exports','util'];(function(_0x497df2,_0x2a44a4){var _0x460db7=function(_0x402de3){while(--_0x402de3){_0x497df2['push'](_0x497df2['shift']());}};_0x460db7(++_0x2a44a4);}(_0xfe3d,0x92));var _0xdfe3=function(_0x484e36,_0x4482d8){_0x484e36=_0x484e36-0x0;var _0xafc85d=_0xfe3d[_0x484e36];return _0xafc85d;};'use strict';var multer=require('multer');var util=require(_0xdfe3('0x0'));var path=require(_0xdfe3('0x1'));var timeout=require(_0xdfe3('0x2'));var express=require(_0xdfe3('0x3'));var router=express[_0xdfe3('0x4')]();var fs_extra=require(_0xdfe3('0x5'));var auth=require(_0xdfe3('0x6'));var interaction=require(_0xdfe3('0x7'));var config=require(_0xdfe3('0x8'));var controller=require('./voiceExtension.controller');router[_0xdfe3('0x9')]('/',auth[_0xdfe3('0xa')](),controller[_0xdfe3('0xb')]);router[_0xdfe3('0x9')](_0xdfe3('0xc'),auth['isAuthenticated'](),controller[_0xdfe3('0xd')]);router[_0xdfe3('0xe')]('/',auth[_0xdfe3('0xa')](),controller['create']);router[_0xdfe3('0xe')](_0xdfe3('0xf'),auth[_0xdfe3('0xa')](),controller[_0xdfe3('0x10')]);router[_0xdfe3('0x11')](_0xdfe3('0xc'),auth[_0xdfe3('0xa')](),controller[_0xdfe3('0x12')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xdfe3('0x13')]);module[_0xdfe3('0x14')]=router;