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