2380ca7cf69c49a0f9ef946cb95f3b4d0a8642e3
[motion2.git] / server / services / ami / rpc / trigger.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 _0xe8ea=['operator','value','AnyConditions','Action','Actions','action','data1','data2','data4','data6','../client','Request','GetTrigger','name','channel','status','Condition','AllConditions','field'];(function(_0x4b85fe,_0x5d621b){var _0x2ecab7=function(_0x4c6c21){while(--_0x4c6c21){_0x4b85fe['push'](_0x4b85fe['shift']());}};_0x2ecab7(++_0x5d621b);}(_0xe8ea,0xa2));var _0xae8e=function(_0x465655,_0x4eb676){_0x465655=_0x465655-0x0;var _0x4fa2a4=_0xe8ea[_0x465655];return _0x4fa2a4;};'use strict';var client=require(_0xae8e('0x0'));exports['getTriggers']=function(_0xe42990){return function(_0x1bdd9b){return client[_0xae8e('0x1')](_0xae8e('0x2'),{'options':{'raw':![],'attributes':['id',_0xae8e('0x3'),_0xae8e('0x4'),_0xae8e('0x5')],'include':[{'model':_0xae8e('0x6'),'as':_0xae8e('0x7'),'attributes':['id',_0xae8e('0x8'),_0xae8e('0x9'),_0xae8e('0xa')]},{'model':_0xae8e('0x6'),'as':_0xae8e('0xb'),'attributes':['id',_0xae8e('0x8'),_0xae8e('0x9'),_0xae8e('0xa')]},{'model':_0xae8e('0xc'),'as':_0xae8e('0xd'),'attributes':['id',_0xae8e('0xe'),_0xae8e('0xf'),_0xae8e('0x10'),'data3',_0xae8e('0x11'),'data5',_0xae8e('0x12'),'data7']}]},'log':_0xae8e('0x2')});};};