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