Built motion from commit f9526609.|2.6.29
[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 _0xd071=['path','rimraf','../../config/environment','./cannedAnswer.attributes','define','utf8mb4','util','../../config/logger','bluebird','request-promise'];(function(_0x5bbdf0,_0x6b4ca9){var _0xf7cbf=function(_0xbf57bc){while(--_0xbf57bc){_0x5bbdf0['push'](_0x5bbdf0['shift']());}};_0xf7cbf(++_0x6b4ca9);}(_0xd071,0x10a));var _0x1d07=function(_0x296e0d,_0x42f4ce){_0x296e0d=_0x296e0d-0x0;var _0x3fd794=_0xd071[_0x296e0d];return _0x3fd794;};'use strict';var _=require('lodash');var util=require(_0x1d07('0x0'));var logger=require(_0x1d07('0x1'))('api');var moment=require('moment');var BPromise=require(_0x1d07('0x2'));var rp=require(_0x1d07('0x3'));var fs=require('fs');var path=require(_0x1d07('0x4'));var rimraf=require(_0x1d07('0x5'));var config=require(_0x1d07('0x6'));var attributes=require(_0x1d07('0x7'));module['exports']=function(_0x5efd22,_0x76bda0){return _0x5efd22[_0x1d07('0x8')]('CannedAnswer',attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x1d07('0x9'),'collate':'utf8mb4_unicode_ci'});};