a556a00130bf03ebdb0441d485a04bbbef56a98a
[motion2.git] / server / services / ami / rpc / integrations / zendesk.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 _0xfe3f=['customField','GetZendeskAccount','getZendeskAccounts','Request','name','username','token','authType','type','Configurations','Subjects','content','variableName','Variable','ZendeskField','key','keyType','keyContent','Fields','idField','nameField'];(function(_0x5d1698,_0x13b5f8){var _0x335055=function(_0x5341db){while(--_0x5341db){_0x5d1698['push'](_0x5d1698['shift']());}};_0x335055(++_0x13b5f8);}(_0xfe3f,0x1bb));var _0xffe3=function(_0x3067f8,_0x167e05){_0x3067f8=_0x3067f8-0x0;var _0x3f3a75=_0xfe3f[_0x3067f8];return _0x3f3a75;};'use strict';var client=require('../../client');exports[_0xffe3('0x0')]=function(){return function(_0x2649a5){return client[_0xffe3('0x1')]('GetZendeskAccount',{'options':{'raw':![],'attributes':['id',_0xffe3('0x2'),_0xffe3('0x3'),'password',_0xffe3('0x4'),'remoteUri',_0xffe3('0x5'),'serverUrl',_0xffe3('0x6')],'include':[{'model':'ZendeskConfiguration','as':_0xffe3('0x7'),'attributes':['id',_0xffe3('0x2')],'include':[{'model':'Tag','attributes':['id','name']},{'model':'ZendeskField','as':_0xffe3('0x8'),'attributes':['id',_0xffe3('0x6'),_0xffe3('0x9'),_0xffe3('0xa')],'include':[{'model':_0xffe3('0xb'),'as':_0xffe3('0xb'),'attributes':['id',_0xffe3('0x2')]}]},{'model':_0xffe3('0xc'),'as':'Descriptions','attributes':['id',_0xffe3('0x6'),_0xffe3('0x9'),_0xffe3('0xd'),_0xffe3('0xe'),_0xffe3('0xf'),'variableName'],'include':[{'model':_0xffe3('0xb'),'as':'Variable','attributes':['id',_0xffe3('0x2')]}]},{'model':_0xffe3('0xc'),'as':_0xffe3('0x10'),'attributes':['id','type',_0xffe3('0x9'),_0xffe3('0x11'),_0xffe3('0x12'),_0xffe3('0x13'),_0xffe3('0xa')],'include':[{'model':'Variable','as':_0xffe3('0xb'),'attributes':['id',_0xffe3('0x2')]}]}]}]},'log':_0xffe3('0x14')});};};