581eb3b4c5f0705261636d5b53dbdea5ebac34e9
[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 _0xe02b=['delete','/:id','destroy','removeAgents','exports','multer','util','path','connect-timeout','express','Router','../../config/environment','./voicePrefix.controller','isAuthenticated','index','get','describe','show','/:id/users','getAgents','post','create','update'];(function(_0x56b29a,_0x446611){var _0x26ba7d=function(_0x224cbe){while(--_0x224cbe){_0x56b29a['push'](_0x56b29a['shift']());}};_0x26ba7d(++_0x446611);}(_0xe02b,0xbd));var _0xbe02=function(_0x37ba5f,_0x20e99c){_0x37ba5f=_0x37ba5f-0x0;var _0x3bcce6=_0xe02b[_0x37ba5f];return _0x3bcce6;};'use strict';var multer=require(_0xbe02('0x0'));var util=require(_0xbe02('0x1'));var path=require(_0xbe02('0x2'));var timeout=require(_0xbe02('0x3'));var express=require(_0xbe02('0x4'));var router=express[_0xbe02('0x5')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xbe02('0x6'));var controller=require(_0xbe02('0x7'));router['get']('/',auth[_0xbe02('0x8')](),controller[_0xbe02('0x9')]);router[_0xbe02('0xa')]('/describe',auth[_0xbe02('0x8')](),controller[_0xbe02('0xb')]);router[_0xbe02('0xa')]('/:id',auth[_0xbe02('0x8')](),controller[_0xbe02('0xc')]);router[_0xbe02('0xa')](_0xbe02('0xd'),auth[_0xbe02('0x8')](),controller[_0xbe02('0xe')]);router[_0xbe02('0xf')]('/',auth[_0xbe02('0x8')](),controller[_0xbe02('0x10')]);router[_0xbe02('0xf')](_0xbe02('0xd'),auth['isAuthenticated'](),controller['addAgents']);router['put']('/:id',auth[_0xbe02('0x8')](),controller[_0xbe02('0x11')]);router[_0xbe02('0x12')](_0xbe02('0x13'),auth[_0xbe02('0x8')](),controller[_0xbe02('0x14')]);router[_0xbe02('0x12')]('/:id/users',auth[_0xbe02('0x8')](),controller[_0xbe02('0x15')]);module[_0xbe02('0x16')]=router;