22f1bb3d1dc7f6d0c4aec64016147f6e04a5e090
[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 _0x58e7=['bluebird','request-promise','path','rimraf','../../config/environment','./chatInternalMessage.attributes','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','util','api','moment'];(function(_0x5aaa1d,_0x1652bc){var _0x5751ef=function(_0x4f70a8){while(--_0x4f70a8){_0x5aaa1d['push'](_0x5aaa1d['shift']());}};_0x5751ef(++_0x1652bc);}(_0x58e7,0x1ec));var _0x758e=function(_0x22c873,_0xa2448e){_0x22c873=_0x22c873-0x0;var _0x165b1b=_0x58e7[_0x22c873];return _0x165b1b;};'use strict';var _=require('lodash');var util=require(_0x758e('0x0'));var logger=require('../../config/logger')(_0x758e('0x1'));var moment=require(_0x758e('0x2'));var BPromise=require(_0x758e('0x3'));var rp=require(_0x758e('0x4'));var fs=require('fs');var path=require(_0x758e('0x5'));var rimraf=require(_0x758e('0x6'));var config=require(_0x758e('0x7'));var attributes=require(_0x758e('0x8'));module[_0x758e('0x9')]=function(_0x5885ee,_0x4d037e){return _0x5885ee[_0x758e('0xa')](_0x758e('0xb'),attributes,{'tableName':_0x758e('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x758e('0xd'),'collate':_0x758e('0xe')});};