Built motion from commit (unavailable).|2.5.29
[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 _0x9cd1=['apiKey','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','type','content','variableName','Variable','Descriptions','key','Fields','idField','customField','../../client','getFreshdeskAccounts','GetFreshdeskAccount','name','username'];(function(_0x2ae368,_0xf0106c){var _0xedf05b=function(_0x2098dd){while(--_0x2098dd){_0x2ae368['push'](_0x2ae368['shift']());}};_0xedf05b(++_0xf0106c);}(_0x9cd1,0x1de));var _0x19cd=function(_0x82cdba,_0x479cbf){_0x82cdba=_0x82cdba-0x0;var _0x13fe05=_0x9cd1[_0x82cdba];return _0x13fe05;};'use strict';var client=require(_0x19cd('0x0'));exports[_0x19cd('0x1')]=function(){return function(_0x29416c){return client['Request'](_0x19cd('0x2'),{'options':{'raw':![],'attributes':['id',_0x19cd('0x3'),_0x19cd('0x4'),_0x19cd('0x5'),'remoteUri',_0x19cd('0x6')],'include':[{'model':_0x19cd('0x7'),'as':_0x19cd('0x8'),'attributes':['id',_0x19cd('0x3')],'include':[{'model':_0x19cd('0x9'),'attributes':['id',_0x19cd('0x3')]},{'model':_0x19cd('0xa'),'as':_0x19cd('0xb'),'attributes':['id',_0x19cd('0xc'),_0x19cd('0xd'),_0x19cd('0xe')],'include':[{'model':_0x19cd('0xf'),'as':'Variable','attributes':['id','name']}]},{'model':_0x19cd('0xa'),'as':_0x19cd('0x10'),'attributes':['id',_0x19cd('0xc'),_0x19cd('0xd'),_0x19cd('0x11'),'keyType','keyContent','variableName'],'include':[{'model':_0x19cd('0xf'),'as':_0x19cd('0xf'),'attributes':['id',_0x19cd('0x3')]}]},{'model':_0x19cd('0xa'),'as':_0x19cd('0x12'),'attributes':['id',_0x19cd('0xc'),_0x19cd('0xd'),_0x19cd('0x13'),'nameField',_0x19cd('0x14'),_0x19cd('0xe')],'include':[{'model':_0x19cd('0xf'),'as':_0x19cd('0xf'),'attributes':['id',_0x19cd('0x3')]}]}]}]},'log':'GetFreshdeskAccount'});};};