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