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