42ae4350c13cd41f06785cfc0dc46cf21021614b
[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 _0x120e=['index','/describe','describe','show','/:id/users','getAgents','create','post','addAgents','put','delete','/:id','destroy','exports','util','connect-timeout','Router','../../components/auth/service','../../config/environment','./voicePrefix.controller','get','isAuthenticated'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x120e,0xa8));var _0xe120=function(_0x3a12ec,_0x174f38){_0x3a12ec=_0x3a12ec-0x0;var _0x43bfe7=_0x120e[_0x3a12ec];return _0x43bfe7;};'use strict';var multer=require('multer');var util=require(_0xe120('0x0'));var path=require('path');var timeout=require(_0xe120('0x1'));var express=require('express');var router=express[_0xe120('0x2')]();var auth=require(_0xe120('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xe120('0x4'));var controller=require(_0xe120('0x5'));router[_0xe120('0x6')]('/',auth[_0xe120('0x7')](),controller[_0xe120('0x8')]);router[_0xe120('0x6')](_0xe120('0x9'),auth[_0xe120('0x7')](),controller[_0xe120('0xa')]);router['get']('/:id',auth[_0xe120('0x7')](),controller[_0xe120('0xb')]);router[_0xe120('0x6')](_0xe120('0xc'),auth[_0xe120('0x7')](),controller[_0xe120('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xe120('0xe')]);router[_0xe120('0xf')](_0xe120('0xc'),auth[_0xe120('0x7')](),controller[_0xe120('0x10')]);router[_0xe120('0x11')]('/:id',auth[_0xe120('0x7')](),controller['update']);router[_0xe120('0x12')](_0xe120('0x13'),auth[_0xe120('0x7')](),controller[_0xe120('0x14')]);router[_0xe120('0x12')](_0xe120('0xc'),auth['isAuthenticated'](),controller['removeAgents']);module[_0xe120('0x15')]=router;