78f644a0a9b9ed671c275a6d9cf6ffbc91fe58f4
[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 _0x8257=['password','token','authType','type','ZendeskConfiguration','Tag','Subjects','content','variableName','Variable','ZendeskField','Descriptions','key','keyType','keyContent','Fields','idField','../../client','getZendeskAccounts','Request','GetZendeskAccount','name'];(function(_0x16d51f,_0x546aa9){var _0x46ff17=function(_0x3e86aa){while(--_0x3e86aa){_0x16d51f['push'](_0x16d51f['shift']());}};_0x46ff17(++_0x546aa9);}(_0x8257,0x103));var _0x7825=function(_0x46aff0,_0x122890){_0x46aff0=_0x46aff0-0x0;var _0x9d78cf=_0x8257[_0x46aff0];return _0x9d78cf;};'use strict';var client=require(_0x7825('0x0'));exports[_0x7825('0x1')]=function(){return function(_0xa21ed1){return client[_0x7825('0x2')](_0x7825('0x3'),{'options':{'raw':![],'attributes':['id',_0x7825('0x4'),'username',_0x7825('0x5'),_0x7825('0x6'),'remoteUri',_0x7825('0x7'),'serverUrl',_0x7825('0x8')],'include':[{'model':_0x7825('0x9'),'as':'Configurations','attributes':['id',_0x7825('0x4')],'include':[{'model':_0x7825('0xa'),'attributes':['id',_0x7825('0x4')]},{'model':'ZendeskField','as':_0x7825('0xb'),'attributes':['id','type',_0x7825('0xc'),_0x7825('0xd')],'include':[{'model':_0x7825('0xe'),'as':_0x7825('0xe'),'attributes':['id',_0x7825('0x4')]}]},{'model':_0x7825('0xf'),'as':_0x7825('0x10'),'attributes':['id','type',_0x7825('0xc'),_0x7825('0x11'),_0x7825('0x12'),_0x7825('0x13'),_0x7825('0xd')],'include':[{'model':_0x7825('0xe'),'as':'Variable','attributes':['id',_0x7825('0x4')]}]},{'model':_0x7825('0xf'),'as':_0x7825('0x14'),'attributes':['id',_0x7825('0x8'),'content',_0x7825('0x15'),'nameField','customField',_0x7825('0xd')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x7825('0x4')]}]}]}]},'log':_0x7825('0x3')});};};