Built motion from commit 449495f6.|2.6.27
[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 _0xad0b=['moment','bluebird','path','../../config/environment','./chatInternalMessage.attributes','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','../../config/logger','api'];(function(_0x50c389,_0x5da318){var _0x5ed2c8=function(_0x1984ab){while(--_0x1984ab){_0x50c389['push'](_0x50c389['shift']());}};_0x5ed2c8(++_0x5da318);}(_0xad0b,0x9a));var _0xbad0=function(_0x49ecd3,_0xf2f661){_0x49ecd3=_0x49ecd3-0x0;var _0x503006=_0xad0b[_0x49ecd3];return _0x503006;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xbad0('0x0'))(_0xbad0('0x1'));var moment=require(_0xbad0('0x2'));var BPromise=require(_0xbad0('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbad0('0x4'));var rimraf=require('rimraf');var config=require(_0xbad0('0x5'));var attributes=require(_0xbad0('0x6'));module[_0xbad0('0x7')]=function(_0x5c1c66,_0x2806df){return _0x5c1c66[_0xbad0('0x8')](_0xbad0('0x9'),attributes,{'tableName':_0xbad0('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xbad0('0xb'),'collate':_0xbad0('0xc')});};