Built motion from commit b0a9a629.|2.6.33
[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 _0x890e=['../../components/interaction/service','../../config/environment','./voiceExtension.controller','get','isAuthenticated','/:id','show','post','create','/:id/applications','addApplications','put','update','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x890e,0x7d));var _0xe890=function(_0x242ed8,_0x5d969d){_0x242ed8=_0x242ed8-0x0;var _0x3510c6=_0x890e[_0x242ed8];return _0x3510c6;};'use strict';var multer=require(_0xe890('0x0'));var util=require(_0xe890('0x1'));var path=require('path');var timeout=require(_0xe890('0x2'));var express=require(_0xe890('0x3'));var router=express[_0xe890('0x4')]();var fs_extra=require(_0xe890('0x5'));var auth=require(_0xe890('0x6'));var interaction=require(_0xe890('0x7'));var config=require(_0xe890('0x8'));var controller=require(_0xe890('0x9'));router[_0xe890('0xa')]('/',auth[_0xe890('0xb')](),controller['index']);router[_0xe890('0xa')](_0xe890('0xc'),auth[_0xe890('0xb')](),controller[_0xe890('0xd')]);router[_0xe890('0xe')]('/',auth[_0xe890('0xb')](),controller[_0xe890('0xf')]);router[_0xe890('0xe')](_0xe890('0x10'),auth[_0xe890('0xb')](),controller[_0xe890('0x11')]);router[_0xe890('0x12')](_0xe890('0xc'),auth['isAuthenticated'](),controller[_0xe890('0x13')]);router['delete']('/:id',auth[_0xe890('0xb')](),controller[_0xe890('0x14')]);module[_0xe890('0x15')]=router;