Built motion from commit f25620e4.|2.6.30
[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 _0xb9d6=['exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4','lodash','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./chatInternalMessage.attributes'];(function(_0x42245d,_0x51758f){var _0x4b211a=function(_0x2634e){while(--_0x2634e){_0x42245d['push'](_0x42245d['shift']());}};_0x4b211a(++_0x51758f);}(_0xb9d6,0xc9));var _0x6b9d=function(_0x42b3aa,_0x223f53){_0x42b3aa=_0x42b3aa-0x0;var _0x319157=_0xb9d6[_0x42b3aa];return _0x319157;};'use strict';var _=require(_0x6b9d('0x0'));var util=require('util');var logger=require(_0x6b9d('0x1'))(_0x6b9d('0x2'));var moment=require(_0x6b9d('0x3'));var BPromise=require(_0x6b9d('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6b9d('0x5'));var rimraf=require(_0x6b9d('0x6'));var config=require(_0x6b9d('0x7'));var attributes=require(_0x6b9d('0x8'));module[_0x6b9d('0x9')]=function(_0x5c0235,_0x570b7e){return _0x5c0235[_0x6b9d('0xa')](_0x6b9d('0xb'),attributes,{'tableName':_0x6b9d('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x6b9d('0xd'),'collate':'utf8mb4_unicode_ci'});};