Built motion from commit ae138b72.|2.6.28
[motion2.git] / server / api / openchannelAccount / 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 _0x4b17=['path','express','Router','../../components/auth/service','./openchannelAccount.controller','get','isAuthenticated','index','/describe','/:id','show','getDispositions','/:id/canned_answers','getAnswers','/:id/interactions','create','post','/:id/dispositions','addDisposition','addAnswer','/:id/notify','notify','addApplications','/:id/users','addAgents','/:id/send','send','put','destroy','delete','removeAnswers','removeAgents','exports','multer'];(function(_0xbe9886,_0x128ea5){var _0x82a852=function(_0x4d3325){while(--_0x4d3325){_0xbe9886['push'](_0xbe9886['shift']());}};_0x82a852(++_0x128ea5);}(_0x4b17,0x10f));var _0x74b1=function(_0x22093a,_0xa7acf1){_0x22093a=_0x22093a-0x0;var _0x2f4989=_0x4b17[_0x22093a];return _0x2f4989;};'use strict';var multer=require(_0x74b1('0x0'));var util=require('util');var path=require(_0x74b1('0x1'));var timeout=require('connect-timeout');var express=require(_0x74b1('0x2'));var router=express[_0x74b1('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x74b1('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x74b1('0x5'));router[_0x74b1('0x6')]('/',auth[_0x74b1('0x7')](),controller[_0x74b1('0x8')]);router[_0x74b1('0x6')](_0x74b1('0x9'),auth[_0x74b1('0x7')](),controller['describe']);router[_0x74b1('0x6')](_0x74b1('0xa'),auth[_0x74b1('0x7')](),controller[_0x74b1('0xb')]);router[_0x74b1('0x6')]('/:id/dispositions',auth[_0x74b1('0x7')](),controller[_0x74b1('0xc')]);router['get'](_0x74b1('0xd'),auth[_0x74b1('0x7')](),controller[_0x74b1('0xe')]);router[_0x74b1('0x6')]('/:id/applications',auth[_0x74b1('0x7')](),controller['getApplications']);router['get'](_0x74b1('0xf'),auth[_0x74b1('0x7')](),controller['getInteractions']);router['get']('/:id/users',auth[_0x74b1('0x7')](),controller['getAgents']);router['post']('/',auth[_0x74b1('0x7')](),controller[_0x74b1('0x10')]);router[_0x74b1('0x11')](_0x74b1('0x12'),auth[_0x74b1('0x7')](),controller[_0x74b1('0x13')]);router['post'](_0x74b1('0xd'),auth[_0x74b1('0x7')](),controller[_0x74b1('0x14')]);router[_0x74b1('0x11')](_0x74b1('0x15'),controller[_0x74b1('0x16')]);router[_0x74b1('0x11')]('/:id/applications',auth[_0x74b1('0x7')](),controller[_0x74b1('0x17')]);router['post'](_0x74b1('0x18'),auth[_0x74b1('0x7')](),controller[_0x74b1('0x19')]);router[_0x74b1('0x11')](_0x74b1('0x1a'),auth[_0x74b1('0x7')](),controller[_0x74b1('0x1b')]);router[_0x74b1('0x1c')]('/:id',auth[_0x74b1('0x7')](),controller['update']);router['delete']('/:id',auth[_0x74b1('0x7')](),controller[_0x74b1('0x1d')]);router[_0x74b1('0x1e')](_0x74b1('0x12'),auth[_0x74b1('0x7')](),controller['removeDispositions']);router[_0x74b1('0x1e')]('/:id/canned_answers',auth[_0x74b1('0x7')](),controller[_0x74b1('0x1f')]);router[_0x74b1('0x1e')](_0x74b1('0x18'),auth[_0x74b1('0x7')](),controller[_0x74b1('0x20')]);module[_0x74b1('0x21')]=router;