8df14328204ad84a32b425ff6fb5ed1f02ac96c3
[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 _0x1049=['token','remoteUri','authType','type','Tag','ZendeskField','Subjects','content','variableName','Descriptions','keyType','keyContent','Fields','idField','nameField','customField','Variable','../../client','getZendeskAccounts','GetZendeskAccount','name','username','password'];(function(_0xff8e44,_0x861870){var _0x3975b4=function(_0x2d5e81){while(--_0x2d5e81){_0xff8e44['push'](_0xff8e44['shift']());}};_0x3975b4(++_0x861870);}(_0x1049,0x125));var _0x9104=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x1049[_0x14add3];return _0x4a174f;};'use strict';var client=require(_0x9104('0x0'));exports[_0x9104('0x1')]=function(){return function(_0x2db99f){return client['Request'](_0x9104('0x2'),{'options':{'raw':![],'attributes':['id',_0x9104('0x3'),_0x9104('0x4'),_0x9104('0x5'),_0x9104('0x6'),_0x9104('0x7'),_0x9104('0x8'),'serverUrl',_0x9104('0x9')],'include':[{'model':'ZendeskConfiguration','as':'Configurations','attributes':['id',_0x9104('0x3')],'include':[{'model':_0x9104('0xa'),'attributes':['id','name']},{'model':_0x9104('0xb'),'as':_0x9104('0xc'),'attributes':['id',_0x9104('0x9'),_0x9104('0xd'),_0x9104('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x9104('0x3')]}]},{'model':'ZendeskField','as':_0x9104('0xf'),'attributes':['id',_0x9104('0x9'),_0x9104('0xd'),'key',_0x9104('0x10'),_0x9104('0x11'),_0x9104('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x9104('0x3')]}]},{'model':_0x9104('0xb'),'as':_0x9104('0x12'),'attributes':['id',_0x9104('0x9'),'content',_0x9104('0x13'),_0x9104('0x14'),_0x9104('0x15'),_0x9104('0xe')],'include':[{'model':_0x9104('0x16'),'as':_0x9104('0x16'),'attributes':['id',_0x9104('0x3')]}]}]}]},'log':_0x9104('0x2')});};};