Built motion from commit b5996064.|2.6.21
[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 _0x81ab=['tools_actions','util','api','bluebird','path','rimraf','../../config/environment','./action.attributes'];(function(_0x4191bc,_0x3096c5){var _0x1ffd4e=function(_0x36faed){while(--_0x36faed){_0x4191bc['push'](_0x4191bc['shift']());}};_0x1ffd4e(++_0x3096c5);}(_0x81ab,0x1e1));var _0xb81a=function(_0x18abd2,_0x22d4b3){_0x18abd2=_0x18abd2-0x0;var _0x1dcad6=_0x81ab[_0x18abd2];return _0x1dcad6;};'use strict';var _=require('lodash');var util=require(_0xb81a('0x0'));var logger=require('../../config/logger')(_0xb81a('0x1'));var moment=require('moment');var BPromise=require(_0xb81a('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb81a('0x3'));var rimraf=require(_0xb81a('0x4'));var config=require(_0xb81a('0x5'));var attributes=require(_0xb81a('0x6'));module['exports']=function(_0x479fa4,_0x1fa03a){return _0x479fa4['define']('Action',attributes,{'tableName':_0xb81a('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};