Built motion from commit c116dc8b.|2.6.30
[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 _0xbb44=['util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./chatInternalMessage.attributes','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci'];(function(_0x20a558,_0x160e0e){var _0x53d3f7=function(_0x259bd8){while(--_0x259bd8){_0x20a558['push'](_0x20a558['shift']());}};_0x53d3f7(++_0x160e0e);}(_0xbb44,0x96));var _0x4bb4=function(_0x5c377e,_0x40e0ed){_0x5c377e=_0x5c377e-0x0;var _0x33d681=_0xbb44[_0x5c377e];return _0x33d681;};'use strict';var _=require('lodash');var util=require(_0x4bb4('0x0'));var logger=require(_0x4bb4('0x1'))(_0x4bb4('0x2'));var moment=require(_0x4bb4('0x3'));var BPromise=require(_0x4bb4('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4bb4('0x5'));var rimraf=require(_0x4bb4('0x6'));var config=require(_0x4bb4('0x7'));var attributes=require(_0x4bb4('0x8'));module[_0x4bb4('0x9')]=function(_0xde6f9e,_0x45723e){return _0xde6f9e[_0x4bb4('0xa')](_0x4bb4('0xb'),attributes,{'tableName':_0x4bb4('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4bb4('0xd'),'collate':_0x4bb4('0xe')});};