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