Built motion from commit f7863d46.|2.5.41
[motion2.git] / server / api / chatProactiveAction / chatProactiveAction.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 _0x81f4=['request-promise','path','../../config/environment','exports','ChatProactiveAction','chat_proactive_actions','util','../../config/logger','api','moment'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x81f4,0x74));var _0x481f=function(_0x22bcb4,_0x4202f5){_0x22bcb4=_0x22bcb4-0x0;var _0x120b30=_0x81f4[_0x22bcb4];return _0x120b30;};'use strict';var _=require('lodash');var util=require(_0x481f('0x0'));var logger=require(_0x481f('0x1'))(_0x481f('0x2'));var moment=require(_0x481f('0x3'));var BPromise=require('bluebird');var rp=require(_0x481f('0x4'));var fs=require('fs');var path=require(_0x481f('0x5'));var rimraf=require('rimraf');var config=require(_0x481f('0x6'));var attributes=require('./chatProactiveAction.attributes');module[_0x481f('0x7')]=function(_0x1d9daa,_0x529310){return _0x1d9daa['define'](_0x481f('0x8'),attributes,{'tableName':_0x481f('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};