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