Built motion from commit e02f907f.|2.6.14
[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 _0x4a29=['../../config/environment','./chatApplication.attributes','exports','define','ChatApplication','utf8mb4_unicode_ci','lodash','util','api','moment','request-promise','path','rimraf'];(function(_0x2aff3d,_0x43b73b){var _0x2857ec=function(_0x2dd2fe){while(--_0x2dd2fe){_0x2aff3d['push'](_0x2aff3d['shift']());}};_0x2857ec(++_0x43b73b);}(_0x4a29,0xaf));var _0x94a2=function(_0x1a4046,_0x447a80){_0x1a4046=_0x1a4046-0x0;var _0x1af849=_0x4a29[_0x1a4046];return _0x1af849;};'use strict';var _=require(_0x94a2('0x0'));var util=require(_0x94a2('0x1'));var logger=require('../../config/logger')(_0x94a2('0x2'));var moment=require(_0x94a2('0x3'));var BPromise=require('bluebird');var rp=require(_0x94a2('0x4'));var fs=require('fs');var path=require(_0x94a2('0x5'));var rimraf=require(_0x94a2('0x6'));var config=require(_0x94a2('0x7'));var attributes=require(_0x94a2('0x8'));module[_0x94a2('0x9')]=function(_0x198813,_0x244553){return _0x198813[_0x94a2('0xa')](_0x94a2('0xb'),attributes,{'tableName':'chat_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x94a2('0xc')});};