96fed31f689b3feaa9a4fa5a532047e8423184e7
[motion2.git] / server / api / action / action.model.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 _0x7af9=['tools_actions','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define'];(function(_0x63f7b3,_0x2defa3){var _0x4618df=function(_0x1d0271){while(--_0x1d0271){_0x63f7b3['push'](_0x63f7b3['shift']());}};_0x4618df(++_0x2defa3);}(_0x7af9,0x18d));var _0x97af=function(_0x189b93,_0x41da35){_0x189b93=_0x189b93-0x0;var _0x3ec6be=_0x7af9[_0x189b93];return _0x3ec6be;};'use strict';var _=require(_0x97af('0x0'));var util=require(_0x97af('0x1'));var logger=require(_0x97af('0x2'))(_0x97af('0x3'));var moment=require(_0x97af('0x4'));var BPromise=require('bluebird');var rp=require(_0x97af('0x5'));var fs=require('fs');var path=require(_0x97af('0x6'));var rimraf=require(_0x97af('0x7'));var config=require(_0x97af('0x8'));var attributes=require('./action.attributes');module[_0x97af('0x9')]=function(_0x267ce8,_0x4c37b1){return _0x267ce8[_0x97af('0xa')]('Action',attributes,{'tableName':_0x97af('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};