243e572c26cb34485b3eab267cd15d6a7f15f37e
[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 _0x5c2e=['path','../../config/environment','./cannedAnswer.attributes','exports','define','tools_canned_answers','utf8mb4','utf8mb4_unicode_ci','util','../../config/logger','api','bluebird','request-promise'];(function(_0x122ef9,_0x451d2a){var _0x42fba0=function(_0x17c9d3){while(--_0x17c9d3){_0x122ef9['push'](_0x122ef9['shift']());}};_0x42fba0(++_0x451d2a);}(_0x5c2e,0x140));var _0xe5c2=function(_0x233cb1,_0x8ca9a2){_0x233cb1=_0x233cb1-0x0;var _0x29ee7e=_0x5c2e[_0x233cb1];return _0x29ee7e;};'use strict';var _=require('lodash');var util=require(_0xe5c2('0x0'));var logger=require(_0xe5c2('0x1'))(_0xe5c2('0x2'));var moment=require('moment');var BPromise=require(_0xe5c2('0x3'));var rp=require(_0xe5c2('0x4'));var fs=require('fs');var path=require(_0xe5c2('0x5'));var rimraf=require('rimraf');var config=require(_0xe5c2('0x6'));var attributes=require(_0xe5c2('0x7'));module[_0xe5c2('0x8')]=function(_0x1a8d03,_0xf6c568){return _0x1a8d03[_0xe5c2('0x9')]('CannedAnswer',attributes,{'tableName':_0xe5c2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xe5c2('0xb'),'collate':_0xe5c2('0xc')});};