Built motion from commit (unavailable).|2.5.14
[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 _0x2b59=['authType','type','serverUrl','Configurations','DeskField','Subjects','content','variableName','Variable','Descriptions','keyType','keyContent','idField','nameField','customField','Tag','../../client','getDeskAccounts','Request','GetDeskAccount','name','description','remoteUri'];(function(_0xd61e2f,_0x569b44){var _0x39a5b7=function(_0x3722c8){while(--_0x3722c8){_0xd61e2f['push'](_0xd61e2f['shift']());}};_0x39a5b7(++_0x569b44);}(_0x2b59,0x169));var _0x92b5=function(_0x42cae2,_0x284ef8){_0x42cae2=_0x42cae2-0x0;var _0x5f256f=_0x2b59[_0x42cae2];return _0x5f256f;};'use strict';var client=require(_0x92b5('0x0'));exports[_0x92b5('0x1')]=function(){return function(_0x2fe2d6){return client[_0x92b5('0x2')](_0x92b5('0x3'),{'options':{'raw':![],'attributes':['id',_0x92b5('0x4'),_0x92b5('0x5'),'username','password',_0x92b5('0x6'),_0x92b5('0x7'),_0x92b5('0x8'),_0x92b5('0x9')],'include':[{'model':'DeskConfiguration','as':_0x92b5('0xa'),'attributes':['id','name'],'include':[{'model':_0x92b5('0xb'),'as':_0x92b5('0xc'),'attributes':['id','type',_0x92b5('0xd'),_0x92b5('0xe')],'include':[{'model':_0x92b5('0xf'),'as':_0x92b5('0xf'),'attributes':['id',_0x92b5('0x4')]}]},{'model':_0x92b5('0xb'),'as':_0x92b5('0x10'),'attributes':['id','type','content','key',_0x92b5('0x11'),_0x92b5('0x12'),_0x92b5('0xe')],'include':[{'model':_0x92b5('0xf'),'as':_0x92b5('0xf'),'attributes':['id',_0x92b5('0x4')]}]},{'model':_0x92b5('0xb'),'as':'Fields','attributes':['id',_0x92b5('0x8'),'content',_0x92b5('0x13'),_0x92b5('0x14'),_0x92b5('0x15'),_0x92b5('0xe')],'include':[{'model':_0x92b5('0xf'),'as':_0x92b5('0xf'),'attributes':['id',_0x92b5('0x4')]}]},{'model':_0x92b5('0x16'),'as':'Tags','attributes':['id',_0x92b5('0x4')]}]}]},'log':_0x92b5('0x3')});};};