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