Built motion from commit (unavailable).|2.5.23
[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 _0x763b=['GetTrigger','getTriggers','Request','Condition','AllConditions','field','operator','value','AnyConditions','Action','Actions','action','data1','data2','data3','data5','data6','data7'];(function(_0x4f51f9,_0x5d5613){var _0x533984=function(_0x578319){while(--_0x578319){_0x4f51f9['push'](_0x4f51f9['shift']());}};_0x533984(++_0x5d5613);}(_0x763b,0xd9));var _0xb763=function(_0x74a7de,_0x265aef){_0x74a7de=_0x74a7de-0x0;var _0x5e8c5b=_0x763b[_0x74a7de];return _0x5e8c5b;};'use strict';var client=require('../client');exports[_0xb763('0x0')]=function(_0x3eb0d8){return function(_0x334e72){return client[_0xb763('0x1')]('GetTrigger',{'options':{'raw':![],'attributes':['id','name','channel','status'],'include':[{'model':_0xb763('0x2'),'as':_0xb763('0x3'),'attributes':['id',_0xb763('0x4'),_0xb763('0x5'),_0xb763('0x6')]},{'model':_0xb763('0x2'),'as':_0xb763('0x7'),'attributes':['id',_0xb763('0x4'),_0xb763('0x5'),_0xb763('0x6')]},{'model':_0xb763('0x8'),'as':_0xb763('0x9'),'attributes':['id',_0xb763('0xa'),_0xb763('0xb'),_0xb763('0xc'),_0xb763('0xd'),'data4',_0xb763('0xe'),_0xb763('0xf'),_0xb763('0x10')]}]},'log':_0xb763('0x11')});};};