Built motion from commit ddca4d0d.|2.5.47
[motion2.git] / server / api / chatApplication / chatApplication.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 _0x8bc8=['rimraf','../../config/environment','./chatApplication.attributes','exports','define','ChatApplication','utf8mb4','lodash','util','../../config/logger','api','moment','request-promise','path'];(function(_0xbd845f,_0xda20c){var _0x4acde6=function(_0x24f9d0){while(--_0x24f9d0){_0xbd845f['push'](_0xbd845f['shift']());}};_0x4acde6(++_0xda20c);}(_0x8bc8,0x1d5));var _0x88bc=function(_0x3b3f4f,_0x403216){_0x3b3f4f=_0x3b3f4f-0x0;var _0x174dbe=_0x8bc8[_0x3b3f4f];return _0x174dbe;};'use strict';var _=require(_0x88bc('0x0'));var util=require(_0x88bc('0x1'));var logger=require(_0x88bc('0x2'))(_0x88bc('0x3'));var moment=require(_0x88bc('0x4'));var BPromise=require('bluebird');var rp=require(_0x88bc('0x5'));var fs=require('fs');var path=require(_0x88bc('0x6'));var rimraf=require(_0x88bc('0x7'));var config=require(_0x88bc('0x8'));var attributes=require(_0x88bc('0x9'));module[_0x88bc('0xa')]=function(_0x3bdc8e,_0x5e5879){return _0x3bdc8e[_0x88bc('0xb')](_0x88bc('0xc'),attributes,{'tableName':'chat_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x88bc('0xd'),'collate':'utf8mb4_unicode_ci'});};