Built motion from commit 449495f6.|2.6.27
[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 _0x5cc1=['api','moment','bluebird','request-promise','./action.attributes','exports','define','tools_actions','util','../../config/logger'];(function(_0x39c326,_0x3273f5){var _0x2c8578=function(_0x3e6c2c){while(--_0x3e6c2c){_0x39c326['push'](_0x39c326['shift']());}};_0x2c8578(++_0x3273f5);}(_0x5cc1,0xe4));var _0x15cc=function(_0x5a3e4c,_0x5f39e7){_0x5a3e4c=_0x5a3e4c-0x0;var _0x190289=_0x5cc1[_0x5a3e4c];return _0x190289;};'use strict';var _=require('lodash');var util=require(_0x15cc('0x0'));var logger=require(_0x15cc('0x1'))(_0x15cc('0x2'));var moment=require(_0x15cc('0x3'));var BPromise=require(_0x15cc('0x4'));var rp=require(_0x15cc('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x15cc('0x6'));module[_0x15cc('0x7')]=function(_0x576be6,_0x5bfa13){return _0x576be6[_0x15cc('0x8')]('Action',attributes,{'tableName':_0x15cc('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};