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