e2d92dd6d17e7ab63ad55dd5a3148f7dfb1415af
[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 _0x2722=['util','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./action.attributes','exports','tools_actions','lodash'];(function(_0x110924,_0x1374bb){var _0x12905b=function(_0x47d32c){while(--_0x47d32c){_0x110924['push'](_0x110924['shift']());}};_0x12905b(++_0x1374bb);}(_0x2722,0x15b));var _0x2272=function(_0x4d91bf,_0x5929b0){_0x4d91bf=_0x4d91bf-0x0;var _0x54b224=_0x2722[_0x4d91bf];return _0x54b224;};'use strict';var _=require(_0x2272('0x0'));var util=require(_0x2272('0x1'));var logger=require(_0x2272('0x2'))(_0x2272('0x3'));var moment=require('moment');var BPromise=require(_0x2272('0x4'));var rp=require(_0x2272('0x5'));var fs=require('fs');var path=require(_0x2272('0x6'));var rimraf=require(_0x2272('0x7'));var config=require(_0x2272('0x8'));var attributes=require(_0x2272('0x9'));module[_0x2272('0xa')]=function(_0x5d4749,_0xf4acb3){return _0x5d4749['define']('Action',attributes,{'tableName':_0x2272('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};