Built motion from commit (unavailable).|2.5.26
[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 _0xf0ab=['data3','data4','data5','data7','getTriggers','Request','name','channel','Condition','AllConditions','field','value','Action','action','data1','data2'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0xf0ab,0xf4));var _0xbf0a=function(_0x5376ff,_0x4682a8){_0x5376ff=_0x5376ff-0x0;var _0x10ed2d=_0xf0ab[_0x5376ff];return _0x10ed2d;};'use strict';var client=require('../client');exports[_0xbf0a('0x0')]=function(_0x575e51){return function(_0x110317){return client[_0xbf0a('0x1')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0xbf0a('0x2'),_0xbf0a('0x3'),'status'],'include':[{'model':_0xbf0a('0x4'),'as':_0xbf0a('0x5'),'attributes':['id',_0xbf0a('0x6'),'operator',_0xbf0a('0x7')]},{'model':_0xbf0a('0x4'),'as':'AnyConditions','attributes':['id','field','operator','value']},{'model':_0xbf0a('0x8'),'as':'Actions','attributes':['id',_0xbf0a('0x9'),_0xbf0a('0xa'),_0xbf0a('0xb'),_0xbf0a('0xc'),_0xbf0a('0xd'),_0xbf0a('0xe'),'data6',_0xbf0a('0xf')]}]},'log':'GetTrigger'});};};