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