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