Built motion from commit ba71417a.|2.6.28
[motion2.git] / server / services / ami / rpc / integrations / freshdesk.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 _0x6a00=['customField','../../client','getFreshdeskAccounts','Request','GetFreshdeskAccount','name','username','apiKey','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','type','content','variableName','Variable','Descriptions','key','Fields','nameField'];(function(_0x14d7f8,_0x43e9f0){var _0x35301a=function(_0x26b7bf){while(--_0x26b7bf){_0x14d7f8['push'](_0x14d7f8['shift']());}};_0x35301a(++_0x43e9f0);}(_0x6a00,0xc9));var _0x06a0=function(_0x1b5aea,_0x3f04b7){_0x1b5aea=_0x1b5aea-0x0;var _0x15cfc6=_0x6a00[_0x1b5aea];return _0x15cfc6;};'use strict';var client=require(_0x06a0('0x0'));exports[_0x06a0('0x1')]=function(){return function(_0x503e74){return client[_0x06a0('0x2')](_0x06a0('0x3'),{'options':{'raw':![],'attributes':['id',_0x06a0('0x4'),_0x06a0('0x5'),_0x06a0('0x6'),'remoteUri','serverUrl'],'include':[{'model':_0x06a0('0x7'),'as':_0x06a0('0x8'),'attributes':['id',_0x06a0('0x4')],'include':[{'model':_0x06a0('0x9'),'attributes':['id',_0x06a0('0x4')]},{'model':_0x06a0('0xa'),'as':'Subjects','attributes':['id',_0x06a0('0xb'),_0x06a0('0xc'),_0x06a0('0xd')],'include':[{'model':_0x06a0('0xe'),'as':_0x06a0('0xe'),'attributes':['id',_0x06a0('0x4')]}]},{'model':_0x06a0('0xa'),'as':_0x06a0('0xf'),'attributes':['id',_0x06a0('0xb'),_0x06a0('0xc'),_0x06a0('0x10'),'keyType','keyContent',_0x06a0('0xd')],'include':[{'model':_0x06a0('0xe'),'as':_0x06a0('0xe'),'attributes':['id',_0x06a0('0x4')]}]},{'model':_0x06a0('0xa'),'as':_0x06a0('0x11'),'attributes':['id',_0x06a0('0xb'),_0x06a0('0xc'),'idField',_0x06a0('0x12'),_0x06a0('0x13'),_0x06a0('0xd')],'include':[{'model':'Variable','as':_0x06a0('0xe'),'attributes':['id',_0x06a0('0x4')]}]}]}]},'log':_0x06a0('0x3')});};};