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