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 _0x98ba=['idField','customField','Tag','Tags','GetDeskAccount','getDeskAccounts','name','description','username','password','authType','type','serverUrl','DeskConfiguration','Configurations','DeskField','Subjects','content','variableName','Variable','Descriptions','key','keyContent','Fields'];(function(_0x26b8b5,_0xf5c2c1){var _0x2150a9=function(_0x1ca1be){while(--_0x1ca1be){_0x26b8b5['push'](_0x26b8b5['shift']());}};_0x2150a9(++_0xf5c2c1);}(_0x98ba,0x125));var _0xa98b=function(_0x397469,_0x3bd9f2){_0x397469=_0x397469-0x0;var _0x29c7b7=_0x98ba[_0x397469];return _0x29c7b7;};'use strict';var client=require('../../client');exports[_0xa98b('0x0')]=function(){return function(_0x3a6d57){return client['Request']('GetDeskAccount',{'options':{'raw':![],'attributes':['id',_0xa98b('0x1'),_0xa98b('0x2'),_0xa98b('0x3'),_0xa98b('0x4'),'remoteUri',_0xa98b('0x5'),_0xa98b('0x6'),_0xa98b('0x7')],'include':[{'model':_0xa98b('0x8'),'as':_0xa98b('0x9'),'attributes':['id',_0xa98b('0x1')],'include':[{'model':_0xa98b('0xa'),'as':_0xa98b('0xb'),'attributes':['id',_0xa98b('0x6'),_0xa98b('0xc'),_0xa98b('0xd')],'include':[{'model':_0xa98b('0xe'),'as':_0xa98b('0xe'),'attributes':['id',_0xa98b('0x1')]}]},{'model':_0xa98b('0xa'),'as':_0xa98b('0xf'),'attributes':['id','type','content',_0xa98b('0x10'),'keyType',_0xa98b('0x11'),_0xa98b('0xd')],'include':[{'model':_0xa98b('0xe'),'as':_0xa98b('0xe'),'attributes':['id',_0xa98b('0x1')]}]},{'model':_0xa98b('0xa'),'as':_0xa98b('0x12'),'attributes':['id',_0xa98b('0x6'),_0xa98b('0xc'),_0xa98b('0x13'),'nameField',_0xa98b('0x14'),_0xa98b('0xd')],'include':[{'model':_0xa98b('0xe'),'as':'Variable','attributes':['id','name']}]},{'model':_0xa98b('0x15'),'as':_0xa98b('0x16'),'attributes':['id',_0xa98b('0x1')]}]}]},'log':_0xa98b('0x17')});};};