Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / services / ami / rpc / integrations / desk.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 _0x2334=['content','variableName','Variable','Descriptions','key','keyContent','idField','nameField','customField','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','password','authType','serverUrl','name','DeskField','Subjects','type'];(function(_0x9df060,_0x253d33){var _0x338dfe=function(_0x17d9a5){while(--_0x17d9a5){_0x9df060['push'](_0x9df060['shift']());}};_0x338dfe(++_0x253d33);}(_0x2334,0xb2));var _0x4233=function(_0x5ca0cd,_0x6a360a){_0x5ca0cd=_0x5ca0cd-0x0;var _0x1f2ee4=_0x2334[_0x5ca0cd];return _0x1f2ee4;};'use strict';var client=require(_0x4233('0x0'));exports[_0x4233('0x1')]=function(){return function(_0x1f04c7){return client[_0x4233('0x2')](_0x4233('0x3'),{'options':{'raw':![],'attributes':['id','name','description','username',_0x4233('0x4'),'remoteUri',_0x4233('0x5'),'type',_0x4233('0x6')],'include':[{'model':'DeskConfiguration','as':'Configurations','attributes':['id',_0x4233('0x7')],'include':[{'model':_0x4233('0x8'),'as':_0x4233('0x9'),'attributes':['id',_0x4233('0xa'),_0x4233('0xb'),_0x4233('0xc')],'include':[{'model':_0x4233('0xd'),'as':_0x4233('0xd'),'attributes':['id',_0x4233('0x7')]}]},{'model':_0x4233('0x8'),'as':_0x4233('0xe'),'attributes':['id',_0x4233('0xa'),_0x4233('0xb'),_0x4233('0xf'),'keyType',_0x4233('0x10'),_0x4233('0xc')],'include':[{'model':_0x4233('0xd'),'as':_0x4233('0xd'),'attributes':['id',_0x4233('0x7')]}]},{'model':_0x4233('0x8'),'as':'Fields','attributes':['id',_0x4233('0xa'),_0x4233('0xb'),_0x4233('0x11'),_0x4233('0x12'),_0x4233('0x13'),_0x4233('0xc')],'include':[{'model':_0x4233('0xd'),'as':_0x4233('0xd'),'attributes':['id',_0x4233('0x7')]}]},{'model':'Tag','as':_0x4233('0x14'),'attributes':['id',_0x4233('0x7')]}]}]},'log':'GetDeskAccount'});};};