Built motion from commit 85328c08.|2.5.50
[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 _0xc584=['name','description','username','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','variableName','Variable','Descriptions','key','keyType','keyContent','content','idField','nameField','Tag','../../client','getDeskAccounts','Request','GetDeskAccount'];(function(_0x10791d,_0x2562b6){var _0x1b4f9c=function(_0x3b2815){while(--_0x3b2815){_0x10791d['push'](_0x10791d['shift']());}};_0x1b4f9c(++_0x2562b6);}(_0xc584,0x183));var _0x4c58=function(_0x4fd109,_0x33c503){_0x4fd109=_0x4fd109-0x0;var _0x30f0a6=_0xc584[_0x4fd109];return _0x30f0a6;};'use strict';var client=require(_0x4c58('0x0'));exports[_0x4c58('0x1')]=function(){return function(_0x556df7){return client[_0x4c58('0x2')](_0x4c58('0x3'),{'options':{'raw':![],'attributes':['id',_0x4c58('0x4'),_0x4c58('0x5'),_0x4c58('0x6'),'password','remoteUri','authType',_0x4c58('0x7'),_0x4c58('0x8')],'include':[{'model':_0x4c58('0x9'),'as':_0x4c58('0xa'),'attributes':['id',_0x4c58('0x4')],'include':[{'model':_0x4c58('0xb'),'as':_0x4c58('0xc'),'attributes':['id','type','content',_0x4c58('0xd')],'include':[{'model':_0x4c58('0xe'),'as':_0x4c58('0xe'),'attributes':['id',_0x4c58('0x4')]}]},{'model':_0x4c58('0xb'),'as':_0x4c58('0xf'),'attributes':['id',_0x4c58('0x7'),'content',_0x4c58('0x10'),_0x4c58('0x11'),_0x4c58('0x12'),_0x4c58('0xd')],'include':[{'model':_0x4c58('0xe'),'as':_0x4c58('0xe'),'attributes':['id',_0x4c58('0x4')]}]},{'model':_0x4c58('0xb'),'as':'Fields','attributes':['id',_0x4c58('0x7'),_0x4c58('0x13'),_0x4c58('0x14'),_0x4c58('0x15'),'customField',_0x4c58('0xd')],'include':[{'model':_0x4c58('0xe'),'as':_0x4c58('0xe'),'attributes':['id',_0x4c58('0x4')]}]},{'model':_0x4c58('0x16'),'as':'Tags','attributes':['id',_0x4c58('0x4')]}]}]},'log':_0x4c58('0x3')});};};