Built motion from commit 25580385.|2.6.2
[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 _0xaad4=['bluebird','path','exports','define','ChatInternalMessage','chat_internal_messages','utf8mb4','utf8mb4_unicode_ci','lodash','util','moment'];(function(_0xf1ca1,_0x294d72){var _0x116af0=function(_0x522fcf){while(--_0x522fcf){_0xf1ca1['push'](_0xf1ca1['shift']());}};_0x116af0(++_0x294d72);}(_0xaad4,0x110));var _0x4aad=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xaad4[_0x321bb2];return _0x9c12ed;};'use strict';var _=require(_0x4aad('0x0'));var util=require(_0x4aad('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x4aad('0x2'));var BPromise=require(_0x4aad('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4aad('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./chatInternalMessage.attributes');module[_0x4aad('0x5')]=function(_0x2b7f52,_0x1f1282){return _0x2b7f52[_0x4aad('0x6')](_0x4aad('0x7'),attributes,{'tableName':_0x4aad('0x8'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x4aad('0x9'),'collate':_0x4aad('0xa')});};