Built motion from commit 511216ff.|2.6.34
[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 _0xa5d6=['../../config/logger','api','bluebird','request-promise','path','rimraf','./chatInternalMessage.attributes','exports','define','ChatInternalMessage','utf8mb4','utf8mb4_unicode_ci','lodash','util'];(function(_0x4792c8,_0x5158a1){var _0x35edb1=function(_0x2472d3){while(--_0x2472d3){_0x4792c8['push'](_0x4792c8['shift']());}};_0x35edb1(++_0x5158a1);}(_0xa5d6,0x7c));var _0x6a5d=function(_0x3f71a4,_0x30c6fe){_0x3f71a4=_0x3f71a4-0x0;var _0x11f064=_0xa5d6[_0x3f71a4];return _0x11f064;};'use strict';var _=require(_0x6a5d('0x0'));var util=require(_0x6a5d('0x1'));var logger=require(_0x6a5d('0x2'))(_0x6a5d('0x3'));var moment=require('moment');var BPromise=require(_0x6a5d('0x4'));var rp=require(_0x6a5d('0x5'));var fs=require('fs');var path=require(_0x6a5d('0x6'));var rimraf=require(_0x6a5d('0x7'));var config=require('../../config/environment');var attributes=require(_0x6a5d('0x8'));module[_0x6a5d('0x9')]=function(_0x481847,_0x30d703){return _0x481847[_0x6a5d('0xa')](_0x6a5d('0xb'),attributes,{'tableName':'chat_internal_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x6a5d('0xc'),'collate':_0x6a5d('0xd')});};