e6a0427d83367a270163674e40a2131b0cc38311
[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 _0xc471=['value','Condition','AnyConditions','Action','Actions','data2','data3','data5','data6','data7','../client','getTriggers','GetTrigger','name','channel','AllConditions','field','operator'];(function(_0x51b648,_0x3af80d){var _0x58a6e5=function(_0x588c4d){while(--_0x588c4d){_0x51b648['push'](_0x51b648['shift']());}};_0x58a6e5(++_0x3af80d);}(_0xc471,0x76));var _0x1c47=function(_0x2720ce,_0x47d0a9){_0x2720ce=_0x2720ce-0x0;var _0x509ebb=_0xc471[_0x2720ce];return _0x509ebb;};'use strict';var client=require(_0x1c47('0x0'));exports[_0x1c47('0x1')]=function(_0x117a30){return function(_0x2fd029){return client['Request'](_0x1c47('0x2'),{'options':{'raw':![],'attributes':['id',_0x1c47('0x3'),_0x1c47('0x4'),'status'],'include':[{'model':'Condition','as':_0x1c47('0x5'),'attributes':['id',_0x1c47('0x6'),_0x1c47('0x7'),_0x1c47('0x8')]},{'model':_0x1c47('0x9'),'as':_0x1c47('0xa'),'attributes':['id',_0x1c47('0x6'),_0x1c47('0x7'),_0x1c47('0x8')]},{'model':_0x1c47('0xb'),'as':_0x1c47('0xc'),'attributes':['id','action','data1',_0x1c47('0xd'),_0x1c47('0xe'),'data4',_0x1c47('0xf'),_0x1c47('0x10'),_0x1c47('0x11')]}]},'log':'GetTrigger'});};};