Built motion from commit 1fa89557.|2.6.10
[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 _0x3130=['data5','data7','getTriggers','Request','name','channel','Condition','AllConditions','field','value','AnyConditions','operator','Action','Actions','action','data1','data2','data3','data4'];(function(_0x432682,_0x253044){var _0x463d05=function(_0xa73403){while(--_0xa73403){_0x432682['push'](_0x432682['shift']());}};_0x463d05(++_0x253044);}(_0x3130,0x1ca));var _0x0313=function(_0x215eca,_0x3b1d35){_0x215eca=_0x215eca-0x0;var _0x4253a1=_0x3130[_0x215eca];return _0x4253a1;};'use strict';var client=require('../client');exports[_0x0313('0x0')]=function(_0x207015){return function(_0x209ecc){return client[_0x0313('0x1')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x0313('0x2'),_0x0313('0x3'),'status'],'include':[{'model':_0x0313('0x4'),'as':_0x0313('0x5'),'attributes':['id',_0x0313('0x6'),'operator',_0x0313('0x7')]},{'model':_0x0313('0x4'),'as':_0x0313('0x8'),'attributes':['id',_0x0313('0x6'),_0x0313('0x9'),_0x0313('0x7')]},{'model':_0x0313('0xa'),'as':_0x0313('0xb'),'attributes':['id',_0x0313('0xc'),_0x0313('0xd'),_0x0313('0xe'),_0x0313('0xf'),_0x0313('0x10'),_0x0313('0x11'),'data6',_0x0313('0x12')]}]},'log':'GetTrigger'});};};