Built motion from commit da617fac.|2.6.6
[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 _0x9fa4=['operator','value','Action','Actions','action','data2','data3','data4','data6','data7','../client','getTriggers','Request','name','channel','status','Condition','AnyConditions'];(function(_0x3c0afd,_0x51cb41){var _0x3d942a=function(_0x3edb92){while(--_0x3edb92){_0x3c0afd['push'](_0x3c0afd['shift']());}};_0x3d942a(++_0x51cb41);}(_0x9fa4,0xf4));var _0x49fa=function(_0x385b7c,_0x749402){_0x385b7c=_0x385b7c-0x0;var _0x3c30f7=_0x9fa4[_0x385b7c];return _0x3c30f7;};'use strict';var client=require(_0x49fa('0x0'));exports[_0x49fa('0x1')]=function(_0x457f66){return function(_0x1a373c){return client[_0x49fa('0x2')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x49fa('0x3'),_0x49fa('0x4'),_0x49fa('0x5')],'include':[{'model':_0x49fa('0x6'),'as':'AllConditions','attributes':['id','field','operator','value']},{'model':_0x49fa('0x6'),'as':_0x49fa('0x7'),'attributes':['id','field',_0x49fa('0x8'),_0x49fa('0x9')]},{'model':_0x49fa('0xa'),'as':_0x49fa('0xb'),'attributes':['id',_0x49fa('0xc'),'data1',_0x49fa('0xd'),_0x49fa('0xe'),_0x49fa('0xf'),'data5',_0x49fa('0x10'),_0x49fa('0x11')]}]},'log':'GetTrigger'});};};