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