Built motion from commit b0a9a629.|2.6.33
[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 _0x9563=['moment','bluebird','request-promise','../../config/environment','exports','define','tools_actions','lodash','util','api'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0x9563,0x1e7));var _0x3956=function(_0x56e4a6,_0x20b7f8){_0x56e4a6=_0x56e4a6-0x0;var _0x56a6e5=_0x9563[_0x56e4a6];return _0x56a6e5;};'use strict';var _=require(_0x3956('0x0'));var util=require(_0x3956('0x1'));var logger=require('../../config/logger')(_0x3956('0x2'));var moment=require(_0x3956('0x3'));var BPromise=require(_0x3956('0x4'));var rp=require(_0x3956('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x3956('0x6'));var attributes=require('./action.attributes');module[_0x3956('0x7')]=function(_0x332a45,_0x177a1a){return _0x332a45[_0x3956('0x8')]('Action',attributes,{'tableName':_0x3956('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};