Built motion from commit (unavailable).|2.5.8
[motion2.git] / server / api / voicePrefix / 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 _0xdd6e=['/describe','describe','/:id','show','/:id/users','post','create','addAgents','put','delete','removeAgents','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voicePrefix.controller','get','isAuthenticated'];(function(_0x49e6ea,_0x46a9ac){var _0x49b6da=function(_0xd014b3){while(--_0xd014b3){_0x49e6ea['push'](_0x49e6ea['shift']());}};_0x49b6da(++_0x46a9ac);}(_0xdd6e,0x114));var _0xedd6=function(_0x436bbf,_0x85af66){_0x436bbf=_0x436bbf-0x0;var _0x4f8a6c=_0xdd6e[_0x436bbf];return _0x4f8a6c;};'use strict';var multer=require(_0xedd6('0x0'));var util=require(_0xedd6('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xedd6('0x2'));var router=express[_0xedd6('0x3')]();var auth=require(_0xedd6('0x4'));var interaction=require(_0xedd6('0x5'));var config=require(_0xedd6('0x6'));var controller=require(_0xedd6('0x7'));router[_0xedd6('0x8')]('/',auth[_0xedd6('0x9')](),controller['index']);router['get'](_0xedd6('0xa'),auth[_0xedd6('0x9')](),controller[_0xedd6('0xb')]);router[_0xedd6('0x8')](_0xedd6('0xc'),auth['isAuthenticated'](),controller[_0xedd6('0xd')]);router[_0xedd6('0x8')](_0xedd6('0xe'),auth[_0xedd6('0x9')](),controller['getAgents']);router[_0xedd6('0xf')]('/',auth[_0xedd6('0x9')](),controller[_0xedd6('0x10')]);router[_0xedd6('0xf')](_0xedd6('0xe'),auth['isAuthenticated'](),controller[_0xedd6('0x11')]);router[_0xedd6('0x12')](_0xedd6('0xc'),auth[_0xedd6('0x9')](),controller['update']);router[_0xedd6('0x13')]('/:id',auth[_0xedd6('0x9')](),controller['destroy']);router['delete']('/:id/users',auth['isAuthenticated'](),controller[_0xedd6('0x14')]);module[_0xedd6('0x15')]=router;