Built motion from commit (unavailable).|2.5.4
[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 _0x5e72=['Request','GetFreshdeskAccount','name','username','apiKey','remoteUri','serverUrl','Configurations','Tag','FreshdeskField','Subjects','content','variableName','Variable','Descriptions','type','key','customField','../../client','getFreshdeskAccounts'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x5e72,0xda));var _0x25e7=function(_0x272a3a,_0x3b96e5){_0x272a3a=_0x272a3a-0x0;var _0x13929d=_0x5e72[_0x272a3a];return _0x13929d;};'use strict';var client=require(_0x25e7('0x0'));exports[_0x25e7('0x1')]=function(){return function(_0x2f5a12){return client[_0x25e7('0x2')](_0x25e7('0x3'),{'options':{'raw':![],'attributes':['id',_0x25e7('0x4'),_0x25e7('0x5'),_0x25e7('0x6'),_0x25e7('0x7'),_0x25e7('0x8')],'include':[{'model':'FreshdeskConfiguration','as':_0x25e7('0x9'),'attributes':['id','name'],'include':[{'model':_0x25e7('0xa'),'attributes':['id',_0x25e7('0x4')]},{'model':_0x25e7('0xb'),'as':_0x25e7('0xc'),'attributes':['id','type',_0x25e7('0xd'),_0x25e7('0xe')],'include':[{'model':_0x25e7('0xf'),'as':_0x25e7('0xf'),'attributes':['id','name']}]},{'model':_0x25e7('0xb'),'as':_0x25e7('0x10'),'attributes':['id',_0x25e7('0x11'),'content',_0x25e7('0x12'),'keyType','keyContent',_0x25e7('0xe')],'include':[{'model':_0x25e7('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0x25e7('0xb'),'as':'Fields','attributes':['id','type',_0x25e7('0xd'),'idField','nameField',_0x25e7('0x13'),_0x25e7('0xe')],'include':[{'model':'Variable','as':_0x25e7('0xf'),'attributes':['id','name']}]}]}]},'log':_0x25e7('0x3')});};};