Built motion from commit (unavailable).|2.5.4
[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 _0x8732=['Variable','nameField','../../client','getDeskAccounts','Request','name','description','username','remoteUri','authType','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','content','variableName','Descriptions','key','keyType','keyContent'];(function(_0x53fa09,_0x241a29){var _0x480f49=function(_0x244fea){while(--_0x244fea){_0x53fa09['push'](_0x53fa09['shift']());}};_0x480f49(++_0x241a29);}(_0x8732,0x14c));var _0x2873=function(_0x17caca,_0x2bc731){_0x17caca=_0x17caca-0x0;var _0x1d9b18=_0x8732[_0x17caca];return _0x1d9b18;};'use strict';var client=require(_0x2873('0x0'));exports[_0x2873('0x1')]=function(){return function(_0x1b569a){return client[_0x2873('0x2')]('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0x2873('0x3'),_0x2873('0x4'),_0x2873('0x5'),'password',_0x2873('0x6'),_0x2873('0x7'),_0x2873('0x8'),_0x2873('0x9')],'include':[{'model':_0x2873('0xa'),'as':_0x2873('0xb'),'attributes':['id','name'],'include':[{'model':_0x2873('0xc'),'as':_0x2873('0xd'),'attributes':['id','type',_0x2873('0xe'),_0x2873('0xf')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x2873('0x3')]}]},{'model':_0x2873('0xc'),'as':_0x2873('0x10'),'attributes':['id',_0x2873('0x8'),_0x2873('0xe'),_0x2873('0x11'),_0x2873('0x12'),_0x2873('0x13'),_0x2873('0xf')],'include':[{'model':'Variable','as':_0x2873('0x14'),'attributes':['id',_0x2873('0x3')]}]},{'model':_0x2873('0xc'),'as':'Fields','attributes':['id',_0x2873('0x8'),_0x2873('0xe'),'idField',_0x2873('0x15'),'customField','variableName'],'include':[{'model':'Variable','as':_0x2873('0x14'),'attributes':['id','name']}]},{'model':'Tag','as':'Tags','attributes':['id',_0x2873('0x3')]}]}]},'log':'GetDeskAccount'});};};