8da3053ef4de0ac34d47e19c02f118b88436d9ca
[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 _0xc23c=['data7','../client','GetTrigger','name','status','Condition','AllConditions','field','operator','value','AnyConditions','Action','Actions','data3','data4','data6'];(function(_0x25212e,_0x35c573){var _0xa65397=function(_0x351170){while(--_0x351170){_0x25212e['push'](_0x25212e['shift']());}};_0xa65397(++_0x35c573);}(_0xc23c,0x1e1));var _0xcc23=function(_0x24b66b,_0x149f2a){_0x24b66b=_0x24b66b-0x0;var _0x1eac23=_0xc23c[_0x24b66b];return _0x1eac23;};'use strict';var client=require(_0xcc23('0x0'));exports['getTriggers']=function(_0x1794f9){return function(_0xcdf465){return client['Request'](_0xcc23('0x1'),{'options':{'raw':![],'attributes':['id',_0xcc23('0x2'),'channel',_0xcc23('0x3')],'include':[{'model':_0xcc23('0x4'),'as':_0xcc23('0x5'),'attributes':['id',_0xcc23('0x6'),_0xcc23('0x7'),_0xcc23('0x8')]},{'model':_0xcc23('0x4'),'as':_0xcc23('0x9'),'attributes':['id',_0xcc23('0x6'),_0xcc23('0x7'),_0xcc23('0x8')]},{'model':_0xcc23('0xa'),'as':_0xcc23('0xb'),'attributes':['id','action','data1','data2',_0xcc23('0xc'),_0xcc23('0xd'),'data5',_0xcc23('0xe'),_0xcc23('0xf')]}]},'log':_0xcc23('0x1')});};};