Built motion from commit 936e8062.|2.5.33
[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 _0xc3b3=['utf8mb4_unicode_ci','../../config/logger','api','moment','bluebird','path','../../config/environment','./chatInternalMessage.attributes','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4'];(function(_0x4ecfc8,_0x4920a0){var _0x1cca3a=function(_0x277be3){while(--_0x277be3){_0x4ecfc8['push'](_0x4ecfc8['shift']());}};_0x1cca3a(++_0x4920a0);}(_0xc3b3,0x1ae));var _0x3c3b=function(_0x4ae829,_0x2c842c){_0x4ae829=_0x4ae829-0x0;var _0x256b31=_0xc3b3[_0x4ae829];return _0x256b31;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x3c3b('0x0'))(_0x3c3b('0x1'));var moment=require(_0x3c3b('0x2'));var BPromise=require(_0x3c3b('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3c3b('0x4'));var rimraf=require('rimraf');var config=require(_0x3c3b('0x5'));var attributes=require(_0x3c3b('0x6'));module[_0x3c3b('0x7')]=function(_0x25447f,_0x5e241b){return _0x25447f[_0x3c3b('0x8')](_0x3c3b('0x9'),attributes,{'tableName':_0x3c3b('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3c3b('0xb'),'collate':_0x3c3b('0xc')});};