fab661da5486e89969b24b331890344773942eb4
[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 _0xde9c=['bluebird','rimraf','exports','define','Action','tools_actions','lodash','util','../../config/logger','api'];(function(_0x56ab53,_0x1965a4){var _0x5b9734=function(_0x501c80){while(--_0x501c80){_0x56ab53['push'](_0x56ab53['shift']());}};_0x5b9734(++_0x1965a4);}(_0xde9c,0x92));var _0xcde9=function(_0x150d13,_0x1aaec3){_0x150d13=_0x150d13-0x0;var _0x436b72=_0xde9c[_0x150d13];return _0x436b72;};'use strict';var _=require(_0xcde9('0x0'));var util=require(_0xcde9('0x1'));var logger=require(_0xcde9('0x2'))(_0xcde9('0x3'));var moment=require('moment');var BPromise=require(_0xcde9('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xcde9('0x5'));var config=require('../../config/environment');var attributes=require('./action.attributes');module[_0xcde9('0x6')]=function(_0x401828,_0x5f1aa9){return _0x401828[_0xcde9('0x7')](_0xcde9('0x8'),attributes,{'tableName':_0xcde9('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};