Built motion from commit bab6f49e.|2.6.17
[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 _0x153c=['customField','variableName','../../client','getFreshdeskAccounts','Request','name','username','apiKey','remoteUri','serverUrl','FreshdeskConfiguration','Configurations','Tag','FreshdeskField','Subjects','type','Variable','Descriptions','keyType','keyContent','Fields','content','nameField'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0x153c,0x8c));var _0xc153=function(_0x42bc64,_0x33f425){_0x42bc64=_0x42bc64-0x0;var _0x4cb3c9=_0x153c[_0x42bc64];return _0x4cb3c9;};'use strict';var client=require(_0xc153('0x0'));exports[_0xc153('0x1')]=function(){return function(_0x1baedd){return client[_0xc153('0x2')]('GetFreshdeskAccount',{'options':{'raw':![],'attributes':['id',_0xc153('0x3'),_0xc153('0x4'),_0xc153('0x5'),_0xc153('0x6'),_0xc153('0x7')],'include':[{'model':_0xc153('0x8'),'as':_0xc153('0x9'),'attributes':['id','name'],'include':[{'model':_0xc153('0xa'),'attributes':['id',_0xc153('0x3')]},{'model':_0xc153('0xb'),'as':_0xc153('0xc'),'attributes':['id',_0xc153('0xd'),'content','variableName'],'include':[{'model':'Variable','as':_0xc153('0xe'),'attributes':['id',_0xc153('0x3')]}]},{'model':_0xc153('0xb'),'as':_0xc153('0xf'),'attributes':['id',_0xc153('0xd'),'content','key',_0xc153('0x10'),_0xc153('0x11'),'variableName'],'include':[{'model':_0xc153('0xe'),'as':_0xc153('0xe'),'attributes':['id','name']}]},{'model':'FreshdeskField','as':_0xc153('0x12'),'attributes':['id',_0xc153('0xd'),_0xc153('0x13'),'idField',_0xc153('0x14'),_0xc153('0x15'),_0xc153('0x16')],'include':[{'model':'Variable','as':_0xc153('0xe'),'attributes':['id',_0xc153('0x3')]}]}]}]},'log':'GetFreshdeskAccount'});};};