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