Built motion from commit 25580385.|2.6.2
[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 _0xa671=['../../config/environment','./voicePrefix.controller','get','isAuthenticated','index','/describe','describe','/:id','show','/:id/users','getAgents','/:id/teams','post','create','put','update','destroy','delete','removeTeams','exports','util','path','connect-timeout','express','../../components/auth/service'];(function(_0x72f2a0,_0x3a8a0d){var _0x3e39a8=function(_0x43f1b3){while(--_0x43f1b3){_0x72f2a0['push'](_0x72f2a0['shift']());}};_0x3e39a8(++_0x3a8a0d);}(_0xa671,0x1a4));var _0x1a67=function(_0x3a00cb,_0x407ba5){_0x3a00cb=_0x3a00cb-0x0;var _0x2cf4c2=_0xa671[_0x3a00cb];return _0x2cf4c2;};'use strict';var multer=require('multer');var util=require(_0x1a67('0x0'));var path=require(_0x1a67('0x1'));var timeout=require(_0x1a67('0x2'));var express=require(_0x1a67('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x1a67('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x1a67('0x5'));var controller=require(_0x1a67('0x6'));router[_0x1a67('0x7')]('/',auth[_0x1a67('0x8')](),controller[_0x1a67('0x9')]);router['get'](_0x1a67('0xa'),auth[_0x1a67('0x8')](),controller[_0x1a67('0xb')]);router[_0x1a67('0x7')](_0x1a67('0xc'),auth[_0x1a67('0x8')](),controller[_0x1a67('0xd')]);router[_0x1a67('0x7')](_0x1a67('0xe'),auth[_0x1a67('0x8')](),controller[_0x1a67('0xf')]);router[_0x1a67('0x7')](_0x1a67('0x10'),auth[_0x1a67('0x8')](),controller['getTeams']);router[_0x1a67('0x11')]('/',auth[_0x1a67('0x8')](),controller[_0x1a67('0x12')]);router['post']('/:id/users',auth[_0x1a67('0x8')](),controller['addAgents']);router[_0x1a67('0x11')]('/:id/teams',auth[_0x1a67('0x8')](),controller['addTeams']);router[_0x1a67('0x13')]('/:id',auth[_0x1a67('0x8')](),controller[_0x1a67('0x14')]);router['delete']('/:id',auth['isAuthenticated'](),controller[_0x1a67('0x15')]);router[_0x1a67('0x16')](_0x1a67('0xe'),auth[_0x1a67('0x8')](),controller['removeAgents']);router[_0x1a67('0x16')]('/:id/teams',auth['isAuthenticated'](),controller[_0x1a67('0x17')]);module[_0x1a67('0x18')]=router;