Built motion from commit (unavailable).|2.5.1
[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 _0x3920=['data3','data5','data7','GetTrigger','../client','getTriggers','Request','name','status','AllConditions','field','value','Condition','operator','data1','data2'];(function(_0xa710b5,_0x2fac05){var _0xa27344=function(_0x3d34c2){while(--_0x3d34c2){_0xa710b5['push'](_0xa710b5['shift']());}};_0xa27344(++_0x2fac05);}(_0x3920,0x104));var _0x0392=function(_0x2b7c48,_0x377555){_0x2b7c48=_0x2b7c48-0x0;var _0x55f238=_0x3920[_0x2b7c48];return _0x55f238;};'use strict';var client=require(_0x0392('0x0'));exports[_0x0392('0x1')]=function(_0xfe87f7){return function(_0x2262b2){return client[_0x0392('0x2')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x0392('0x3'),'channel',_0x0392('0x4')],'include':[{'model':'Condition','as':_0x0392('0x5'),'attributes':['id',_0x0392('0x6'),'operator',_0x0392('0x7')]},{'model':_0x0392('0x8'),'as':'AnyConditions','attributes':['id',_0x0392('0x6'),_0x0392('0x9'),_0x0392('0x7')]},{'model':'Action','as':'Actions','attributes':['id','action',_0x0392('0xa'),_0x0392('0xb'),_0x0392('0xc'),'data4',_0x0392('0xd'),'data6',_0x0392('0xe')]}]},'log':_0x0392('0xf')});};};