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