b69b8643a0ce5bf8cf7e5dd17ef11776e766d46e
[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 _0xbb05=['path','rimraf','../../config/environment','./action.attributes','Action','util','../../config/logger','api','bluebird','request-promise'];(function(_0x9224ef,_0x45b213){var _0x5cda26=function(_0x5d48d1){while(--_0x5d48d1){_0x9224ef['push'](_0x9224ef['shift']());}};_0x5cda26(++_0x45b213);}(_0xbb05,0xa5));var _0x5bb0=function(_0x401805,_0x5127ae){_0x401805=_0x401805-0x0;var _0x170646=_0xbb05[_0x401805];return _0x170646;};'use strict';var _=require('lodash');var util=require(_0x5bb0('0x0'));var logger=require(_0x5bb0('0x1'))(_0x5bb0('0x2'));var moment=require('moment');var BPromise=require(_0x5bb0('0x3'));var rp=require(_0x5bb0('0x4'));var fs=require('fs');var path=require(_0x5bb0('0x5'));var rimraf=require(_0x5bb0('0x6'));var config=require(_0x5bb0('0x7'));var attributes=require(_0x5bb0('0x8'));module['exports']=function(_0x4c9c9d,_0x18b345){return _0x4c9c9d['define'](_0x5bb0('0x9'),attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};