Built motion from commit 85328c08.|2.5.50
[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 _0x535a=['util','../../config/logger','moment','request-promise','rimraf','../../config/environment','./chatInternalMessage.attributes','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4'];(function(_0x23b3d1,_0x1ee128){var _0xd2c70=function(_0x329cf9){while(--_0x329cf9){_0x23b3d1['push'](_0x23b3d1['shift']());}};_0xd2c70(++_0x1ee128);}(_0x535a,0x6c));var _0xa535=function(_0x4f4bcc,_0x5e9485){_0x4f4bcc=_0x4f4bcc-0x0;var _0x2ce62c=_0x535a[_0x4f4bcc];return _0x2ce62c;};'use strict';var _=require('lodash');var util=require(_0xa535('0x0'));var logger=require(_0xa535('0x1'))('api');var moment=require(_0xa535('0x2'));var BPromise=require('bluebird');var rp=require(_0xa535('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa535('0x4'));var config=require(_0xa535('0x5'));var attributes=require(_0xa535('0x6'));module[_0xa535('0x7')]=function(_0x2dc28b,_0x2e009c){return _0x2dc28b[_0xa535('0x8')](_0xa535('0x9'),attributes,{'tableName':_0xa535('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xa535('0xb'),'collate':'utf8mb4_unicode_ci'});};