b17230fcfe8da4528d3268366e9ec92b135d7659
[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 _0x7728=['define','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./cannedAnswer.attributes','exports'];(function(_0x17953f,_0x115870){var _0x4e3a07=function(_0x482004){while(--_0x482004){_0x17953f['push'](_0x17953f['shift']());}};_0x4e3a07(++_0x115870);}(_0x7728,0xd5));var _0x8772=function(_0x2f8000,_0x37c02b){_0x2f8000=_0x2f8000-0x0;var _0x25cfee=_0x7728[_0x2f8000];return _0x25cfee;};'use strict';var _=require('lodash');var util=require(_0x8772('0x0'));var logger=require(_0x8772('0x1'))(_0x8772('0x2'));var moment=require(_0x8772('0x3'));var BPromise=require(_0x8772('0x4'));var rp=require(_0x8772('0x5'));var fs=require('fs');var path=require(_0x8772('0x6'));var rimraf=require(_0x8772('0x7'));var config=require(_0x8772('0x8'));var attributes=require(_0x8772('0x9'));module[_0x8772('0xa')]=function(_0x1897a2,_0x1b10e8){return _0x1897a2[_0x8772('0xb')]('CannedAnswer',attributes,{'tableName':'tools_canned_answers','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x8772('0xc'),'collate':_0x8772('0xd')});};