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