Built motion from commit 97153652.|2.6.26
[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 _0xe442=['utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','request-promise','rimraf','../../config/environment','./cannedAnswer.attributes','exports','define','CannedAnswer','tools_canned_answers'];(function(_0x332687,_0x42f6e7){var _0x5e8eda=function(_0x229c92){while(--_0x229c92){_0x332687['push'](_0x332687['shift']());}};_0x5e8eda(++_0x42f6e7);}(_0xe442,0x11f));var _0x2e44=function(_0x178e48,_0x3c9509){_0x178e48=_0x178e48-0x0;var _0x440d7e=_0xe442[_0x178e48];return _0x440d7e;};'use strict';var _=require(_0x2e44('0x0'));var util=require(_0x2e44('0x1'));var logger=require(_0x2e44('0x2'))(_0x2e44('0x3'));var moment=require(_0x2e44('0x4'));var BPromise=require('bluebird');var rp=require(_0x2e44('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2e44('0x6'));var config=require(_0x2e44('0x7'));var attributes=require(_0x2e44('0x8'));module[_0x2e44('0x9')]=function(_0x231c0e,_0x1f4da7){return _0x231c0e[_0x2e44('0xa')](_0x2e44('0xb'),attributes,{'tableName':_0x2e44('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x2e44('0xd'),'collate':_0x2e44('0xe')});};