538a9f57402d3cd44397bf655b47f7f0ecf95bf4
[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 _0xa9d1=['bluebird','path','../../config/environment','./action.attributes','define','tools_actions','lodash','util','../../config/logger','api','moment'];(function(_0x12e682,_0x33f3a3){var _0x26e600=function(_0x4d79dc){while(--_0x4d79dc){_0x12e682['push'](_0x12e682['shift']());}};_0x26e600(++_0x33f3a3);}(_0xa9d1,0x1d4));var _0x1a9d=function(_0x414e45,_0x10223e){_0x414e45=_0x414e45-0x0;var _0x2f5894=_0xa9d1[_0x414e45];return _0x2f5894;};'use strict';var _=require(_0x1a9d('0x0'));var util=require(_0x1a9d('0x1'));var logger=require(_0x1a9d('0x2'))(_0x1a9d('0x3'));var moment=require(_0x1a9d('0x4'));var BPromise=require(_0x1a9d('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1a9d('0x6'));var rimraf=require('rimraf');var config=require(_0x1a9d('0x7'));var attributes=require(_0x1a9d('0x8'));module['exports']=function(_0x1384c2,_0x2d29b2){return _0x1384c2[_0x1a9d('0x9')]('Action',attributes,{'tableName':_0x1a9d('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};