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