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