667910d27093679d5f7bddfe0494445fcd235e7b
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.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 _0x44b7=['chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','lodash','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./chatInternalMessage.attributes','exports','ChatInternalMessage'];(function(_0x2371d4,_0x218bfb){var _0x101f05=function(_0x334911){while(--_0x334911){_0x2371d4['push'](_0x2371d4['shift']());}};_0x101f05(++_0x218bfb);}(_0x44b7,0x1c3));var _0x744b=function(_0x3c6e06,_0x59be65){_0x3c6e06=_0x3c6e06-0x0;var _0x4f6ffc=_0x44b7[_0x3c6e06];return _0x4f6ffc;};'use strict';var _=require(_0x744b('0x0'));var util=require('util');var logger=require(_0x744b('0x1'))(_0x744b('0x2'));var moment=require(_0x744b('0x3'));var BPromise=require('bluebird');var rp=require(_0x744b('0x4'));var fs=require('fs');var path=require(_0x744b('0x5'));var rimraf=require(_0x744b('0x6'));var config=require(_0x744b('0x7'));var attributes=require(_0x744b('0x8'));module[_0x744b('0x9')]=function(_0x23056a,_0x3cd4bd){return _0x23056a['define'](_0x744b('0xa'),attributes,{'tableName':_0x744b('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x744b('0xc'),'collate':_0x744b('0xd')});};