Built motion from commit 00bf23f6.|2.6.16
[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 _0x8b30=['./action.attributes','define','util','moment','bluebird','request-promise','path','../../config/environment'];(function(_0x55f9d1,_0x1ac477){var _0x3e2544=function(_0x120253){while(--_0x120253){_0x55f9d1['push'](_0x55f9d1['shift']());}};_0x3e2544(++_0x1ac477);}(_0x8b30,0x1f2));var _0x08b3=function(_0x36eaaa,_0x326732){_0x36eaaa=_0x36eaaa-0x0;var _0x461349=_0x8b30[_0x36eaaa];return _0x461349;};'use strict';var _=require('lodash');var util=require(_0x08b3('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x08b3('0x1'));var BPromise=require(_0x08b3('0x2'));var rp=require(_0x08b3('0x3'));var fs=require('fs');var path=require(_0x08b3('0x4'));var rimraf=require('rimraf');var config=require(_0x08b3('0x5'));var attributes=require(_0x08b3('0x6'));module['exports']=function(_0x43d606,_0x33e71c){return _0x43d606[_0x08b3('0x7')]('Action',attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};