f27121787dc0bbfd318aac2a61435cc5186d4bbe
[motion2.git] / server / services / ami / rpc / integrations / zoho.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 _0x5925=['idField','nameField','customField','../../client','getZohoAccounts','Request','GetZohoAccount','name','description','host','zone','clientId','clientSecret','serverUrl','code','refreshToken','ZohoConfiguration','Configurations','moduleCreate','ZohoField','Subjects','content','variableName','Variable','Descriptions','type','key','keyType'];(function(_0x37d172,_0x55b556){var _0xc6dac3=function(_0x2a5742){while(--_0x2a5742){_0x37d172['push'](_0x37d172['shift']());}};_0xc6dac3(++_0x55b556);}(_0x5925,0xab));var _0x5592=function(_0x1e1f17,_0x4bd574){_0x1e1f17=_0x1e1f17-0x0;var _0x465b52=_0x5925[_0x1e1f17];return _0x465b52;};'use strict';var client=require(_0x5592('0x0'));exports[_0x5592('0x1')]=function(){return function(_0x2b754d){return client[_0x5592('0x2')](_0x5592('0x3'),{'options':{'raw':![],'attributes':['id',_0x5592('0x4'),_0x5592('0x5'),_0x5592('0x6'),_0x5592('0x7'),_0x5592('0x8'),_0x5592('0x9'),_0x5592('0xa'),_0x5592('0xb'),_0x5592('0xc')],'include':[{'model':_0x5592('0xd'),'as':_0x5592('0xe'),'attributes':['id',_0x5592('0x4'),_0x5592('0xf'),'moduleSearch','description'],'include':[{'model':_0x5592('0x10'),'as':_0x5592('0x11'),'attributes':['id','type',_0x5592('0x12'),_0x5592('0x13')],'include':[{'model':'Variable','as':_0x5592('0x14'),'attributes':['id',_0x5592('0x4')]}]},{'model':_0x5592('0x10'),'as':_0x5592('0x15'),'attributes':['id',_0x5592('0x16'),_0x5592('0x12'),_0x5592('0x17'),_0x5592('0x18'),'keyContent',_0x5592('0x13')],'include':[{'model':_0x5592('0x14'),'as':_0x5592('0x14'),'attributes':['id',_0x5592('0x4')]}]},{'model':_0x5592('0x10'),'as':'Fields','attributes':['id',_0x5592('0x16'),'content',_0x5592('0x19'),_0x5592('0x1a'),_0x5592('0x1b'),_0x5592('0x13')],'include':[{'model':_0x5592('0x14'),'as':'Variable','attributes':['id','name']}]}]}]},'log':_0x5592('0x3')});};};