Built motion from commit 87cd5f02.|2.5.48
[motion2.git] / server / api / openchannelApplication / openchannelApplication.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 _0x130a=['OpenchannelApplication','openchannel_applications','utf8mb4','utf8mb4_unicode_ci','lodash','../../config/logger','api','request-promise','path','rimraf','../../config/environment','./openchannelApplication.attributes','exports','define'];(function(_0x413733,_0x30b287){var _0x150111=function(_0x269539){while(--_0x269539){_0x413733['push'](_0x413733['shift']());}};_0x150111(++_0x30b287);}(_0x130a,0x90));var _0xa130=function(_0x1dc24d,_0x541fa4){_0x1dc24d=_0x1dc24d-0x0;var _0x5d7fb2=_0x130a[_0x1dc24d];return _0x5d7fb2;};'use strict';var _=require(_0xa130('0x0'));var util=require('util');var logger=require(_0xa130('0x1'))(_0xa130('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xa130('0x3'));var fs=require('fs');var path=require(_0xa130('0x4'));var rimraf=require(_0xa130('0x5'));var config=require(_0xa130('0x6'));var attributes=require(_0xa130('0x7'));module[_0xa130('0x8')]=function(_0x1e1d59,_0x4a7072){return _0x1e1d59[_0xa130('0x9')](_0xa130('0xa'),attributes,{'tableName':_0xa130('0xb'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xa130('0xc'),'collate':_0xa130('0xd')});};