Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / faxAccount / 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 _0x2f87=['create','/:id/canned_answers','addAnswer','/:id/interactions','addInteraction','/:id/applications','addApplications','addAccountApplications','/updateaccountapplications','updateAccountApplications','/:id/send','send','/:id','update','delete','removeDispositions','removeAnswers','removeAgents','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./faxAccount.controller','index','get','/describe','describe','isAuthenticated','show','/:id/dispositions','getDispositions','getAnswers','getInteractions','getApplications','/:id/users','post'];(function(_0xa5d052,_0x310712){var _0x12fd73=function(_0x187645){while(--_0x187645){_0xa5d052['push'](_0xa5d052['shift']());}};_0x12fd73(++_0x310712);}(_0x2f87,0x132));var _0x72f8=function(_0x2ad0a7,_0x418138){_0x2ad0a7=_0x2ad0a7-0x0;var _0x3f6916=_0x2f87[_0x2ad0a7];return _0x3f6916;};'use strict';var multer=require(_0x72f8('0x0'));var util=require(_0x72f8('0x1'));var path=require(_0x72f8('0x2'));var timeout=require('connect-timeout');var express=require(_0x72f8('0x3'));var router=express[_0x72f8('0x4')]();var auth=require(_0x72f8('0x5'));var interaction=require(_0x72f8('0x6'));var config=require(_0x72f8('0x7'));var controller=require(_0x72f8('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x72f8('0x9')]);router[_0x72f8('0xa')](_0x72f8('0xb'),auth['isAuthenticated'](),controller[_0x72f8('0xc')]);router[_0x72f8('0xa')]('/:id',auth[_0x72f8('0xd')](),controller[_0x72f8('0xe')]);router[_0x72f8('0xa')](_0x72f8('0xf'),auth[_0x72f8('0xd')](),controller[_0x72f8('0x10')]);router[_0x72f8('0xa')]('/:id/canned_answers',auth[_0x72f8('0xd')](),controller[_0x72f8('0x11')]);router['get']('/:id/interactions',auth[_0x72f8('0xd')](),controller[_0x72f8('0x12')]);router[_0x72f8('0xa')]('/:id/applications',auth[_0x72f8('0xd')](),controller[_0x72f8('0x13')]);router[_0x72f8('0xa')]('/:id/messages',auth[_0x72f8('0xd')](),controller['getMessages']);router[_0x72f8('0xa')](_0x72f8('0x14'),auth[_0x72f8('0xd')](),controller['getAgents']);router[_0x72f8('0x15')]('/',auth[_0x72f8('0xd')](),controller[_0x72f8('0x16')]);router['post'](_0x72f8('0xf'),auth[_0x72f8('0xd')](),controller['addDisposition']);router['post'](_0x72f8('0x17'),auth[_0x72f8('0xd')](),controller[_0x72f8('0x18')]);router[_0x72f8('0x15')](_0x72f8('0x19'),auth['isAuthenticated'](),controller[_0x72f8('0x1a')]);router['post'](_0x72f8('0x1b'),auth[_0x72f8('0xd')](),controller[_0x72f8('0x1c')]);router[_0x72f8('0x15')]('/addaccountapplications',auth[_0x72f8('0xd')](),controller[_0x72f8('0x1d')]);router[_0x72f8('0x15')](_0x72f8('0x1e'),auth[_0x72f8('0xd')](),controller[_0x72f8('0x1f')]);router[_0x72f8('0x15')](_0x72f8('0x20'),auth[_0x72f8('0xd')](),controller[_0x72f8('0x21')]);router[_0x72f8('0x15')]('/:id/users',auth[_0x72f8('0xd')](),controller['addAgents']);router['put'](_0x72f8('0x22'),auth[_0x72f8('0xd')](),controller[_0x72f8('0x23')]);router['delete']('/:id',auth[_0x72f8('0xd')](),controller['destroy']);router[_0x72f8('0x24')](_0x72f8('0xf'),auth[_0x72f8('0xd')](),controller[_0x72f8('0x25')]);router[_0x72f8('0x24')](_0x72f8('0x17'),auth[_0x72f8('0xd')](),controller[_0x72f8('0x26')]);router[_0x72f8('0x24')](_0x72f8('0x14'),auth['isAuthenticated'](),controller[_0x72f8('0x27')]);module[_0x72f8('0x28')]=router;