Built motion from commit da617fac.|2.6.6
[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 _0xd933=['lodash','util','../../config/logger','moment','bluebird','path','../../config/environment','exports'];(function(_0x177fdb,_0x702728){var _0x537fe5=function(_0x580ffe){while(--_0x580ffe){_0x177fdb['push'](_0x177fdb['shift']());}};_0x537fe5(++_0x702728);}(_0xd933,0x1c8));var _0x3d93=function(_0x3fc386,_0x413579){_0x3fc386=_0x3fc386-0x0;var _0x42c521=_0xd933[_0x3fc386];return _0x42c521;};'use strict';var _=require(_0x3d93('0x0'));var util=require(_0x3d93('0x1'));var logger=require(_0x3d93('0x2'))('api');var moment=require(_0x3d93('0x3'));var BPromise=require(_0x3d93('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3d93('0x5'));var rimraf=require('rimraf');var config=require(_0x3d93('0x6'));var attributes=require('./action.attributes');module[_0x3d93('0x7')]=function(_0x56581d,_0x34b7d1){return _0x56581d['define']('Action',attributes,{'tableName':'tools_actions','paranoid':![],'indexes':[],'timestamps':!![]});};