Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / api / cannedAnswer / cannedAnswer.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 _0x7e04=['api','moment','request-promise','path','rimraf','../../config/environment','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','lodash','../../config/logger'];(function(_0x54b4cc,_0x4838bb){var _0x5a4701=function(_0x18389f){while(--_0x18389f){_0x54b4cc['push'](_0x54b4cc['shift']());}};_0x5a4701(++_0x4838bb);}(_0x7e04,0x1cf));var _0x47e0=function(_0x4fe14d,_0x40b1ac){_0x4fe14d=_0x4fe14d-0x0;var _0x54abe3=_0x7e04[_0x4fe14d];return _0x54abe3;};'use strict';var _=require(_0x47e0('0x0'));var util=require('util');var logger=require(_0x47e0('0x1'))(_0x47e0('0x2'));var moment=require(_0x47e0('0x3'));var BPromise=require('bluebird');var rp=require(_0x47e0('0x4'));var fs=require('fs');var path=require(_0x47e0('0x5'));var rimraf=require(_0x47e0('0x6'));var config=require(_0x47e0('0x7'));var attributes=require(_0x47e0('0x8'));module[_0x47e0('0x9')]=function(_0x236508,_0x1c8d5e){return _0x236508[_0x47e0('0xa')](_0x47e0('0xb'),attributes,{'tableName':_0x47e0('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x47e0('0xd'),'collate':_0x47e0('0xe')});};