Built motion from commit (unavailable).|2.5.7
[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 _0x00a7=['rimraf','exports','define','tools_actions','lodash','../../config/logger','api','bluebird','request-promise','path'];(function(_0x3a7f7b,_0x22f0f8){var _0x48b64b=function(_0x57ac88){while(--_0x57ac88){_0x3a7f7b['push'](_0x3a7f7b['shift']());}};_0x48b64b(++_0x22f0f8);}(_0x00a7,0x1d0));var _0x700a=function(_0x5a4241,_0x250c7d){_0x5a4241=_0x5a4241-0x0;var _0x1a5c71=_0x00a7[_0x5a4241];return _0x1a5c71;};'use strict';var _=require(_0x700a('0x0'));var util=require('util');var logger=require(_0x700a('0x1'))(_0x700a('0x2'));var moment=require('moment');var BPromise=require(_0x700a('0x3'));var rp=require(_0x700a('0x4'));var fs=require('fs');var path=require(_0x700a('0x5'));var rimraf=require(_0x700a('0x6'));var config=require('../../config/environment');var attributes=require('./action.attributes');module[_0x700a('0x7')]=function(_0x10a842,_0xbd185d){return _0x10a842[_0x700a('0x8')]('Action',attributes,{'tableName':_0x700a('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};