Built motion from commit (unavailable).|2.4.20
[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 _0xc03f=['keyType','keyContent','Fields','idField','nameField','GetFreshdeskAccount','../../client','getFreshdeskAccounts','Request','name','username','apiKey','remoteUri','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key'];(function(_0x35d3a8,_0x44406a){var _0x182378=function(_0x298e0b){while(--_0x298e0b){_0x35d3a8['push'](_0x35d3a8['shift']());}};_0x182378(++_0x44406a);}(_0xc03f,0x156));var _0xfc03=function(_0x499ae7,_0x11541d){_0x499ae7=_0x499ae7-0x0;var _0xdfdd0f=_0xc03f[_0x499ae7];return _0xdfdd0f;};'use strict';var client=require(_0xfc03('0x0'));exports[_0xfc03('0x1')]=function(){return function(_0x5c684a){return client[_0xfc03('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xfc03('0x3'),_0xfc03('0x4'),_0xfc03('0x5'),_0xfc03('0x6'),'serverUrl'],'include':[{'model':_0xfc03('0x7'),'as':_0xfc03('0x8'),'attributes':['id',_0xfc03('0x3')],'include':[{'model':_0xfc03('0x9'),'attributes':['id',_0xfc03('0x3')]},{'model':_0xfc03('0xa'),'as':_0xfc03('0xb'),'attributes':['id',_0xfc03('0xc'),_0xfc03('0xd'),_0xfc03('0xe')],'include':[{'model':_0xfc03('0xf'),'as':'Variable','attributes':['id',_0xfc03('0x3')]}]},{'model':'FreshdeskField','as':_0xfc03('0x10'),'attributes':['id','type','content',_0xfc03('0x11'),_0xfc03('0x12'),_0xfc03('0x13'),_0xfc03('0xe')],'include':[{'model':_0xfc03('0xf'),'as':'Variable','attributes':['id',_0xfc03('0x3')]}]},{'model':_0xfc03('0xa'),'as':_0xfc03('0x14'),'attributes':['id',_0xfc03('0xc'),'content',_0xfc03('0x15'),_0xfc03('0x16'),'customField','variableName'],'include':[{'model':_0xfc03('0xf'),'as':_0xfc03('0xf'),'attributes':['id',_0xfc03('0x3')]}]}]}]},'log':_0xfc03('0x17')});};};