449420c290645959c58ebc425ddb5509b796fa08
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0xe55b=['key','keyType','keyContent','idField','nameField','../../client','getVtigerAccounts','GetVtigerAccount','name','description','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Configurations','Subjects','content','variableName','Variable','VtigerField','type'];(function(_0x1766c1,_0x4fac8f){var _0x74fac0=function(_0x1fcf21){while(--_0x1fcf21){_0x1766c1['push'](_0x1766c1['shift']());}};_0x74fac0(++_0x4fac8f);}(_0xe55b,0x89));var _0xbe55=function(_0x23884b,_0x50c307){_0x23884b=_0x23884b-0x0;var _0x28113b=_0xe55b[_0x23884b];return _0x28113b;};'use strict';var client=require(_0xbe55('0x0'));exports[_0xbe55('0x1')]=function(){return function(_0x801474){return client['Request'](_0xbe55('0x2'),{'options':{'raw':![],'attributes':['id',_0xbe55('0x3'),_0xbe55('0x4'),_0xbe55('0x5'),_0xbe55('0x6'),_0xbe55('0x7'),_0xbe55('0x8')],'include':[{'model':_0xbe55('0x9'),'as':_0xbe55('0xa'),'attributes':['id',_0xbe55('0x3')],'include':[{'model':'VtigerField','as':_0xbe55('0xb'),'attributes':['id','type',_0xbe55('0xc'),_0xbe55('0xd')],'include':[{'model':_0xbe55('0xe'),'as':_0xbe55('0xe'),'attributes':['id','name']}]},{'model':_0xbe55('0xf'),'as':'Descriptions','attributes':['id',_0xbe55('0x10'),'content',_0xbe55('0x11'),_0xbe55('0x12'),_0xbe55('0x13'),_0xbe55('0xd')],'include':[{'model':_0xbe55('0xe'),'as':_0xbe55('0xe'),'attributes':['id',_0xbe55('0x3')]}]},{'model':'VtigerField','as':'Fields','attributes':['id','type','content',_0xbe55('0x14'),_0xbe55('0x15'),'customField',_0xbe55('0xd')],'include':[{'model':_0xbe55('0xe'),'as':_0xbe55('0xe'),'attributes':['id','name']}]}]}]},'log':'GetVtigerAccount'});};};