Built motion from commit 97153652.|2.6.26
[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 _0x220b=['getFreshdeskAccounts','Request','GetFreshdeskAccount','username','remoteUri','FreshdeskConfiguration','Configurations','name','Tag','FreshdeskField','Subjects','content','variableName','Variable','Descriptions','type','keyType','keyContent','Fields','idField','nameField','customField'];(function(_0x5a95fa,_0x4a2fc9){var _0x1a61b8=function(_0x59f119){while(--_0x59f119){_0x5a95fa['push'](_0x5a95fa['shift']());}};_0x1a61b8(++_0x4a2fc9);}(_0x220b,0x1a2));var _0xb220=function(_0x1ee9a1,_0x5f1434){_0x1ee9a1=_0x1ee9a1-0x0;var _0x21270f=_0x220b[_0x1ee9a1];return _0x21270f;};'use strict';var client=require('../../client');exports[_0xb220('0x0')]=function(){return function(_0x69e237){return client[_0xb220('0x1')](_0xb220('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xb220('0x3'),'apiKey',_0xb220('0x4'),'serverUrl'],'include':[{'model':_0xb220('0x5'),'as':_0xb220('0x6'),'attributes':['id',_0xb220('0x7')],'include':[{'model':_0xb220('0x8'),'attributes':['id','name']},{'model':_0xb220('0x9'),'as':_0xb220('0xa'),'attributes':['id','type',_0xb220('0xb'),_0xb220('0xc')],'include':[{'model':_0xb220('0xd'),'as':_0xb220('0xd'),'attributes':['id',_0xb220('0x7')]}]},{'model':_0xb220('0x9'),'as':_0xb220('0xe'),'attributes':['id',_0xb220('0xf'),_0xb220('0xb'),'key',_0xb220('0x10'),_0xb220('0x11'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':'FreshdeskField','as':_0xb220('0x12'),'attributes':['id','type',_0xb220('0xb'),_0xb220('0x13'),_0xb220('0x14'),_0xb220('0x15'),'variableName'],'include':[{'model':'Variable','as':_0xb220('0xd'),'attributes':['id',_0xb220('0x7')]}]}]}]},'log':_0xb220('0x2')});};};