Built motion from commit 775e2a94.|2.6.3
[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 _0x85e5=['path','rimraf','../../config/environment','./cannedAnswer.attributes','exports','tools_canned_answers','utf8mb4','lodash','../../config/logger','api','request-promise'];(function(_0xdec6ac,_0x2d454f){var _0x2d5ddd=function(_0x3a5b04){while(--_0x3a5b04){_0xdec6ac['push'](_0xdec6ac['shift']());}};_0x2d5ddd(++_0x2d454f);}(_0x85e5,0x1b4));var _0x585e=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x85e5[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0x585e('0x0'));var util=require('util');var logger=require(_0x585e('0x1'))(_0x585e('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x585e('0x3'));var fs=require('fs');var path=require(_0x585e('0x4'));var rimraf=require(_0x585e('0x5'));var config=require(_0x585e('0x6'));var attributes=require(_0x585e('0x7'));module[_0x585e('0x8')]=function(_0x450ef6,_0xc3a0fc){return _0x450ef6['define']('CannedAnswer',attributes,{'tableName':_0x585e('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x585e('0xa'),'collate':'utf8mb4_unicode_ci'});};