Built motion from commit 19a84241.|2.5.34
[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 _0xac99=['lodash','util','../../config/logger','api','bluebird','../../config/environment','./cannedAnswer.attributes','exports','CannedAnswer','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci'];(function(_0x123318,_0x578521){var _0x4d0e4c=function(_0xf50903){while(--_0xf50903){_0x123318['push'](_0x123318['shift']());}};_0x4d0e4c(++_0x578521);}(_0xac99,0x108));var _0x9ac9=function(_0x134058,_0x423995){_0x134058=_0x134058-0x0;var _0x14a1a9=_0xac99[_0x134058];return _0x14a1a9;};'use strict';var _=require(_0x9ac9('0x0'));var util=require(_0x9ac9('0x1'));var logger=require(_0x9ac9('0x2'))(_0x9ac9('0x3'));var moment=require('moment');var BPromise=require(_0x9ac9('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x9ac9('0x5'));var attributes=require(_0x9ac9('0x6'));module[_0x9ac9('0x7')]=function(_0x51cc3c,_0x51b31e){return _0x51cc3c['define'](_0x9ac9('0x8'),attributes,{'tableName':_0x9ac9('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x9ac9('0xa'),'collate':_0x9ac9('0xb')});};