Built motion from commit (unavailable).|2.5.8
[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 _0x3691=['getDeskAccounts','Request','GetDeskAccount','name','username','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','Subjects','variableName','Variable','DeskField','Descriptions','content','keyType','keyContent','Fields','idField','customField','Tag','Tags','../../client'];(function(_0x5c9d69,_0x4b1e37){var _0x409fea=function(_0x5b96a4){while(--_0x5b96a4){_0x5c9d69['push'](_0x5c9d69['shift']());}};_0x409fea(++_0x4b1e37);}(_0x3691,0x112));var _0x1369=function(_0x2588ee,_0x4157a2){_0x2588ee=_0x2588ee-0x0;var _0x4735d9=_0x3691[_0x2588ee];return _0x4735d9;};'use strict';var client=require(_0x1369('0x0'));exports[_0x1369('0x1')]=function(){return function(_0xa3e5b6){return client[_0x1369('0x2')](_0x1369('0x3'),{'options':{'raw':![],'attributes':['id',_0x1369('0x4'),'description',_0x1369('0x5'),'password',_0x1369('0x6'),_0x1369('0x7'),_0x1369('0x8'),_0x1369('0x9')],'include':[{'model':_0x1369('0xa'),'as':_0x1369('0xb'),'attributes':['id','name'],'include':[{'model':'DeskField','as':_0x1369('0xc'),'attributes':['id',_0x1369('0x8'),'content',_0x1369('0xd')],'include':[{'model':_0x1369('0xe'),'as':'Variable','attributes':['id',_0x1369('0x4')]}]},{'model':_0x1369('0xf'),'as':_0x1369('0x10'),'attributes':['id',_0x1369('0x8'),_0x1369('0x11'),'key',_0x1369('0x12'),_0x1369('0x13'),_0x1369('0xd')],'include':[{'model':_0x1369('0xe'),'as':_0x1369('0xe'),'attributes':['id','name']}]},{'model':_0x1369('0xf'),'as':_0x1369('0x14'),'attributes':['id',_0x1369('0x8'),_0x1369('0x11'),_0x1369('0x15'),'nameField',_0x1369('0x16'),_0x1369('0xd')],'include':[{'model':_0x1369('0xe'),'as':'Variable','attributes':['id',_0x1369('0x4')]}]},{'model':_0x1369('0x17'),'as':_0x1369('0x18'),'attributes':['id','name']}]}]},'log':'GetDeskAccount'});};};