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