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