Built motion from commit 19a84241.|2.5.34
[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 _0x14bd=['exports','define','ChatProactiveAction','chat_proactive_actions','lodash','../../config/logger','bluebird'];(function(_0x1114b3,_0x1e98f3){var _0x36f01b=function(_0x49ca3f){while(--_0x49ca3f){_0x1114b3['push'](_0x1114b3['shift']());}};_0x36f01b(++_0x1e98f3);}(_0x14bd,0x18c));var _0xd14b=function(_0x44b0de,_0x213afa){_0x44b0de=_0x44b0de-0x0;var _0x21da2a=_0x14bd[_0x44b0de];return _0x21da2a;};'use strict';var _=require(_0xd14b('0x0'));var util=require('util');var logger=require(_0xd14b('0x1'))('api');var moment=require('moment');var BPromise=require(_0xd14b('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./chatProactiveAction.attributes');module[_0xd14b('0x3')]=function(_0xa643b3,_0x5dd61c){return _0xa643b3[_0xd14b('0x4')](_0xd14b('0x5'),attributes,{'tableName':_0xd14b('0x6'),'paranoid':![],'indexes':[],'timestamps':!![]});};