Built motion from commit 9d1906d1.|2.5.40
[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 _0xf5a5=['request-promise','path','rimraf','../../config/environment','./action.attributes','exports','define','Action','tools_actions','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x6626de,_0x218cb9){var _0x36c6ec=function(_0x3eeddc){while(--_0x3eeddc){_0x6626de['push'](_0x6626de['shift']());}};_0x36c6ec(++_0x218cb9);}(_0xf5a5,0x1cb));var _0x5f5a=function(_0x56482c,_0x16118d){_0x56482c=_0x56482c-0x0;var _0x5aae7a=_0xf5a5[_0x56482c];return _0x5aae7a;};'use strict';var _=require(_0x5f5a('0x0'));var util=require(_0x5f5a('0x1'));var logger=require(_0x5f5a('0x2'))(_0x5f5a('0x3'));var moment=require(_0x5f5a('0x4'));var BPromise=require(_0x5f5a('0x5'));var rp=require(_0x5f5a('0x6'));var fs=require('fs');var path=require(_0x5f5a('0x7'));var rimraf=require(_0x5f5a('0x8'));var config=require(_0x5f5a('0x9'));var attributes=require(_0x5f5a('0xa'));module[_0x5f5a('0xb')]=function(_0x53ae29,_0x4d8aab){return _0x53ae29[_0x5f5a('0xc')](_0x5f5a('0xd'),attributes,{'tableName':_0x5f5a('0xe'),'paranoid':![],'indexes':[],'timestamps':!![]});};