Built motion from commit 14588770.|2.5.38
[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 _0xe112=['DeskConfiguration','name','DeskField','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','Tag','Tags','../../client','getDeskAccounts','Request','GetDeskAccount','username','password','authType','type','serverUrl'];(function(_0x4a7269,_0x887887){var _0xc7154=function(_0x3fb2c1){while(--_0x3fb2c1){_0x4a7269['push'](_0x4a7269['shift']());}};_0xc7154(++_0x887887);}(_0xe112,0xaf));var _0x2e11=function(_0x1b22c4,_0x57c7ed){_0x1b22c4=_0x1b22c4-0x0;var _0x56cabc=_0xe112[_0x1b22c4];return _0x56cabc;};'use strict';var client=require(_0x2e11('0x0'));exports[_0x2e11('0x1')]=function(){return function(_0x320dca){return client[_0x2e11('0x2')](_0x2e11('0x3'),{'options':{'raw':![],'attributes':['id','name','description',_0x2e11('0x4'),_0x2e11('0x5'),'remoteUri',_0x2e11('0x6'),_0x2e11('0x7'),_0x2e11('0x8')],'include':[{'model':_0x2e11('0x9'),'as':'Configurations','attributes':['id',_0x2e11('0xa')],'include':[{'model':_0x2e11('0xb'),'as':'Subjects','attributes':['id',_0x2e11('0x7'),_0x2e11('0xc'),_0x2e11('0xd')],'include':[{'model':'Variable','as':_0x2e11('0xe'),'attributes':['id',_0x2e11('0xa')]}]},{'model':_0x2e11('0xb'),'as':_0x2e11('0xf'),'attributes':['id','type',_0x2e11('0xc'),_0x2e11('0x10'),_0x2e11('0x11'),_0x2e11('0x12'),'variableName'],'include':[{'model':_0x2e11('0xe'),'as':'Variable','attributes':['id',_0x2e11('0xa')]}]},{'model':_0x2e11('0xb'),'as':_0x2e11('0x13'),'attributes':['id',_0x2e11('0x7'),_0x2e11('0xc'),_0x2e11('0x14'),'nameField','customField',_0x2e11('0xd')],'include':[{'model':_0x2e11('0xe'),'as':_0x2e11('0xe'),'attributes':['id',_0x2e11('0xa')]}]},{'model':_0x2e11('0x15'),'as':_0x2e11('0x16'),'attributes':['id',_0x2e11('0xa')]}]}]},'log':'GetDeskAccount'});};};