Built motion from commit (unavailable).|2.5.23
[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 _0x7ae7=['util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','define','Action','tools_actions'];(function(_0x2f294e,_0xc05b9f){var _0x5de3e8=function(_0x875c0a){while(--_0x875c0a){_0x2f294e['push'](_0x2f294e['shift']());}};_0x5de3e8(++_0xc05b9f);}(_0x7ae7,0x190));var _0x77ae=function(_0x4b78bf,_0xf25fd1){_0x4b78bf=_0x4b78bf-0x0;var _0x464472=_0x7ae7[_0x4b78bf];return _0x464472;};'use strict';var _=require('lodash');var util=require(_0x77ae('0x0'));var logger=require(_0x77ae('0x1'))('api');var moment=require(_0x77ae('0x2'));var BPromise=require(_0x77ae('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x77ae('0x4'));var rimraf=require(_0x77ae('0x5'));var config=require(_0x77ae('0x6'));var attributes=require('./action.attributes');module['exports']=function(_0x334fee,_0x34b76f){return _0x334fee[_0x77ae('0x7')](_0x77ae('0x8'),attributes,{'tableName':_0x77ae('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};