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